1

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
user1219310
  • 732
  • 1
  • 9
  • 23

2 Answers2

4

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"

Rick Bowerman
  • 1,866
  • 12
  • 12
1

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?

Community
  • 1
  • 1
Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164