Last active
August 29, 2015 14:13
-
-
Save YoungjaeKim/d649f486b76654696dd0 to your computer and use it in GitHub Desktop.
.NET Framework 3.5 Installation cmdlet for Azure Roles
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 | |
reg query "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5" /V SP | |
IF "%ERRORLEVEL%" EQU "0" ( | |
ECHO dotnet framework 3.5 is already installed >> "%TEMP%\StartupLog.txt" 2>&1 | |
EXIT 0 | |
) ELSE ( | |
PowerShell -ExecutionPolicy Unrestricted "%~dp0..\..\Startup\installnet35.ps1" >> "%TEMP%\StartupLog.txt" 2>&1 | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment