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
- :
- DuplicateFile table using GAC
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 29, 2009
09:17 AM
DuplicateFile table using GAC
hello,
My installer has grown very large b/c of file duplication. Some of our DLL's are in two places (local and GAC or local and system32 folders). How can I use the DuplicateFile table or other IS mechanism (installscript?) to duplicate the file in the GAC? It's the same file that needs to be copied to two locations but I only want it in the installer once because of its size.
My project type is actually Installscript MSI.
Hopefully my request is clear. Thanks!
My installer has grown very large b/c of file duplication. Some of our DLL's are in two places (local and GAC or local and system32 folders). How can I use the DuplicateFile table or other IS mechanism (installscript?) to duplicate the file in the GAC? It's the same file that needs to be copied to two locations but I only want it in the installer once because of its size.
My project type is actually Installscript MSI.
Hopefully my request is clear. Thanks!
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 04, 2010
07:49 AM
Anyone have any ideas here???
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 04, 2010
09:52 AM
Hi There,
If I recall correctly, the DuplicateFile table doesn't work with a component targeted towards the GAC (in the docs it says, "The original file must be a file installed by the InstallFiles action.", but with the GAC, it's MsiPublishAssemblies).
So, probably the way to handle this would be to just install your assemblies locally and invoke gacutil.exe from your script for each assembly that needs to go to the GAC. You'll need to probably also store some information on these so you can handle uninstall as well.
If I recall correctly, the DuplicateFile table doesn't work with a component targeted towards the GAC (in the docs it says, "The original file must be a file installed by the InstallFiles action.", but with the GAC, it's MsiPublishAssemblies).
So, probably the way to handle this would be to just install your assemblies locally and invoke gacutil.exe from your script for each assembly that needs to go to the GAC. You'll need to probably also store some information on these so you can handle uninstall as well.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 08, 2010
12:38 PM
Thanks cary.
I ended up calling the gacutil.exe in my installscript msi (since installing mostly to developers machines with our distro).
-jp
I ended up calling the gacutil.exe in my installscript msi (since installing mostly to developers machines with our distro).
-jp
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 08, 2010
03:18 PM
Ah Dev machines, i was going to say.... gacutil has been yanked from regular user machines. No longer a good idea to use gacutil. I think a lot of us got burnt on that one. Mostly because we didn't follow then 'Macrovision's' proper way of doing it.
