Last post Oct 22, 2008 10:57 PM by Thomas Sun – MSFT
Oct 16, 2008 02:13 PM|hpdotnet|LINK
I am planning to install the Ent Lib dlls in the Global Assembly Cache, using an installer, as recommended by Microsoft
Because of company standards, I cannot package all the dlls in the installer project and run the installer on UAT/PROD boxes. Our dlls are copied to specific folders on these boxes by a audited/source controlled process.
I need to come up with the installer that picks up the dlls from these specific folders and install in GAC.
Is it possible? I have never done a Setup/Deployment project and any help will be greatly appreciated.
Oct 20, 2008 03:04 AM|Thomas Sun – MSFT|LINK
To deploy an assembly to the target computer GAC with Web Setup project, we can drag the assemblies to
Global Assembly Cache Folder(Right-click
File System on Target Machine, click Add Special Folder, and then click
Global Assembly Cache Folder). For more information, see
We also can try to run some scripts to register assemblies through the Gacutil Tool (http://support.microsoft.com/kb/315682) on target machine in Custom Action of Setup Project.
For the Custom Action example, see
I look forward to hearing from you.
Oct 22, 2008 02:28 PM|hpdotnet|LINK
Thanks for your reply.
So is this possible by using a custom action :
1. The operator runs the MSI on UAT Server
2. The MSI will locate the assemblies that exist in a specific folder on that Server and install those in the GAC.
Any input will be greatly appreciated.
Oct 22, 2008 10:57 PM|Thomas Sun – MSFT|LINK
Thanks for your response.
Yes, we can do it in the Custom Action to locate the assembly. To do so, we can get the "TARGETDIR" on the server and then get the assembly under this directory path. For the example, please refer to the link I posted above.