As a general comment you seem to be missing the fact that once a merge
module has been merged into an MSI file it's just a set of components,
and you have to treat it that way. A MM is just a handy way to keep a
bunch of common components around in a package, so, some inline comments
to be specific:  
 
Phil Wilson 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Levi
Wilson
Sent: Wednesday, January 31, 2007 9:00 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Checking for MergeModule's Existence


I have a merge module that installs some COM components.  I have a CA
that needs to use one of these COM objects, so I added it to the
InstallExecute sequence after RegisterProduct.

[Wilson, Phil] There is no "so" here. RegisterProduct is not significant
as a marker for whether COM components have been registered yet or
become not registered.
 
   I ONLY need this to run when the merge module is FIRST installed.
However, when I uninstall the product, the CA executes and fails because
the COM object doesn't exist anymore.  
 
[Wilson, Phil]  Merge modules aren't really "installed", as mentioned
above. It seems to me that all you need is a condition on your CA of Not
Installed so it is called only when the MSI product is first installed,
and you don't need a component search. 
 
 I have a <ComponentSearch /> for my Merge Module to check the existence
of its own GUID.  Even on a Fresh install, this gets set to the path for
some reason?!?  
 
[Wilson, Phil] The most likely reason is that it's there. If it really
is in a merge module that's installed by another product then could it
be there already? It's not about that guid from your install being
installed on the system, it's whether that component guid is on the
system, period. 
 
 My custom custom action is conditioned on the ComponentSearch, so I
have a "NOT MYCOMPONENT_INSTALLED" so it only does it the first time.
This does not work.  How can I get my CA to only execute when the merge
module is first added??? 
[Wilson, Phil] If by "added" you mean "installed as part of the MSI
install" then you just need a condition like not Installed, or one
conditioned on the component action. 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to