A DSC Resource to install / uninstall visual studio
Version: 1.0.0
Will be release to PSGallery soon!
NB: Uninstalling of VS Code does not work yet.
Note: Installing Enterprise/Pro without installation args will add /Full installation
Configuration InstallVS {
Node localhost {
xSetupVisualStudio installVSCode {
Ensure='Present'
ProductName='Microsoft Visual Studio Code'
}
}
}Configuration InstallVS {
Node localhost {
xSetupVisualStudio installVSCode {
Ensure='Present'
ProductName='Microsoft Visual Studio Enterprise 2015'
ProductKey = 'xxxx-xxxx-xxxx-xxxx' # GUID
}
}
}Configuration InstallVS {
Node localhost {
xSetupVisualStudio installVSCode {
Ensure='Present'
ProductName='Microsoft Visual Studio Enterprise 2015'
ProductKey = 'xxxx-xxxx-xxxx-xxxx' # GUID
SetupFile = 'c:\tmp\vs_installer.exe'
}
}
}Because the full installation takes a lot of time and will make your DSC be stuck in applying for a long time while installing VS full. If you're interested in specific features only, install using this
Configuration InstallVS {
Node localhost {
xSetupVisualStudio installVSCode {
Ensure='Present'
ProductName='Microsoft Visual Studio Enterprise 2015'
ProductKey = 'xxxx-xxxx-xxxx-xxxx' # GUID
SetupFile = 'c:\tmp\vs_installer.exe'
InstallationArgs = '/InstallSelectableItems <items>'
}
}
}AdminDeploymentFile - If installing VS professional or enterprise you can give it an admin file for installation using this param