]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: Set the ARPINSTALLLOCATION property when installing
authorAsanka Herath <asanka@secure-endpoints.com>
Wed, 21 Oct 2009 19:56:12 +0000 (15:56 -0400)
committerJeffrey Altman <jaltman|account-1000011@unknown>
Wed, 21 Oct 2009 22:19:41 +0000 (15:19 -0700)
The WiX based Windows Installer package for OpenAFS should set
the ARPINSTALLLOCATION property when installing.  This property
contains the main installation directory for the product and is
necessary for Windows Logo compliance.

Reviewed-on: http://gerrit.openafs.org/704
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/install/wix/oafwbins.wxs
src/WINNT/install/wix/openafs.wxs

index f04b1d0875659a1ef4c0faddec1e126f1340d77c..f21eee6b181396f0f619fbd0170f67c6e5daa630 100644 (file)
         
         <!-- User interface -->
         <?include lang\$(var.Language)\ui.wxi?>
-        
+
+        <CustomAction
+           Id="SetInstallLocation"
+           Property="ARPINSTALLLOCATION"
+           Value="[AFSDIR]" />
+
         <!-- Installation Sequences -->
         <AdvertiseExecuteSequence />
         <AdminExecuteSequence />
         <InstallExecuteSequence>
             <RemoveExistingProducts After="InstallValidate">(Not Installed) And (OPENAFSBIN_UPGRADE)</RemoveExistingProducts>
+            <Custom Action="SetInstallLocation" Before="RegisterProduct" />
         </InstallExecuteSequence>
 
         <!-- Related producs -->
index b1f3548b802535cc32f8603bd07bae85651b88c5..127af093079e0eefbe6704ea97cdf4dc30b064a4 100644 (file)
                 BinaryKey="BIN_afsCustom"
                 DllEntry="AbortMsiImmediate"
                 Execute="immediate" />
+                <CustomAction
+                   Id="SetInstallLocation"
+                   Property="ARPINSTALLLOCATION"
+                   Value="[AFSDIR]" />
 
         <!-- Installation Sequences -->
         <AdvertiseExecuteSequence />
                        <!-- <Custom Action="RemoveAFSAdminGroup" Before="">&amp;feaClient=2</Custom> -->
                        <Custom Action="RollbackAFSAdminGroup" Before="CreateAFSAdminGroup">&amp;feaClient=3</Custom>
                        <Custom Action="CreateAFSAdminGroup" Before="CreateFolders">&amp;feaClient=3</Custom>
+                        <Custom Action="SetInstallLocation" Before="RegisterProduct" />
             <ScheduleReboot After="PublishProduct">&amp;feaClient=3 OR &amp;feaServer=3 OR &amp;feaClient=2 OR &amp;feaServer=2</ScheduleReboot>
         </InstallExecuteSequence>