1 \feff<?xml version="1.0" ?>
2 <Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
4 <!-- See config.wxi for the symbols that it defines/asserts -->
7 <!-- See language_config for localization options. -->
8 <?include language_config.wxi?>
11 Id="$(var.ProductCode)"
12 Codepage="$(var.Codepage)"
13 Language="$(var.LanguageCode)"
14 Manufacturer="$(var.Manufacturer)"
15 Name="$(var.ProductName)"
16 UpgradeCode="6823EEDD-84FC-4204-ABB3-A80D25779833"
17 Version="$(var.NumericVersion)"
21 Note that we are not specifying an explicit Package Code below. That way WiX will
22 generate a new one for each build. If an explicit one needs to be specified, use :
23 Id="$(var.PackageCode)"
27 Comments="$(var.PackageComments)"
29 Description="$(var.ProductName)"
30 InstallerVersion="110"
31 Keywords="Installer,OpenAFS,$(var.Manufacturer)"
32 Languages="$(var.Languages)"
33 Manufacturer="$(var.Manufacturer)"
36 SummaryCodepage="1252"
39 <!-- Launch conditions -->
41 Message="$(loc.StrLaunchCond)">
42 <![CDATA[VersionNT >= 500]]>
45 <!-- Global Properties -->
46 <?include property.wxi?>
48 <!-- File system and registry settings -->
49 <Directory Id="TARGETDIR" Name="SourceDir">
50 <?include registry.wxi?>
55 <?include feature.wxi?>
57 <!-- User interface -->
58 <?include lang\$(var.Language)\ui.wxi?>
60 <!-- Custom actions -->
63 src="$(var.MediaBinDir)instloop.exe"/>
66 src="$(var.MediaBinDir)afscustom.dll"/>
69 BinaryKey="BIN_Instloop"
74 <?ifdef RemoveLoopback?>
77 BinaryKey="BIN_Instloop"
85 BinaryKey="BIN_Instloop"
93 Id="InstallNetProvider"
94 BinaryKey="BIN_afsCustom"
95 DllEntry="InstallNetProvider"
96 Execute="oncePerProcess" />
98 Id="RemoveNetProvider"
99 BinaryKey="BIN_afsCustom"
100 DllEntry="UninstallNetProvider"
102 Execute="oncePerProcess" />
104 Id="RollbackNetProvider"
105 BinaryKey="BIN_afsCustom"
106 DllEntry="UninstallNetProvider"
108 Execute="rollback" />
111 BinaryKey="BIN_afsCustom"
112 DllEntry="ConfigureClientService"
114 Execute="deferred" />
117 BinaryKey="BIN_afsCustom"
118 DllEntry="ConfigureServerService"
120 Execute="deferred" />
122 Id="RemoveNsisInstallation"
123 BinaryKey="BIN_afsCustom"
124 DllEntry="UninstallNsisInstallation"
125 Execute="immediate" />
127 Id="AbortInstallationA"
128 BinaryKey="BIN_afsCustom"
129 DllEntry="AbortMsiImmediate"
130 Execute="immediate" />
132 Id="AbortInstallationB"
133 BinaryKey="BIN_afsCustom"
134 DllEntry="AbortMsiImmediate"
135 Execute="immediate" />
137 <!-- Installation Sequences -->
138 <AdvertiseExecuteSequence />
139 <AdminExecuteSequence />
140 <InstallExecuteSequence>
141 <RemoveExistingProducts After="InstallValidate">IBMAFS_UPGRADE OR OPENAFS_UPGRADE</RemoveExistingProducts>
142 <Custom Action="RemoveNsisInstallation" Before="AbortInstallationA">NSISUNINSTALL <> "" AND UILevel >= 4</Custom>
143 <Custom Action="AbortInstallationA" Before="CostInitialize">NSISUNINSTALL <> "" AND UILevel < 4</Custom>
144 <!-- Assert that if the server is going to be installed locally after this session, control center and client are also local -->
145 <Custom Action="AbortInstallationB" After="MigrateFeatureStates">
146 <![CDATA[((&feaServer=3 OR (!feaServer=3 AND &feaServer<1)) AND (&feaClient=2 OR (&feaClient<>3 AND !feaClient<>3) OR &feaControlCenter=2 OR (&feaControlCenter<>3 AND !feaControlCenter<>3) ))]]>
148 <?ifdef RemoveLoopback?>
149 <Custom Action="RemoveLoopback" After="SelfRegModules">&feaLoopback=2 OR &feaLoopback=3</Custom>
150 <Custom Action="RollbackLoopback" After="RemoveLoopback">&feaLoopback=3</Custom>
151 <Custom Action="InstallLoopback" After="RollbackLoopback">&feaLoopback=3</Custom>
153 <Custom Action="InstallLoopback" After="SelfRegModules">&feaLoopback=3</Custom>
155 <Custom Action="RollbackNetProvider" After="WriteRegistryValues">&feaClient=3</Custom>
156 <Custom Action="InstallNetProvider" After="RollbackNetProvider">&feaClient=3</Custom>
157 <Custom Action="RemoveNetProvider" After="InstallNetProvider">&feaClient=2</Custom>
158 <Custom Action="ConfigureClient" After="InstallServices">&feaClient=3</Custom>
159 <Custom Action="ConfigureServer" After="ConfigureClient">&feaServer=3</Custom>
160 <ScheduleReboot After="PublishProduct">&feaClient=3 OR &feaServer=3 OR &feaClient=2 OR &feaServer=2</ScheduleReboot>
161 </InstallExecuteSequence>
163 <!-- Related producs -->
164 <!-- MIT's OpenAFS MSI installer -->
165 <Upgrade Id="6823EEDD-84FC-4204-ABB3-A80D25779833">
166 <UpgradeVersion IgnoreRemoveFailure="no" IncludeMaximum="no" Maximum="$(var.NumericVersion)" MigrateFeatures="yes" Property="OPENAFS_UPGRADE" />
169 <!-- MIT's Transarc AFS MSI Installer -->
170 <Upgrade Id="5332B94F-DE38-4927-9EAB-51F4A64193A7">
171 <UpgradeVersion IgnoreRemoveFailure="no" IncludeMaximum="yes" Maximum="3.6.2" MigrateFeatures="no" Property="IBMAFS_UPGRADE" />
174 <!-- openafs.org NSIS installer is detected using other means -->
175 <!-- Please let us know if you want other Installers to be detected and upgraded/removed -->
178 <Media Id="1" Cabinet="disk1.cab" CompressionLevel="mszip" EmbedCab="yes" />