Why can't I install Microsoft Visual Studio Installer Projects? - visual-studio

So i'm trying to install this package to create Setup.exe for my project, but it goes with error:
Install log:
12.06.2021 15:47:52 - Microsoft VSIX Installer
12.06.2021 15:47:52 - -------------------------------------------
12.06.2021 15:47:52 - vsixinstaller.exe version:
12.06.2021 15:47:52 - 16.9.2017
12.06.2021 15:47:52 - -------------------------------------------
12.06.2021 15:47:52 - Command line parameters:
12.06.2021 15:47:52 - C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\vsixinstaller.exe,/appidinstallpath:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe,/skuName:Community,/skuVersion:16.9.31229.75,/appidname:Microsoft Visual Studio Community 2019,/culture:ru-RU,/noep,C:\Users\Admin\AppData\Local\Temp\VSIXabkei5yl.vsix
12.06.2021 15:47:52 - -------------------------------------------
12.06.2021 15:47:52 - Microsoft VSIX Installer
12.06.2021 15:47:52 - -------------------------------------------
12.06.2021 15:47:53 - System.IO.FileLoadException: Не удалось загрузить файл или сборку "Microsoft.VisualStudio.Validation, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" либо одну из их зависимостей. Найденное определение манифеста сборки не соответствует ссылке на сборку. (Исключение из HRESULT: 0x80131040)
Имя файла: 'Microsoft.VisualStudio.Validation, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
в VSIXInstaller.SupportedSKUs.AddInstalledIsolatedShells(Version vsVersion, IntPtr userToken)
в VSIXInstaller.SupportedSKUs.InitializeSupportedSKUs(IntPtr userToken)
в VSIXInstaller.ExtensionService.InitializeSupportedSKUs(ICommandLineData cmdLineData, IntPtr duplicatedUserToken)
в VSIXInstaller.App.Initialize(Boolean isRepairSupported)
в VSIXInstaller.App.Initialize()
в System.Threading.Tasks.Task`1.InnerInvoke()
в System.Threading.Tasks.Task.Execute()
--- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
в Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
Edit: edited and added error window in english so it'll be more understandable

So if anyone'll encounter this problem, i repaired Visual Studio in Visual Studio installer and it actually helped!

Related

Error when trying to install monogame (Exception from HRESULT: 0x80131040). How to fix it?

tried to install monogame 3.8 in full accordance with the website instructions: https://docs.monogame.net/articles/getting_started/0_getting_started.html
While installing I get this error:
Failed to load file or assembly 'Microsoft.VisualStudio.Validation,
Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or
one of its dependencies. The found assembly manifest definition does
not match the assembly reference. (Exception from HRESULT: 0x80131040)
Full text of the log, if necessary:
28.04.2022 7:54:37 - Microsoft VSIX Installer
28.04.2022 7:54:37 - -------------------------------------------
28.04.2022 7:54:37 - vsixinstaller.exe version:
28.04.2022 7:54:37 - 16.10.1056
28.04.2022 7:54:37 - -------------------------------------------
28.04.2022 7:54:37 - Command line parameters:
28.04.2022 7:54:37 - C:\Program Files (x86)\vs\Microsoft Visual Studio\2019\Community\Common7\IDE\vsixinstaller.exe,/appidinstallpath:C:\Program Files (x86)\vs\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe,/skuName:Community,/skuVersion:16.10.31424.327,/appidname:Microsoft Visual Studio Community 2019,/culture:ru-RU,/noep,C:\Users\pauk naprimer\AppData\Local\Temp\VSIXazuynwyc.vsix
28.04.2022 7:54:37 - -------------------------------------------
28.04.2022 7:54:37 - Microsoft VSIX Installer
28.04.2022 7:54:37 - -------------------------------------------
28.04.2022 7:54:37 - System.IO.FileLoadException: Не удалось загрузить файл или сборку "Microsoft.VisualStudio.Validation, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" либо одну из их зависимостей. Найденное определение манифеста сборки не соответствует ссылке на сборку. (Исключение из HRESULT: 0x80131040)
Имя файла: 'Microsoft.VisualStudio.Validation, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
в VSIXInstaller.SupportedSKUs.AddInstalledIsolatedShells(Version vsVersion, IntPtr userToken)
в VSIXInstaller.SupportedSKUs.InitializeSupportedSKUs(IntPtr userToken)
в VSIXInstaller.ExtensionService.InitializeSupportedSKUs(ICommandLineData cmdLineData, IntPtr duplicatedUserToken)
в VSIXInstaller.App.Initialize(Boolean isRepairSupported)
в VSIXInstaller.App.Initialize()
в System.Threading.Tasks.Task`1.InnerInvoke()
в System.Threading.Tasks.Task.Execute()
--- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
в Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
Предупреждение: регистрация привязки сборок выключена. Чтобы включить
регистрацию ошибок привязки сборок, установите значение параметра
реестра [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) в 1.
Примечание. Регистрация ошибок привязки сборок может привести к
некоторому снижению производительности. Чтобы отключить эту функцию,
удалите параметр реестра [HKLM\Software\Microsoft\Fusion!EnableLog].
The error occurs at the stage of installing monogame through Manage Extensions, immediately after shutting down VS. I absolutely do not understand what is required of me to solve this problem.

Trouble installing power query SDK

I've installed visual studio community and when trying to install the power query SDK I get an error saying that I don't have the applicable product. Here is the error log.
3/31/2022 11:46:11 AM - Microsoft VSIX Installer
3/31/2022 11:46:11 AM - -------------------------------------------
3/31/2022 11:46:11 AM - vsixinstaller.exe version:
3/31/2022 11:46:11 AM - 17.1.1035-preview2
3/31/2022 11:46:11 AM - -------------------------------------------
3/31/2022 11:46:11 AM - Command line parameters:
3/31/2022 11:46:11 AM - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\Brett Evans\Downloads\PowerQuerySdk.vsix
3/31/2022 11:46:11 AM - -------------------------------------------
3/31/2022 11:46:11 AM - Microsoft VSIX Installer
3/31/2022 11:46:11 AM - -------------------------------------------
3/31/2022 11:46:12 AM - Initializing Install...
3/31/2022 11:46:12 AM - Extension Details...
3/31/2022 11:46:12 AM - Identifier : PowerQuerySDK.Microsoft.30831070-f420-4649-a031-6f679996b182
3/31/2022 11:46:12 AM - Name : Power Query SDK
3/31/2022 11:46:12 AM - Author : Microsoft
3/31/2022 11:46:12 AM - Version : 1.0.0.25
3/31/2022 11:46:12 AM - Description : A Power Query language service for Visual Studio
3/31/2022 11:46:12 AM - Locale : en-US
3/31/2022 11:46:12 AM - MoreInfoURL :
3/31/2022 11:46:12 AM - InstalledByMSI : False
3/31/2022 11:46:12 AM - SupportedFrameworkVersionRange : [4.5,)
3/31/2022 11:46:12 AM -
3/31/2022 11:46:13 AM - SignatureState : ValidSignature
3/31/2022 11:46:13 AM - SignedBy : Microsoft Corporation
3/31/2022 11:46:13 AM - Certificate Info :
3/31/2022 11:46:13 AM - -------------------------------------------------------
3/31/2022 11:46:13 AM - [Subject] : CN=Microsoft Corporation, OU=OPC, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
3/31/2022 11:46:13 AM - [Issuer] : CN=Microsoft Code Signing PCA 2010, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
3/31/2022 11:46:13 AM - [Serial Number] : 3300000304101C68D65CB4BF29000000000304
3/31/2022 11:46:13 AM - [Not Before] : 6/5/2019 1:36:58 PM
3/31/2022 11:46:13 AM - [Not After] : 6/3/2020 1:36:58 PM
3/31/2022 11:46:13 AM - [Thumbprint] : A28267BD2BB3838A16666C63F4BB21D37CE0619B
3/31/2022 11:46:13 AM -
3/31/2022 11:46:13 AM - Supported Products :
3/31/2022 11:46:13 AM - Microsoft.VisualStudio.Community
3/31/2022 11:46:13 AM - Version : [14.0,17.0)
3/31/2022 11:46:13 AM - ProductArchitecture : x86
3/31/2022 11:46:13 AM - Microsoft.VisualStudio.Pro
3/31/2022 11:46:13 AM - Version : [14.0,17.0)
3/31/2022 11:46:13 AM - ProductArchitecture : x86
3/31/2022 11:46:13 AM - Microsoft.VisualStudio.Enterprise
3/31/2022 11:46:13 AM - Version : [14.0,17.0)
3/31/2022 11:46:13 AM - ProductArchitecture : x86
3/31/2022 11:46:13 AM -
3/31/2022 11:46:13 AM - References :
3/31/2022 11:46:13 AM - Prerequisites :
3/31/2022 11:46:13 AM - -------------------------------------------------------
3/31/2022 11:46:13 AM - Identifier : Microsoft.VisualStudio.Component.CoreEditor
3/31/2022 11:46:13 AM - Name : Visual Studio core editor
3/31/2022 11:46:13 AM - Version : [15.0,17.0)
3/31/2022 11:46:13 AM -
3/31/2022 11:46:13 AM - Signature Details...
3/31/2022 11:46:13 AM - Extension is signed with a valid signature.
3/31/2022 11:46:13 AM -
3/31/2022 11:46:13 AM - Searching for applicable products...
3/31/2022 11:46:13 AM - Found installed product - Global Location
3/31/2022 11:46:13 AM - Found installed product - Visual Studio Community 2022
3/31/2022 11:46:13 AM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
at VSIXInstaller.App.Initialize()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
I installed visual studio community and then attempeted to install power query SDK
Here is an image of what happens.
It looks like you installed Visual Studio 2022. At this moment Power Query SDK works only with versions 2015, 2017 and 2019:
You should download an older version of Visual Studio from here or wait until Power Query SDK supports version 2022.

Error trying to install Visual Studio Community 2019 Extensions

I just go into Extensions>Manage Extensions>Update, click "Update All" and then close Visual Studio.
The installation just give me a error, i searched online but no clue what's wrong.
Already repaired and reinstalled completely visual studio
Any help? This is the error log.
22/05/2021 22:41:45 - Microsoft VSIX Installer
22/05/2021 22:41:45 - -------------------------------------------
22/05/2021 22:41:45 - vsixinstaller.exe version:
22/05/2021 22:41:45 - 16.9.2017
22/05/2021 22:41:45 - -------------------------------------------
22/05/2021 22:41:45 - Command line parameters:
22/05/2021 22:41:45 - A:\Microsoft Visual Studio\2019\Community\Common7\IDE\vsixinstaller.exe,/appidinstallpath:A:\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe,/skuName:Community,/skuVersion:16.9.31313.79,/appidname:Microsoft Visual Studio Community 2019,/culture:en-US,/noep,C:\Users\erikm\AppData\Local\Temp\VSIXdc234dfy.vsix,C:\Users\erikm\AppData\Local\Temp\VSIXygjj5kfo.vsix,C:\Users\erikm\AppData\Local\Temp\VSIXityxfypz.vsix
22/05/2021 22:41:45 - -------------------------------------------
22/05/2021 22:41:45 - Microsoft VSIX Installer
22/05/2021 22:41:45 - -------------------------------------------
22/05/2021 22:41:45 - System.IO.FileLoadException: Could not load file or assembly 'Microsoft.VisualStudio.Validation, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Microsoft.VisualStudio.Validation, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at VSIXInstaller.SupportedSKUs.AddInstalledIsolatedShells(Version vsVersion, IntPtr userToken)
at VSIXInstaller.SupportedSKUs.InitializeSupportedSKUs(IntPtr userToken)
at VSIXInstaller.ExtensionService.InitializeSupportedSKUs(ICommandLineData cmdLineData, IntPtr duplicatedUserToken)
at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
at VSIXInstaller.App.Initialize()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
After deleting all "Microsoft.VisualStudio.Validation.dll" found by a file explorer search and reinstalling visual studio, it worked!

VSIX install failed

I downloaded extension in visual studio 2019 but while installing error occurred.
install log is this:
4/25/2021 8:41:33 PM - Microsoft VSIX Installer
4/25/2021 8:41:33 PM - -------------------------------------------
4/25/2021 8:41:33 PM - vsixinstaller.exe version:
4/25/2021 8:41:33 PM - 16.9.2017
4/25/2021 8:41:33 PM - -------------------------------------------
4/25/2021 8:41:33 PM - Command line parameters:
4/25/2021 8:41:33 PM - C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VSIXInstaller.exe,C:\Users\Usman\Downloads\ProductivityPowerPack2017.vsix
4/25/2021 8:41:33 PM - -------------------------------------------
4/25/2021 8:41:33 PM - Microsoft VSIX Installer
4/25/2021 8:41:33 PM - -------------------------------------------
4/25/2021 8:41:34 PM - System.IO.FileLoadException: Could not load file or assembly 'Microsoft.VisualStudio.Validation, Version=15.3.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Microsoft.VisualStudio.Validation, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at VSIXInstaller.SupportedSKUs.AddInstalledIsolatedShells(Version
vsVersion, IntPtr userToken)
at VSIXInstaller.SupportedSKUs.InitializeSupportedSKUs(IntPtr userToken)
at VSIXInstaller.ExtensionService.InitializeSupportedSKUs(ICommandLineData
cmdLineData, IntPtr duplicatedUserToken)
at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
at VSIXInstaller.App.Initialize()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception
exceptionObject)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Run a repair of your Visual Studio installation.
If repair doesn't work, you might've moved your VS install and now it won't install anything.
This is because it "might" be finding the VS Installer in a directory OTHER than the standard one. Reinstall the installer itself, then try to install the extension or whatevs
Check if this path exists on your C drive. The "Packages" folder is used to save VS extensions which VS needs. I'd moved mine to F drive to save space. The error message didn't help me much.
C:\ProgramData\Microsoft\VisualStudio\Packages

How to install `Installer Projects` for Visual Studio 2019

When ever I try to install the Installer Project-Package for Visual Studio 2019 I get these Log:
27.02.2020 10:30:57 - -------------------------------------------
27.02.2020 10:30:57 - Microsoft VSIX Installer
27.02.2020 10:30:57 - -------------------------------------------
27.02.2020 10:31:03 - Initializing Install...
27.02.2020 10:31:07 - Extension Details...
27.02.2020 10:31:07 - Identifier : VSInstallerProjects
27.02.2020 10:31:07 - Name : Microsoft Visual Studio Installer Projects
27.02.2020 10:31:07 - Author : Microsoft
27.02.2020 10:31:07 - Version : 0.9.6
27.02.2020 10:31:07 - Description : This official Microsoft extension provides support for Visual Studio Installer Projects in Visual Studio.
27.02.2020 10:31:07 - Locale : en-US
27.02.2020 10:31:07 - MoreInfoURL :
27.02.2020 10:31:07 - InstalledByMSI : False
27.02.2020 10:31:07 - SupportedFrameworkVersionRange : [4.6.1,)
27.02.2020 10:31:07 -
27.02.2020 10:31:09 - SignatureState : ValidSignature
27.02.2020 10:31:09 - SignedBy : Microsoft Corporation
27.02.2020 10:31:09 - Certificate Info :
27.02.2020 10:31:09 - -------------------------------------------------------
27.02.2020 10:31:09 - [Subject] : CN=Microsoft Corporation, OU=OPC, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
27.02.2020 10:31:09 - [Issuer] : CN=Microsoft Code Signing PCA 2010, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
27.02.2020 10:31:09 - [Serial Number] : 3300000305DFD27DFE8F86CDB3000000000305
27.02.2020 10:31:09 - [Not Before] : 05.06.2019 19:36:58
27.02.2020 10:31:09 - [Not After] : 03.06.2020 19:36:58
27.02.2020 10:31:09 - [Thumbprint] : 417A476992589EA95299F5057960010675759457
27.02.2020 10:31:09 -
27.02.2020 10:31:09 - Supported Products :
27.02.2020 10:31:09 - Microsoft.VisualStudio.Community
27.02.2020 10:31:09 - Version : [15.0,17.0)
27.02.2020 10:31:09 -
27.02.2020 10:31:09 - References :
27.02.2020 10:31:09 - Prerequisites :
27.02.2020 10:31:09 - -------------------------------------------------------
27.02.2020 10:31:09 - Identifier : Microsoft.VisualStudio.MinShell
27.02.2020 10:31:09 - Name : Visual Studio Min Shell
27.02.2020 10:31:09 - Version : [15.0.26205,17.0)
27.02.2020 10:31:09 -
27.02.2020 10:31:09 - -------------------------------------------------------
27.02.2020 10:31:09 - Identifier : Microsoft.Component.ClickOnce
27.02.2020 10:31:09 - Name : ClickOnce Publishing
27.02.2020 10:31:09 - Version : [15.0,17.0)
27.02.2020 10:31:09 -
27.02.2020 10:31:09 - Signature Details...
27.02.2020 10:31:09 - Extension is signed with a valid signature.
27.02.2020 10:31:09 -
27.02.2020 10:31:09 - System.Runtime.InteropServices.COMException (0x80070490): Element nicht gefunden. (Exception from HRESULT: 0x80070490)
bei Microsoft.VisualStudio.Setup.Configuration.ISetupConfiguration2.GetInstanceForPath(String path)
bei VSIXInstaller.LocationBasedSKU..ctor(String appidInstallPath, String appidName, Version vsVersion, String edition, String rootSuffix)
bei VSIXInstaller.LocationBasedSKU..ctor(String appidInstallPath, String appidName, Version vsVersion, String edition, String rootSuffix, IntPtr alternateUserToken)
bei VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
bei VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
bei VSIXInstaller.ExtensionService.ComputeInstallableExtensions(IStateData stateData, Boolean isRepairSupported, Boolean isExtensionPack, IDictionary`2 skuDataMapping, IList`1 installableExtensionsPaths)
bei VSIXInstaller.App.Initialize(Boolean isRepairSupported)
bei VSIXInstaller.App.Initialize()
bei System.Threading.Tasks.Task`1.InnerInvoke()
bei System.Threading.Tasks.Task.Execute()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
Does anyone knows what these Errors means and what I can do?
Does anyone knows what these Errors means and what I can do?
The Microsoft Visual Studio Installer Projects extension is installed in VS2019 successfully in my side. So I suspect something is wrong with your VS environment. Please follow these steps to troubleshoot your issue:
1) delete all VS2019 component caches under C:\Users\user\AppData\Local\Microsoft\VisualStudio\16.0_xxxxx\ComponentModelCache
2) disable any third party extensions under Extensions-->Manage Extensions to prevent any other extensions affect it.
3) do a repair in VS installer
4) update your VS2019 to the latest version and do not forget to update your OS version in case there are some fixes.

Resources