Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

MDAC26 Merge Module Not Associating With Feature


9 replies to this topic

MIchael Scribano

MIchael Scribano
  • Members
  • 15 posts

Posted 25 April 2001 - 21:00

Has anyone had problems with the InstallShield-provided MDAC 2.6 MM (and/or
others) launching before the user even selects the feature to which the MM
is associated?

I see MDAC running during the UI phase of the installation prior to getting
to the setup dialogs.  I have some features that do not require the MDAC MM,
nor do I want MDAC installed on a customer machine if they don't need it
especially since it's irreversible.

Since MMs are components that are tied to features, then this behavior
should not occur.  When I opened the MDAC26.MSM file as an ISWI project, I
found that there are custom actions in the ModuleInstallUISequence and the
ModuleInstallExecuteSequence tables which are then merged with the
InstallUISequence and InstallExecuteSequence tables, respectively, of the
main project.

I think the problem lies with the CAs in the UI-related tables, so I'm
modifying this MM (and the DCOM95 MM since it's built the same way) by
taking the CAs out of the ModuleInstallUISequence table.  I haven't had any
success yet; MDAC won't launch now in the Execute sequence.

Has anyone come across this same thing?


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 April 2001 - 11:25

You'd have to add the proper conditions to these custom actions. See "Conditional Statement Syntax" in msi help for information how to build conditions depending on feature selection.

MIchael Scribano

MIchael Scribano
  • Members
  • 15 posts

Posted 26 April 2001 - 18:40

Stefan,

This is an "as is" MM from InstallShield, and the last post has been my experience with it.  

I'm playing with this MM and the DCOM95 MM now.  I've given up trying to find out why it doesn't associate with features for now.  I've removed the feature that doesn't require MDAC, so I'm just going to let it launch.  However, I'm modifying the sequence table to have them launch later on because I want to check for Internet Explorer first and install it, if needed.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 27 April 2001 - 08:41

Yes, I know you were talking about InstallShield's module.

The module adds custom actions to the sequence table of your msi package. These are executed unless they have a condition that evaluates to false. Such a condition could be based on the feature or component selection, but obviously InstallShield has not added such conditions. And as these actions are placed very early in the sequence, the feature selection tree has not been shown to the user when the action executes.

BTW if you used Microsoft's method with the MDAC wrapper, MDAC and DCOM would also be always installed, independent of feature selection.


MIchael Scribano

MIchael Scribano
  • Members
  • 15 posts

Posted 27 April 2001 - 15:14

Thanks for the info., Stefan.  This confirms what I have suspected with these modules.  

I'm surprised that they were written without regard to feature selection.  However, can a MM be written so that its CAs will launch on a feature-based condition?  In other words, is there a way to pass a feature's name to the MM code without directly modifying it?

Also, you mentioned "Microsoft's method with the MDAC wrapper".  I'm not familiar with it.  Is that another MM?

Thanks.

As I mentioned, I'm trying to make these work


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 27 April 2001 - 17:00

No, a merge module cannot see its parent's features. But maybe a component could be used instead.

Microsoft created an EXE that first installs MDAC, then launches your MSI setup.


MIchael Scribano

MIchael Scribano
  • Members
  • 15 posts

Posted 27 April 2001 - 17:08

That EXE sounds interesting.  What is its name?  Where can I find it?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 27 April 2001 - 20:18

Please read here:
http://www.installsi...s.htm#mdac_dcom

MIchael Scribano

MIchael Scribano
  • Members
  • 15 posts

Posted 27 April 2001 - 21:09

Thanks, Stefan.  I'll check it out.