Created
January 1, 2013 05:35
-
-
Save SyntaxC4/4425383 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| IF "%PROCESSOR_ARCHITECTURE%" == "x86" GOTO End | |
| IF "%PROCESSOR_ARCHITECTURE%" == "AMD64" GOTO x64 | |
| :x64 | |
| sc config wuauserv start= demand | |
| GOTO End | |
| :End |
This file contains hidden or 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 | |
| xcopy "..\Assets\Windows Azure SDK for PHP\php_azure.dll" "%PROGRAMFILES(X86)%\PHP\v5.2\ext" | |
| echo extension=php_azure.dll >> "%PROGRAMFILES(X86)%\PHP\v5.2\php.ini" |
This file contains hidden or 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 "Starting PHP Installation" >> log.txt | |
| "..\Assets\WebPICmdLine\WebPICmdLine.exe" /Products:PHP52 /AcceptEula /log:phplog.txt | |
| ECHO "Completed PHP Installation" >> log.txt | |
| REM This isn't necessary, but may be handy if you want to leverage all of Azure. | |
| install-php-azure |
This file contains hidden or 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 "Starting PHP Installation" >> log.txt | |
| md "%~dp0appdata" | |
| cd "%~dp0appdata" | |
| cd.. | |
| reg add "hku\.default\software\microsoft\windows\currentversion\explorer\user shell folders" /v "Local AppData" /t REG_EXPAND_SZ /d "%~dp0appdata" /f | |
| "..\Assets\WebPI\webpicmdline" /Products:PHP53 /AcceptEula >>log.txt 2>>err.txt | |
| 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 "Completed PHP Installation" >> log.txt | |
| install-php-azure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment