main
wxs 55 lines 2.12 KB
Raw
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="RegistrySearchVariable"
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="RegistrySearchVariable64"
33 Root="HKLM"
34 Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"
35 Value="Release"
36 Result="value"
37 Bitness="always64" />
38 </Fragment>
39
40 <Fragment>
41 <util:ProductSearch Id="ProductSearchId" Variable="ProductSearchVariable" UpgradeCode="738D02BF-E231-4370-8209-E9FD4E1BE2A1" Condition="1 &amp; 2 &lt; 3" Result="version" />
42 </Fragment>
43
44 <Fragment>
45 <util:DirectorySearch Id="DirectorySearchId" Variable="DirectorySearchVariable" Path="%windir%\System32" Result="exists" DisableFileRedirection="yes" />
46 </Fragment>
47
48 <Fragment>
49 <util:FileSearch Id="FileSearchId" Variable="FileSearchVariable" Path="%windir%\System32\mscoree.dll" Result="exists" />
50 </Fragment>
51
52 <Fragment>
53 <util:WindowsFeatureSearch Id="DetectSHA2SupportId" Variable="IsSHA2Supported" Feature="sha2CodeSigning" />
54 </Fragment>
55 </Wix>