Skip to content

Commit

Permalink
chocolatey-visualstudio.extension: allow skipping VS Installer update
Browse files Browse the repository at this point in the history
This may be useful when instaling a fresh instance of a VS product using
a bootstrapper which installs a specific version of the product
(e.g. the 15.0 bootstrappers available from MSDN).

Note that because the 15.0 bootstrapper does not support
--noUpdateInstaller, the package must be instructed not to pass this
parameter to the bootstrapper, by additionally specifying
--no-noUpdateInstaller.

GitHub-Issue: GH-7 GH-8 GH-10 GH-26
  • Loading branch information
jberezanski committed May 15, 2018
1 parent 488a2a3 commit 5063bba
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ function Assert-VSInstallerUpdated
[switch] $UseInstallChannelUri
)

if ($PackageParameters.ContainsKey('noUpdateInstaller'))
{
Write-Verbose "Skipping update of the VS Installer because --noUpdateInstaller was passed in package parameters"
}

$requiredVersionInfo = Get-VSRequiredInstallerVersion -PackageParameters $PackageParameters -ProductReference $productReference -UseInstallChannelUri:$UseInstallChannelUri
Install-VSInstaller `
-RequiredInstallerVersion $requiredVersionInfo.Version `
Expand Down

0 comments on commit 5063bba

Please sign in to comment.