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 "$(TargetDir)tmp\msi\UpdatedProduct.msi" /quiet TARGETDIR="$(TargetDir)tmp\new"" /> <Exec Command="msiexec.exe /a "$(TargetDir)tmp\msi\OriginalProduct.msi" /quiet TARGETDIR="$(TargetDir)tmp\rtm"" /> <!-- create pcp --> <Exec Command=""$(WIX_DIR)\light.exe" "obj\$(Platform)\$(Configuration)\ProductPatch.wixobj" -cultures:en-us -loc "Loc_en-us.wxl" -out "obj\$(Platform)\$(Configuration)\ProductPatch.pcp"" /> <!-- create patch--> <Exec Command=""$(SDK_DIR)\msimsp.exe" -s "obj\$(Platform)\$(Configuration)\ProductPatch.pcp" -p "obj\$(Platform)\$(Configuration)\ProductPatch.msp" -l "obj\$(Platform)\$(Configuration)\patch.log"" /> <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