Hi,

This is the first time I am working to create the patch. From the WIX 
documentation I am able to create the first patch without any difficulty but 
doing the second patch is giving me a hard time. I am using the original RTM of 
our application for the base of our patch and I am trying to do the cumulative 
patch. When I compile my patch creation project, it compiles fine and create 
the new MSP file but when I run, it doesn't installs the patch 2 and just 
leaves the patch 1 as it is. I tried running it with the log but I didn't saw 
any useful information. I did some googling and found some approaches which I 
tried but none of them worked. So I am looking for some help over here. I am 
pasting the project file code and .wxs file code.

Project File
<Target Name="AfterBuild">
    <CreateProperty Value="ProductPatch.msi">
      <Output TaskParameter="Value" PropertyName="VersionedOutputName" />
    </CreateProperty>
    <RemoveDir ContinueOnError="true" Directories="$(TargetDir)tmp" />
    <MakeDir 
Directories="$(TargetDir)tmp;$(TargetDir)tmp\rtm;$(TargetDir)tmp\new;$(TargetDir)tmp\msi"
 />
    <Copy 
SourceFiles="$(OriginalMSILocation)\$(Platform)\$(Configuration)\Product 
$(InstallerSuffixMarketVersion)$(UnderScoreIfBuildFlavour)$(BuildFlavour).msi" 
DestinationFiles="$(TargetDir)tmp\msi\OriginalProduct.msi" />
    <Copy 
SourceFiles="..\..\..\bin\$(Platform)\$(Configuration)\en-us\ProductInstaller.msi"
 DestinationFiles="$(TargetDir)tmp\msi\UpdatedProduct.msi" />
    <Exec Command="msiexec.exe /a 
&quot;$(TargetDir)tmp\msi\UpdatedProduct.msi&quot; /quiet 
TARGETDIR=&quot;$(TargetDir)tmp\new&quot;" />
    <Exec Command="msiexec.exe /a 
&quot;$(TargetDir)tmp\msi\OriginalProduct.msi&quot; /quiet 
TARGETDIR=&quot;$(TargetDir)tmp\rtm&quot;" />
    <!-- create pcp -->
    <Exec Command="&quot;$(WIX_DIR)\light.exe&quot; 
&quot;obj\$(Platform)\$(Configuration)\ProductPatch.wixobj&quot; 
-cultures:en-us -loc &quot;Loc_en-us.wxl&quot; -out 
&quot;obj\$(Platform)\$(Configuration)\ProductPatch.pcp&quot;" />
    <!-- create patch-->
    <Exec Command="&quot;$(SDK_DIR)\msimsp.exe&quot; -s 
&quot;obj\$(Platform)\$(Configuration)\ProductPatch.pcp&quot; -p 
&quot;obj\$(Platform)\$(Configuration)\ProductPatch.msp&quot; -l 
&quot;obj\$(Platform)\$(Configuration)\patch.log&quot;" />
    <Copy SourceFiles="obj\$(Platform)\$(Configuration)\ProductPatch.msp" 
DestinationFiles=".\..\..\..\bin\$(Platform)\$(Configuration)\en-us\ProductPatch.msp"
 />
  </Target>



WXS file
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <?include $(var.SolutionDir)\Common\Constants.wxi ?>
   <PatchCreation Id="$(var.PatchId)" CleanWorkingFolder="yes" 
OutputPath="$(var.ProjectName).pcp" WholeFilesOnly="no">
      <PatchInformation Description="Patch" Comments="Patch" 
Manufacturer="!(loc.ManufacturerShortName)"/>
     <PatchMetadata AllowRemoval="yes" Description="Patch1" 
ManufacturerName="!(loc.ManufacturerShortName)" TargetProductName="Product1" 
Classification="Update" DisplayName="Product1" MinorUpdateTargetRTM="yes">
       <OptimizeCustomActions SkipAssignment="yes" SkipDeferred="yes" 
SkipImmediate="yes"/>
     </PatchMetadata>
      <Family DiskId="5000" MediaSrcProp="XYZ" Name="XYZ">
         <UpgradeImage SourceFile="$(var.TargetDir)tmp\new\Updated.msi" 
Id="ProductU" >
            <TargetImage SourceFile="$(var.TargetDir)tmp\rtm\Original.msi" 
Order="2" Id="ProductT" IgnoreMissingFiles="no"  />
         </UpgradeImage>
      </Family>
      <PatchSequence PatchFamily="ProductPatchFamily" 
Sequence="$(var.FullVersion)" Supersede="yes" />
   </PatchCreation>
</Wix>

Please let me know if there any more detail required.


Best Regards,

Harnek MANJ



This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systemes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

For other languages, go to http://www.3ds.com/terms/email-disclaimer
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to