1@if "%ECHOON%"=="" @echo off
2SETLOCAL
3
4REM ******************************************************************
5REM Please, make sure to run this in an Elevated Command Prompt.
6REM Usage:
7REM        configure.cmd
8REM ******************************************************************
9
10REM ******************************************************************
11REM Initialize
12REM ******************************************************************
13SET SCRIPT_LOCATION=%~dp0
14
15REM ******************************************************************
16REM Go to script location
17REM ******************************************************************
18pushd %SCRIPT_LOCATION%
19
20REM ******************************************************************
21REM Register msdia140.dll.
22REM ******************************************************************
23SET MSG=Failed to register msdia140.dll.  Make sure to run this in elevated command prompt.
24%systemroot%\SysWoW64\regsvr32.exe /s msdia140.dll & if errorlevel 1 echo %MSG% & goto :fail
25
26:success
27echo Configuration was successful.
28ENDLOCAL
29exit /b 0
30
31:fail
32ENDLOCAL
33exit /b 1
34