MFC 7.1 merge modules
Posted 27 March 2005 - 18:42
installation for my MFC project. I have added Microsoft's merge modules for MFC7.1, which means that the MFC Dll's are installed in my applications folder. It's
just that I have a sub-folder called bin where I want to put all my
executables and dll's.
How can I change the destination for the files in the merge modules so they
are put in my \bin sub-folder instead of directly under my applications
Posted 31 March 2005 - 21:45
Posted 01 April 2005 - 15:27
Synergy Software Engineer
ProfitStars, a Jack Henry Company
Posted 01 April 2005 - 22:37
This entry has a parent directory INSTALLDIR, and a DefaultDir value of ".:<GUID>", meaning that everything installed in this directory will be installed in the same folder that INSTALLDIR points to. In case of an admin install, the files will appear in a subfolder <GUID>.
If you change the DefaultDir value to "Bin:<GUID>", you should be OK. I don't think you can tell Visual Studio to do this, so you're stuck to do so with Orca after each build - although it's possible to create a script to do that for you.
The magic <GUID> value is derived from the MSM module ID, where all dots are replaced by underscores.
A different approach is creating a new subfeature, with a suitable directory assigned to it. Assign the MSM to this subfeature, give the subfeature the attribute msidbFeatureAttributesFollowParent, and set Display to 0 (meaning that it won't be visible in the UI). Disclaimer: I don't have experience on this.
Note: either approach do not apply to files that install to WinDir, WinSysDir etc.
Posted 14 April 2005 - 18:20
At least that's what i did when i installed the MFC 7.1. It has to work since this merge module is retargetable!
I hope it's helpful