Inside the PatchFamily, include, <PropertyRef Id="ProductVersion"/>
So that the updated productversion property is included in the patch. -----Original Message----- From: Elfe Xu [mailto:elf...@microsoft.com] Sent: 11 April 2011 04:38 To: wix-users@lists.sourceforge.net Subject: [WiX-users] ProductVersion does not changed after install Patch Hi, I'm following the tutorial http://wix.sourceforge.net/manual-wix3/wix_patching.htm to create patches by WiX. I have an old MSI with version 0.1.1463.0, and a new MSI with version 0.2.1468.0, and then using the same approach as the tutorial to create a Patch.msp. I installed old MIS, then install Patch.msp. I found although the files are replaced correctly after installing patch, the ProductVersion shown on Add/Remove Program panel is still the old one (0.1.1463.0). And I found I can install the patch again and again. I use ORCA to check the packages. For old MSI, it has a property ProductVersion=0.1.1463.0 For new MSI, it has a property ProductVersion=0.2.1468.0 For the Patch, The MsiPatchSequence has the SamplePatchFamily row with sequence=0.2.1468.0. However, it does not contain any other version information. If I use Transform->ViewPatch to view the Patch, in the Property table, I only see following properties added, but the ProductVersion property is not changed. _806DAAD55E60414984A8C6AB43F2E87C.AllowRemoval 1 _806DAAD55E60414984A8C6AB43F2E87C.PatchCode {806DAAD5-5E60-4149-84A8-C6AB43F2E87C} PATCHNEWSUMMARYSUBJECT A test Minor Update PATCHNEWPACKAGECODE {806DAAD5-5E60-4149-84A8-C6AB43F2E87C} PATCHNEWSUMMARYCOMMENTS A test Minor Update What should I do, to make the ProductVersion updated after installing the patch? Thanks, -Elfe P.S. I'm using following code to create patch: <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <?include "..\..\..\Version.wxi" ?> <Patch Id="{806DAAD5-5E60-4149-84A8-C6AB43F2E87C}" AllowRemoval="yes" Manufacturer="!(loc.ManufactureName)" MoreInfoURL="!(loc.MoreInfoURL)" DisplayName="!(loc.PatchDisplayName)" Description="!(loc.PatchDescription)" Classification="Hotfix" > <Media Id="5000" Cabinet="patch.cab"> <PatchBaseline Id="RTM"> <Validate ProductVersionOperator="Equal" /> </PatchBaseline> </Media> <PatchFamilyRef Id="SamplePatchFamily"/> </Patch> <Fragment> <!--TODO: Update this section, to include components that need to be updated.--> <PatchFamily Id='SamplePatchFamily' Version='$(var.Product_Version)' Supersede='yes'> <ComponentRef Id="cmpDB105F4AB1E44437B2CE0502A96019E8"/> <ComponentRef Id="cmpEE183C6477823F89D36AFD338130E837"/> </PatchFamily> </Fragment> </Wix> And following command: <Exec Command="$(WixToolPath)candle.exe -wx -arch x64 -o $(ObjDir)\Bin\x64\Patch.wixobj Patch.wxs" /> <Exec Command="$(WixToolPath)light.exe -o $(ObjDir)\Bin\en-us\Patch_x64.wixmsp -cultures:en-us -loc Strings_en_US.wxl $(ObjDir)\Bin\x64\Patch.wixobj " /> <Exec Command="$(WixToolPath)torch.exe -p -xi $(EnlistmentRoot)\Public\MU\Previous\en-us\Setup_x64.wixpdb $(OutputPath)\en-us\Setup_x64.wixpdb -o $(ObjDir)\Bin\en-us\diff_x64.wixmst" /> <Exec Command="$(WixToolPath)pyro.exe -sw0227 -sw1079 -wx $(ObjDir)\Bin\en-us\Patch_x64.wixmsp -o $(OutputPath)\en-us\Patch_x64.msp -t RTM $(ObjDir)\Bin\en-us\diff_x64.wixmst" /> <Exec Command="makecab.exe $(OutputPath)\en-us\Patch_x64.msp $(OutputPath)\en-us\Patch_x64.cab" /> ----------------------------------------------------------------------------- - Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users