Hi,

Using PCP I can able to create the patch by giving 2 MSIs.

The changes in the text file and adding new files are reflected after
applying patch.

But the modifications in .exe and .dll files are not reflected.

Is there anything need to be specified in patch script? 

My patch script:

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <!-- Include wxi files -->
  <?include $(sys.CURRENTDIR)includes.wxi ?>
  <PatchCreation
      Id="{7B977D96-4062-485c-879A-46A1908B244A}"
      CleanWorkingFolder="yes"
      OutputPath="patch.pcp"
      WholeFilesOnly="yes" >

    <PatchInformation
        Description="$(var.PatchDesc)"
        Comments="$(var.PatchDisplayName)"
        ShortNames="no"
        Languages="1033"
        Compressed="yes"
        Manufacturer="$(var.Manufacturer)"/>

    <PatchMetadata
        AllowRemoval="yes"
        Description="$(var.PatchDesc)"
        ManufacturerName="$(var.Manufacturer)"
        TargetProductName="$(var.ProductName)"
        MoreInfoURL="$(var.OEMUrl)"
        Classification="Update"
        DisplayName="$(var.PatchDisplayName)"/>

    <Family DiskId="5000"
        MediaSrcProp="$(var.OEMProductLine)"
        Name="$(var.OEMProductLine)"
        SequenceStart="5000">
      <UpgradeImage SourceFile="$(var.UpgradeImageFile)"
                    Id="UpgradeImage">
        <TargetImage SourceFile="$(var.TargetImageFile)" 
                     Order="2" 
                     Id="TargetImage" 
                     IgnoreMissingFiles="no" />
      </UpgradeImage>
    </Family>

    <PatchSequence PatchFamily="MSPatchFamily"
        Sequence="1.0.0.0"
        Supersede="yes" />

  </PatchCreation>
</Wix>

Commands:
msiexec.exe -a <target-msi> /qb TARGETDIR=<path> msiexec.exe -a
<updated-msi> /qb TARGETDIR=<path>

candle.exe -dUpgradeImageFile=<extracted updated msi>
-dTargetImageFile=<extracted target msi> Patch.wxs light.exe
patch.wixobj -out patch\patch.pcp

MsiMsp.Exe -s patch\patch.pcp -p patch\patch.msp -l patch.log

Thank You,
Preethi.

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to