jberezanski / ChocolateyPackages

Chocolatey packages maintained by me
MIT License
85 stars 52 forks source link

visualstudio2017: if VS Installer needs upgrade, --wait does not work #7

Open jberezanski opened 7 years ago

jberezanski commented 7 years ago

When installing a new VS 2017 product package, if the VS Installer already exists on the machine but needs to be upgraded, the VS setup bootstrapper will invoke the upgrade process but will exit before the upgraded installer finishes, even invoked with --wait.

Until the VS setup bootstrapper is fixed, the install logic should probably look for additional VS installer processes spawned during the installation and wait for all of them to finish.

jberezanski commented 7 years ago

https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio

--noUpdateInstaller New in 15.2, optional: If present, prevents the installer from updating itself when quiet is specified. The installer will fail the command and return a non-zero exit code if noUpdateInstaller is specified with quiet when an installer update is required.