Verbose log file should show you the order of actions.

-----Original Message-----
From: cemiles [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2008 13:53
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Launch condition on patch not working


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
--
View this message in context: 
http://n2.nabble.com/Launch-condition-on-patch-not-working-tp1384275p1384275.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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


-------------------------------------------------------------------------
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

Reply via email to