2008/10/27 cemiles <[EMAIL PROTECTED]>: > > My situation is I want a launch condition to fire off if the product has yet > to be installed (it's a regsearch to look for any other related products). > If the product gets installed, I want to make it so the launch condition > doesn't fire off on patch/majorupgrade/etc, basically only evaluate for a > fresh install. > > Here's how I'm setting it up (but its failing on any patches). > > <Condition > Message="!(loc.IMLaunchConditionOTHERAPPS)"><![CDATA[EXISTINGAPPS=""]]></Condition> > > <Property Id='EXISTINGAPPS' Secure='yes'> > <RegistrySearch Id='Registry' Type='raw' > Root='HKLM' Key='Software\CompanyName='Value' /> > </Property> > > // Clears the prop > <CustomAction Id="SetUninstallLaunchCondition" Property="EXISTINGAPPS" > Value="" /> > > // Should clears the prop on any scenario other than fresh install > <Custom Action="SetUninstallLaunchCondition" > Before="LaunchConditions">REMOVE="ALL" OR REINSTALL="ALL" OR PATCH OR > MSIPATCHREMOVE OR UPGRADINGPRODUCTCODE</Custom> > > Any thoughts? Seems like the CA isn't firing on the patch to change the > prop > --
For your problem, it looks like a sequence problem (order of action) see Rob response and there: http://www.tramontana.co.hu/wix/lesson3.php. But it seem to me you have taken the problem by the bad side. Did you look to the Installed property? With it, I think you could reverse your implementation logic and simplify your setup. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users