Created
September 4, 2012 13:01
-
-
Save theorigin/3620952 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo Pre req checks... | |
echo|set /p=... Running as ADMIN ... | |
reg query "HKU\S-1-5-19" >nul 2>&1 | |
if %errorlevel% == 1 echo FAILED : Not runing as ADMIN | |
if %errorlevel% == 0 echo Passed | |
echo|set /p=... SQL Server ... | |
osql.exe -? >nul 2>&1 | |
if %errorlevel% == 9009 echo FAILED : SQL Not installed | |
if %errorlevel% == 1 echo Passed | |
echo|set /p=... IIS ... | |
reg query HKLM\Software\Microsoft\InetStp >nul 2>&1 | |
if %errorlevel% == 1 echo FAILED : IIS not installed | |
if %errorlevel% == 0 echo Passed | |
echo|set /p=... .net v4 ... | |
reg query HKLM\Software\Microsoft\.NetFramework\v4.0.30319 >nul 2>&1 | |
if %errorlevel% == 1 echo FAILED : .net v4 not installed | |
if %errorlevel% == 0 echo Passed | |
echo|set /p=... Message queues ... | |
sc Query msmq >nul 2>&1 | |
if %errorlevel% == 1060 echo FAILED : MSMQ Not installed | |
if %errorlevel% == 0 echo Passed | |
CHOICE /T 10 /C YN /M "Continue with setup (Y/N)?" /D y | |
IF %errorlevel% == 2 GOTO END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment