This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: how to register .NET assembly in GAC linked to .netmodule
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 08, 2006
08:59 PM
how to register .NET assembly in GAC linked to .netmodule
I have a .NET assembly file that needs to be registered into the GAC. Using Installshield 11.5,
I create a basic msi project,
add the assembly into its own component where
the destination location is the [GlobalAssemblyCache],
change the compnent property .NET scan at build to "Properties Only",
and make sure the file is a "key file".
I have tried this on a .NET assembly that does not have any dependencies, and this works fine, but when I tried doing this with a .NET assembly that is linked to a .netmodule file, it fails at runtime when trying to register the assembly file.
I cannot add it to the [GlobalAssemblyCache] because it is not a .NET module
(Installshield complains).
Does anyone know how to fix this issue or have had the same problem?
FYI, when I tried to do the same with gacutil.exe, I noticed that the .netmodule had to be in the same directory as the .NET assembly for it to register it. Also, adding the .netmodule file to the path did not help.
I create a basic msi project,
add the assembly into its own component where
the destination location is the [GlobalAssemblyCache],
change the compnent property .NET scan at build to "Properties Only",
and make sure the file is a "key file".
I have tried this on a .NET assembly that does not have any dependencies, and this works fine, but when I tried doing this with a .NET assembly that is linked to a .netmodule file, it fails at runtime when trying to register the assembly file.
I cannot add it to the [GlobalAssemblyCache] because it is not a .NET module
(Installshield complains).
Does anyone know how to fix this issue or have had the same problem?
FYI, when I tried to do the same with gacutil.exe, I noticed that the .netmodule had to be in the same directory as the .NET assembly for it to register it. Also, adding the .netmodule file to the path did not help.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 10, 2006
06:27 AM
Your posting in the MultiPlatform forum! Try posting in one of the windows forums!
Regards,
Tom
Regards,
Tom