I tried to put the launch conditions in the patch.wxs's fragment but light.exe 
threw "Patches cannot contain the 'LaunchCondition' table.".

Is there a way to change the launch conditions using a pyro patch?

Thanks
Lian

-----Original Message-----
From: Lian Jiang [mailto:lji...@microsoft.com] 
Sent: Saturday, February 06, 2010 4:40 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Override V1 launch condition using a patch made by pyro.exe

Hi,

In V1, I have a launch condition:

<Condition Message="Uninstall is not supported">REINSTALL or Not 
Installed</Condition>

I want to override it with below condition in V2:

<Condition Message="Uninstall is not 
supported"><![CDATA[NOT(REMOVE)]]></Condition>

If I use a patch made by MSIMSP.EXE, it can be patched using "msiexec /update 
patch.msp" successfully. It looks like windows installer uses the V2 launch 
condition to launch the patch. However, if I use a patch made by Pyro.exe, it 
failed to patch with message "Uninstall is not supported". It looks like 
windows installer still uses the V1 launch condition so as to fail to launch 
the patch.

How can I make the V2 launch condition be used for the Pyro patch?

Below is my patch.wxs for the Pyro patch.

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <Patch
      AllowRemoval="yes"
      Classification="Update"
  >

    <Media Id="5000" Cabinet="patch1.cab">
      <PatchBaseline Id="RTM"/>
    </Media>

    <PatchFamilyRef Id="PatchFamily"/>
  </Patch>

  <Fragment>
    <PatchFamily Id='PatchFamily' Version='1.0.0.0' Supersede='yes'>
      <ComponentRef Id="MyFileComponent"/>
    </PatchFamily>
  </Fragment>
</Wix>

Appreciate your help!

Thanks
Lian
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to