Thanks Blair.

Yes, the patched MSI has the updated LaunchCondition.

I have the working infrastructure using MSIMSP.exe to create a patch. 
MSIMSP.exe includes all changes into the patch. The reason that I want to use 
Pyro.exe instead of MSIMSP.exe is that Pyro allows you to control which 
components you want to patch. This advantage will simplify our build process if 
we only want to patch some instead of all of the files. Therefore, there will 
be some components in PatchFamily section. Will this block patching Launch 
conditions using a Pyro patch? It looks like a condition element cannot exist 
in PatchFamily section or Fragment section or Patch section in below Patch.wxs. 

Appreciate your guidance.

Lian

-----Original Message-----
From: Blair [mailto:os...@live.com] 
Sent: Monday, February 08, 2010 11:35 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Override V1 launch condition using a patch made by 
pyro.exe

Look at the patched msi in orca. It is possible that your change to the
LaunchConditions table isn't included by pyro since you limit the changes
that are in your patch family.

To get all changes, no matter what fragment they came from, into your patch,
your patch family shouldn't have any children at all (it defaults to all
changes in the MSI).

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


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