user1219310
user1219310

Reputation: 732

How to install assemblies in both specific folders and in the GAC

I created an installer and need to install dll files on a client PC. What would I need to do in the installer so that the dll files are placed in a in specific folder and GAC as well.

For Example,

Program Files
 Hello World
  Hello.dll

Windows
 assembly
  Hello.dll

Upvotes: 1

Views: 133

Answers (2)

Stein Åsmul
Stein Åsmul

Reputation: 42136

It has been quite a while since I deployed things into the GAC. Rick's advice is technically sound, but please check the following thread for some conceptual considerations for when GAC deployment is appropriate:

When should I deploy my assemblies into the GAC?

Upvotes: 1

Rick Bowerman
Rick Bowerman

Reputation: 1884

You will need to create two separate components. On the File Element of the component you wish to install in the GAC you will need to add the Assembly attribute and set it to ".net"

Upvotes: 4

Related Questions