| OLD | NEW |
| (Empty) |
| 1 <?xml version='1.0'?> | |
| 2 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> | |
| 3 <Product Id='$(var.FooProductGuid)' Name='!!! User Test Foo' Language='1033' | |
| 4 Version="$(var.FooVersion)" Manufacturer='Google' | |
| 5 UpgradeCode='97781963-8283-4602-A9DA-CAE7A5536C75'> | |
| 6 <Package Id='*' | |
| 7 Description='User Test Foo' | |
| 8 Comments='Copyright 2007-2010 Google Inc.' | |
| 9 Manufacturer='Google Inc.' | |
| 10 InstallerVersion='200' | |
| 11 Compressed='yes' /> | |
| 12 | |
| 13 <Upgrade Id='97781963-8283-4602-A9DA-CAE7A5536C75'> | |
| 14 <UpgradeVersion Property='UPGRADING' | |
| 15 OnlyDetect='no' | |
| 16 Minimum='0.0.0.0' IncludeMinimum='yes' | |
| 17 Maximum='$(var.FooVersion)' IncludeMaximum='no' /> | |
| 18 <UpgradeVersion Property='NEWERVERSIONDETECTED' | |
| 19 OnlyDetect='yes' | |
| 20 Minimum='$(var.FooVersion)' IncludeMinimum='yes' /> | |
| 21 </Upgrade> | |
| 22 | |
| 23 <InstallExecuteSequence> | |
| 24 <RemoveExistingProducts After='InstallValidate'>UPGRADING</RemoveExisting
Products> | |
| 25 </InstallExecuteSequence> | |
| 26 | |
| 27 <Media Id='1' Cabinet='product.cab' EmbedCab='yes' CompressionLevel='high'
/> | |
| 28 | |
| 29 <Directory Id='TARGETDIR' Name='SourceDir'> | |
| 30 <Directory Id='LocalAppDataFolder' Name='PFiles'> | |
| 31 <Directory Id='UserFooDir' Name='UserTestFoo'> | |
| 32 <Directory Id='UserFooVersion' Name='$(var.FooVersion)'> | |
| 33 <Component Id='UserFooFiles' Guid='$(var.FooComponentGuid)'> | |
| 34 <File Id='test_foo' Vital='yes' Name='test_foo.exe' | |
| 35 DiskId='1' Source="$(var.FooExePath)"/> | |
| 36 <RegistryValue Id='test_foo' Root='HKCU' Key='Software\Microsoft
\RunAs\KeyPaths' Type='string' Value='test_foo.exe' KeyPath='yes' /> | |
| 37 <RemoveFolder Id='UserFooVersion' Directory='UserFooVersion' On=
'uninstall'/> | |
| 38 <RemoveFolder Id='UserFooDir' Directory='UserFooDir' On='uninsta
ll'/> | |
| 39 <Condition>NOT (ALLUSERS)</Condition> | |
| 40 </Component> | |
| 41 </Directory> | |
| 42 <Component Id='UserFooReg' Guid='$(var.FooComponentGuidRegistry)'> | |
| 43 <RegistryValue Root='HKCU' | |
| 44 Key='Software\Google\Update\Clients\{104844D6-7DDA-460b-89F0-FBF
8AFDD0A67}' | |
| 45 Name='name' Value="user_test_foo" | |
| 46 Action='write' Type='string' /> | |
| 47 <RegistryValue Root='HKCU' | |
| 48 Key='Software\Google\Update\Clients\{104844D6-7DDA-460b-89F0-FBF
8AFDD0A67}' | |
| 49 Name='pv' Value="$(var.FooVersion)" | |
| 50 Action='write' Type='string' /> | |
| 51 <Condition>NOT (ALLUSERS)</Condition> | |
| 52 </Component> | |
| 53 </Directory> | |
| 54 </Directory> | |
| 55 </Directory> | |
| 56 | |
| 57 <Feature Id='Foo' Title='Foo' Level='1'> | |
| 58 <ComponentRef Id='UserFooFiles' /> | |
| 59 <ComponentRef Id='UserFooReg' /> | |
| 60 </Feature> | |
| 61 <Property Id="UILevel"><![CDATA[1]]></Property> | |
| 62 | |
| 63 <Condition Message='Test Foo runs only on Windows 2000 Service Pack 3 and l
ater.'> | |
| 64 (VersionNT = 500 AND ServicePackLevel = 3) OR VersionNT >= 501 | |
| 65 </Condition> | |
| 66 | |
| 67 <Condition Message='User Test Foo only runs as a non admin'> | |
| 68 NOT ALLUSERS | |
| 69 </Condition> | |
| 70 </Product> | |
| 71 </Wix> | |
| 72 | |
| OLD | NEW |