-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
visualstudio2017: defend against Chocolatey AutoUninstaller #6
Comments
What are all of the other VS 2017 products? |
Just trying to determine why if I uninstall VS 2017 that I would not want to remove everything? |
Here is the full list of VS 2017 products: Each of these products can be installed and uninstalled independently, side-by-side with others. You can even install multiple instances of the same product in different directories (perhaps to test an untrustworthy extension?). None of the products appear in Programs and Features, only the Visual Studio Installer (which manages all instances of all products installed on the machine) does. This differs radically from the installation model of VS 2015 and earlier, where generally there was only one instance of the given Visual Studio major version on the system (the "integrated shell") and installing various Visual Studio products either added functionality to that instance (for example, augmenting Professional by installing Test Professional) or replaced it (Enterprise). With VS 2017, the user can, for example:
Currently, during step 6) the AutoUninstaller will attempt to remove the VS Installer, while it clearly should be left intact (there are other VS products still installed: Professional and Feedback Client). |
@heaths I've noticed your comment which seems to imply it is possible to install the VS Installer only, without installing any VS product. Could you please confirm that one could, for instance, download the Feedback Client bootstrapper and invoke it as such:
and it will install just the VS Installer (on a machine which does not contain any VS 2017 bits)? (I don't see the If there was a way (supported and/or documented) to install just the VS Installer, it would allow me to sidestep the issue with the over-eager Chocolatey AutoUninstaller - the |
We are updating documentation currently and it should be out soon. The |
Great! Does it support updating the installer to a specific version, perhaps by providing a specific, local channel manifest file? I'd like to achieve fully repeatable and deterministic installs, if possible. |
It will update to the latest version across all channels. |
Tested: |
chocolatey/choco#1257 (comment) Adding a .skipAutoUninstall file will fix this. |
@heaths I have been trying to update the VS Installer from an offline layout (prepared earlier using --layout). I have established, by trial and error, that the following example command line accomplishes this:
Can you confirm this is the correct way? (I could not find this parameter documented anywhere.) |
Why are you trying to update the OPC from an offline layout? We specifically designed the Visual Studio Installer to be "evergreen" so we can fix any issues necessary blocking updates. In fact, some product updates will require newer installers. You shouldn't try to control the version of the installer yourself. But yes, that is confirmed correct. Also, the |
I need to do this on machines without Internet connectivity, because |
@MikeMarlowe, are these issues fixed in more recent builds? I thought they were. |
Yes, updating your layout will update the version of the Visual Studio Installer it contains. https://docs.microsoft.com/en-us/visualstudio/install/update-a-network-installation-of-visual-studio |
When uninstalling the first VS 2017 product package installed on the machine, the Chocolatey AutoUninstaller will remove the VS Installer, removing all other VS 2017 products.
Until chocolatey/choco#1257 is resolved, the packages need to work around this behavior.
The text was updated successfully, but these errors were encountered: