cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jmartin
Level 3

Registering a dll which need MFC9 - Order problem

Hi!
I need to register a dll which is compiled (not statically) with MFC 9.0
In the same installer I include the merge modules for MFC9
The problem is that the dll can not be register because MFC90 are not installed yet, if a run the installer twice all is ok because the MFC are installed.
Can I set the order of the installation for a Merge Module ??

Thanks in advance
Labels (1)
0 Kudos
(2) Replies
KathyMorey
Level 10

Once a merge module is merged in, it is no longer a separate entity. It bcomes just some componenents in the MSI. So, no, there is no reliable way to order the merge module components.

You might look into installing the MFC files as a pre-requisite instead of through the merge modules. That is the only effective way I've found to workaround the way Microsoft installs files into the WinSxS directory.
0 Kudos
drewdy
Level 4

We had a similar issue with dll registration. The workaround I used was to create two custom actions that called regsvr32 on the dll to manually register/unregister it.

The registration occurs as the very last step of the install and the unregistration occurs after UnregisterMIMEInfo (last step before any files are removed).
0 Kudos