Deploy Assembly in GAC

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Zeplynne

    #1

    Deploy Assembly in GAC

    There are several ways to deploy an assembly into the global assembly
    cache:

    1) Use an installer designed to work with the global assembly cache. This
    is the preferred option for installing assemblies into the global assembly
    cache

    2) Use a developer tool called the Global Assembly Cache tool (Gacutil.exe)
    provided by the .NET Framework SDK.

    3) Use Windows Explorer to drag and drop assemblies into the cache.

    *My question
    I know Installshield can register assemblies in the GAC, but that's not an option.
    Can't seem to get VS .NET Install Project to do it though. Is it possible to write an install
    project in VS .NET 2003 to register a public strong-named assembly in the GAC?
    I can get the installer to put the assembly in the GAC, but it does not register it properly.
    Any help or insight would be greatly appreciated

    SMW
  • Phil Wilson

    #2
    Re: Deploy Assembly in GAC

    By "register", I'm assuming it exposes COM interfaces, so you want the
    equivalent of running regasm on the assembly. In the assembly properties in VS,
    set the Register property to vsdraCOM. That causes the build to run regasm at
    build time and extract the COM registration data into the MSI file. If you get
    hold of Orca from the Windows Installer section of the Platform SDK and use it
    to look in the MSI file, you should see your COM data in the Class table.
    --
    Phil Wilson [MVP Windows Installer]
    ----
    "Zeplynne" <anonymous@disc ussions.microso ft.com> wrote in message
    news:FA8C0DF7-15E3-41E9-A83F-390203A95305@mi crosoft.com...[color=blue]
    > There are several ways to deploy an assembly into the global assembly
    > cache:
    >
    > 1) Use an installer designed to work with the global assembly cache. This
    > is the preferred option for installing assemblies into the global assembly
    > cache.
    >
    > 2) Use a developer tool called the Global Assembly Cache tool (Gacutil.exe)
    > provided by the .NET Framework SDK.
    >
    > 3) Use Windows Explorer to drag and drop assemblies into the cache.
    >
    > *My question:
    > I know Installshield can register assemblies in the GAC, but that's not an[/color]
    option.[color=blue]
    > Can't seem to get VS .NET Install Project to do it though. Is it possible to[/color]
    write an install[color=blue]
    > project in VS .NET 2003 to register a public strong-named assembly in the GAC?
    > I can get the installer to put the assembly in the GAC, but it does not[/color]
    register it properly.[color=blue]
    > Any help or insight would be greatly appreciated.
    >
    > SMW[/color]


    Comment

    Working...