Skip to content

Instantly share code, notes, and snippets.

@YoungjaeKim
Last active August 29, 2015 14:13
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 YoungjaeKim/d649f486b76654696dd0 to your computer and use it in GitHub Desktop.
Save YoungjaeKim/d649f486b76654696dd0 to your computer and use it in GitHub Desktop.
.NET Framework 3.5 Installation cmdlet for Azure Roles
@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