2 <Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
6 <!-- See config.wxi for the symbols that it defines/asserts -->
9 <!-- See language_config for localization options. -->
10 <?include language_config.wxi?>
13 We autogenerate a new product code for each build. According to MSDN we have
14 to change the product code whenever we change the name of the MSI file. Each
15 version of OpenAFS has a different MSI name. Thus, each version needs a
19 Id="????????-????-????-????-????????????"
20 Codepage="$(var.Codepage)"
21 Language="$(var.LanguageCode)"
22 Manufacturer="$(var.Manufacturer)"
23 Name="$(var.ProductName)"
24 UpgradeCode="A94D03E9-EF11-4B87-9B42-409016BD4B7C"
25 Version="$(var.NumericVersion)">
28 Note that we are not specifying an explicit Package Code below. That way WiX will
29 generate a new one for each build. If an explicit one needs to be specified, use :
30 Id="$(var.PackageCode)"
33 Id="????????-????-????-????-????????????"
35 Comments="$(var.PackageComments)"
37 Description="$(var.ProductName)"
38 InstallerVersion="$(var.InstallerVersion)"
39 Keywords="Installer,OpenAFS,$(var.Manufacturer)"
40 Languages="$(var.Languages)"
41 Manufacturer="$(var.Manufacturer)"
42 Platforms="$(var.Platform)"
44 SummaryCodepage="1252"
47 <!-- Launch conditions -->
48 <Condition Message="$(loc.StrLaunchCond)">
49 <![CDATA[VersionNT >= 500]]>
52 <!-- Global Properties -->
53 <?include property.wxi?>
55 <!-- File system and registry settings -->
56 <Directory Id="TARGETDIR" Name="SourceDir">
57 <?include platform.wxi?>
58 <?include registry.wxi?>
63 <?include feature.wxi?>
65 <!-- User interface -->
66 <?include lang\$(var.Language)\ui.wxi?>
68 <!-- Installation Sequences -->
69 <AdvertiseExecuteSequence />
70 <AdminExecuteSequence />
71 <InstallExecuteSequence>
72 <RemoveExistingProducts After="InstallValidate">(Not Installed) And (OPENAFSBIN_UPGRADE)</RemoveExistingProducts>
73 </InstallExecuteSequence>
75 <!-- Related producs -->
76 <!-- OpenAFS MSI installer -->
77 <Upgrade Id="A94D03E9-EF11-4B87-9B42-409016BD4B7C">
78 <UpgradeVersion IgnoreRemoveFailure="no" IncludeMaximum="yes" Maximum="$(var.NumericVersion)" MigrateFeatures="yes" Property="OPENAFSBIN_UPGRADE" />
82 <Media Id="1" Cabinet="disk1.cab" CompressionLevel="high" EmbedCab="yes" />