Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Updated ConfigureIIS.cmd for WAAWR to install PHP and MVC3
@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