wixtoolset / issues

WiX Toolset Issues Tracker
http://wixtoolset.org/
129 stars 24 forks source link

Installation of VS 2022 Extension corrupts VS #6780

Closed beinhaerter closed 2 years ago

beinhaerter commented 2 years ago

3.11.2.4516

VS 2022 Professional, 17.2, German running as regular user

3.11.2.4516

?

Windows 10 Enterprise 21H1, German

Extensions/Manage Extensions -> Select Wix extension for installation -> Close VS -> Windows asks for admin credentials -> installer runs -> start VS again -> VS dialogs open image image image

When VS opens, then there are no installed extensions listed under Extensions/Manage Extensions.

VS repair install does not help. VS uninstall + reinstall helps.

I expect no error message and that the installed extensions are still visible and working.

The extensions are displayed when running VS as an admin. They are not displayed when running VS as a regular user. ActivityLog.zip

beinhaerter commented 2 years ago

Works after running

devenv.exe /ResetSettings
devenv.exe /ResetUserData
devenv.exe /SafeMode

But then still VS showed "my installer (incompatible)" and "The application is not installed." in the solution explorer. Fortunately after right-click "load project" it seems to work.

MehdiKacim commented 2 years ago

Hi, this issue not working for me...

MehdiKacim commented 2 years ago

Hi, this issue not working for me...

In the end it worked. You just have to be careful: empty the Windows temporary folder beforehand and between each command that launches VS

robmen commented 2 years ago

Visual Studio owns the VSIX installation experience. If this keeps reproducing for you, you might consider opening an issue with them at https://developercommunity.visualstudio.com . It doesn't seem like you should have to reset Visual Studio regularly.

beinhaerter commented 2 years ago

https://developercommunity.visualstudio.com/t/Installation-of-wixtoolset-extension-cor/10057006

robmen commented 2 years ago

There seems to be an installation issue in VS17.2 as we haven't changed Votive so the failed installation behavior is new in this release of Visual Studio. Here are other issues that are also sometimes seeing installation failures in VS 17.2:

  1. https://github.com/wixtoolset/issues/issues/6786
  2. https://github.com/wixtoolset/issues/issues/6795
  3. https://github.com/wixtoolset/issues/issues/6797

We need the Visual Studio VSIX installer team to explain what changed (or fix their bug) via: https://developercommunity.visualstudio.com/t/Installation-of-wixtoolset-extension-cor/10057006

barnson commented 2 years ago

Tracking this class of bug at https://github.com/wixtoolset/issues/issues/6803.