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 allwo Merge Modules to install to the INSTALLDIR
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
‎Mar 03, 2010
07:45 AM
How to allwo Merge Modules to install to the INSTALLDIR
I have a merge module used by dozens of our installs. I recently added a component that needs to install to the Install Directory of the app it merges into. When I set the Component's Destination to [INSTALLDIR], it just goes to the root of the installation, and not to the install directory.
Is there a way I can set this on the merge module project so this component will install to the install directory? I have been successful if I change the destination of the MM in the application's installer, but I do not want to do this for every app that uses the MM if I can avoid it. Thanks for any help!
Is there a way I can set this on the merge module project so this component will install to the install directory? I have been successful if I change the destination of the MM in the application's installer, but I do not want to do this for every app that uses the MM if I can avoid it. Thanks for any help!
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 03, 2010
08:03 AM
Right click on merge module then go to its properties and set the destination to INSTALLDIR.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 03, 2010
08:14 AM
anoopmakhija wrote:
Right click on merge module then go to its properties and set the destination to INSTALLDIR.
Thank you, however I specified I've already done this. What I want to do is make this change on the merge module project itself. Not in the install project that is using the merge module. I have many projects that use this merge module, I'd rather not have to maintain adjusting that setting if I can avoid it.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 03, 2010
08:15 AM
Problem is, consider FeatureA with dependency of ModuleA with dependency of ModuleB
FeatureA -> ModuleA -> ModuleB
The right click associate to INSTALLDIR will only work for ModuleA. ModuleB will not be associated to INSTALLDIR, instead it will go to the root of the largest drive as you have noticed.
If you have many features and modules ( I have over 1000 merge modules ) this also becomes a pain to manage.
My solution? It's a bit of a hack but it's worked for years. I execute a SQL script against the built MSI to 'fix' the directory table so that INSTALLDIR.GUID directories have a parent of INSTALLDIR and a DefaultDir of '.'.
If there is a better way, I'd love to know it!
FeatureA -> ModuleA -> ModuleB
The right click associate to INSTALLDIR will only work for ModuleA. ModuleB will not be associated to INSTALLDIR, instead it will go to the root of the largest drive as you have noticed.
If you have many features and modules ( I have over 1000 merge modules ) this also becomes a pain to manage.
My solution? It's a bit of a hack but it's worked for years. I execute a SQL script against the built MSI to 'fix' the directory table so that INSTALLDIR.GUID directories have a parent of INSTALLDIR and a DefaultDir of '.'.
If there is a better way, I'd love to know it!
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)