Skip to content

Instantly share code, notes, and snippets.

@ntotten
Created July 14, 2011 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntotten/1082776 to your computer and use it in GitHub Desktop.
Save ntotten/1082776 to your computer and use it in GitHub Desktop.
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