Thursday, March 18, 2010

WIX - Add an assembly component to GAC

Reader background
- Windows Installer XML setup (WIX)
- Global Assembly Cache (GAC)
- My previous post on WIX

Problem
You need to install an assembly to GAC.

Solution
After genertion of wxs file of the assembly component using heat.exe command, you need to add it to GAC.

After googling and looking for a solution, finally I found it and it was very simple and makes the job as I want.
The solution was to add two properties tothe file of the component:
  1. AssemblyManifest. (set it to the file Id)
  2. Assembly. (set it to .net)
Try it and I hope that it helps you.

Thanks

1 comment:

  1. To run heat.exe you should enter the assembly full path after file or dir keywords

    ReplyDelete