locked
Setup & Deployment project for installing assemblies in GAC RRS feed

  • Question

  • User829868397 posted

    Hi,

    I am planning to install the Ent Lib dlls in the Global Assembly Cache, using an installer, as recommended by Microsoft

    http://msdn.microsoft.com/en-us/library/yf1d93sz(VS.71).aspx .

    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.

     

    Thanks

    HP

     

     

    Thursday, October 16, 2008 2:13 PM

Answers

All replies

  • User372121194 posted

    Hi,

    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 http://support.microsoft.com/kb/324168

    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 http://weblogs.asp.net/scottgu/archive/2007/06/15/tip-trick-creating-packaged-asp-net-setup-programs-with-vs-2005.aspx

     

    I look forward to hearing from you.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 20, 2008 3:04 AM
  • User829868397 posted

     

    Hi Thomas,

    Thanks for your reply. 

    So is this possible by using a custom action :

    e.g.

    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.

     

    Thanks

    hp

     

     

     

    Wednesday, October 22, 2008 2:28 PM
  • User372121194 posted

    Hi,

    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.

     

    Thanks.

    Wednesday, October 22, 2008 10:57 PM