Created
July 14, 2011 16:15
-
-
Save ntotten/1082776 to your computer and use it in GitHub Desktop.
Updated ConfigureIIS.cmd for WAAWR to install PHP and MVC3
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 | |
rem This is only for SDK 1.4 and not a best practice to detect DevFabric. | |
if ("%WA_CONTAINER_SID%") == ("") goto Exit | |
echo Installing Web-Mgmt-Service | |
if exist "%windir%\system32\ServerManagerCmd.exe" "%windir%\system32\ServerManagerCmd.exe" -install Web-Mgmt-Service | |
echo Configuring Web-Mgmt-Service | |
sc config wmsvc start= auto | |
net stop wmsvc | |
echo Setting the registry key | |
%windir%\regedit /s EnableRemoteManagement.reg | |
md "%~dp0appdata" | |
reg add "hku\.default\software\microsoft\windows\currentversion\explorer\user shell folders" /v "Local AppData" /t REG_EXPAND_SZ /d "%~dp0appdata" /f | |
echo Installing WebDeploy | |
"%~dp0Webpicmdline.exe" /products: WDeployNoSMO,PHP53,MVC3 /AcceptEula | |
reg add "hku\.default\software\microsoft\windows\currentversion\explorer\user shell folders" /v "Local AppData" /t REG_EXPAND_SZ /d %%USERPROFILE%%\AppData\Local /f | |
echo Configuring WebDeploy | |
sc config msdepsvc start= auto | |
net stop msdepsvc | |
echo Starting required services | |
net start wmsvc | |
net start msdepsvc | |
exit /b 0 | |
:Exit | |
echo Running on DevFabric. No action taken. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment