Can I install binaries in the GAC through the VSIX installer?

I have a hybrid installer that removes binaries on the target machine (WIX) and also installs templates in Visual Studo (VSIX). VSIX is stored as a binary file in the installer and is installed using a custom action when the installation completes.

This works, but there are a few problems. I could get around these problems if I could completely skip WIX and install everything through VSIX.

The problem is that I need to drop some executables in the GAC. If I can flush the binary to the GAC on VSIX, then everything will be cool. But I can not find any information on how to do this.

Alternatively, is it possible to install binaries to a specific location on the target machine using VSIX?

Is it possible?

+3
source share
1 answer

No. VSIX cannot place files in the GAC, nor can it add registry entries for you. Exe or MSI is what you need. Your users will lose the ability to enable / disable the Extension Manager, although this is sad.

https://msdn.microsoft.com/en-us/library/vstudio/dd393694(v=vs.100).aspx  summarizes your deployment options and confirms the absence of a GAC.

+1
source

Source: https://habr.com/ru/post/1766071/


All Articles