| 1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> |
| 2 | <Bundle Name="!(loc.BundleName)" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a"> |
| 3 | <BootstrapperApplication SourceFile="fakeba.dll" /> |
| 4 | |
| 5 | <util:RegistrySearchRef Id="RegistrySearchId" /> |
| 6 | <util:RegistrySearchRef Id="RegistrySearchId64" /> |
| 7 | <util:ProductSearchRef Id="ProductSearchId" /> |
| 8 | <util:DirectorySearchRef Id="DirectorySearchId" /> |
| 9 | <util:FileSearchRef Id="FileSearchId" /> |
| 10 | <util:WindowsFeatureSearchRef Id="DetectSHA2SupportId" /> |
| 11 | |
| 12 | <Chain> |
| 13 | <MsiPackage SourceFile="test.msi"> |
| 14 | <MsiProperty Name="TEST" Value="1" /> |
| 15 | </MsiPackage> |
| 16 | </Chain> |
| 17 | </Bundle> |
| 18 | |
| 19 | <Fragment> |
| 20 | <util:RegistrySearch |
| 21 | Id="RegistrySearchId" |
| 22 | Variable="VersionNT64" |
| 23 | Root="HKLM" |
| 24 | Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" |
| 25 | Value="Release" |
| 26 | Result="value" /> |
| 27 | </Fragment> |
| 28 | |
| 29 | <Fragment> |
| 30 | <util:RegistrySearch |
| 31 | Id="RegistrySearchId64" |
| 32 | Variable="WixBundleAction" |
| 33 | Root="HKLM" |
| 34 | Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" |
| 35 | Value="Release" |
| 36 | Result="value" |
| 37 | Bitness="always64" /> |
| 38 | |
| 39 | <util:RegistrySearch |
| 40 | Variable="WixCustomVariable" |
| 41 | Root="HKLM" |
| 42 | Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Custom" |
| 43 | Value="Release" |
| 44 | Result="value" |
| 45 | Bitness="always64" /> |
| 46 | </Fragment> |
| 47 | |
| 48 | <Fragment> |
| 49 | <util:ProductSearch Id="ProductSearchId" Variable="Date" UpgradeCode="738D02BF-E231-4370-8209-E9FD4E1BE2A1" Condition="1 & 2 < 3" Result="version" /> |
| 50 | </Fragment> |
| 51 | |
| 52 | <Fragment> |
| 53 | <util:DirectorySearch Id="DirectorySearchId" Variable="InstallerName" Path="%windir%\System32" Result="exists" DisableFileRedirection="yes" /> |
| 54 | </Fragment> |
| 55 | |
| 56 | <Fragment> |
| 57 | <util:FileSearch Id="FileSearchId" Variable="NativeMachine" Path="%windir%\System32\mscoree.dll" Result="exists" /> |
| 58 | </Fragment> |
| 59 | |
| 60 | <Fragment> |
| 61 | <util:WindowsFeatureSearch Id="DetectSHA2SupportId" Variable="NTProductType" Feature="sha2CodeSigning" /> |
| 62 | </Fragment> |
| 63 | </Wix> |