]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Make finding 32-bit libs easier
authorBen Kaduk <kaduk@mit.edu>
Wed, 15 Aug 2012 18:50:42 +0000 (14:50 -0400)
committerTom Yu <tlyu@mit.edu>
Wed, 29 Aug 2012 23:17:17 +0000 (19:17 -0400)
Our 64-bit installer provides 32-bit libraries as well as 64-bit
libraries, but not all 32-bit applications (e.g., PuTTY, Pidgin)
are able to locate them in C:\Program Files\MIT\Kerberos .
Including an InstallDir key under the Wow6432Node tree lets them
work out-of-the-box; while here set all the registry keys in this
component in the compatibility tree, for consistency.

(cherry picked from commit 356f0c238e02812d30d04b0cc6e22b0dab2b6c0a)

ticket: 7337
status: resolved

src/windows/installer/wix/config.wxi
src/windows/installer/wix/files.wxi

index 40bdb7ccabb2684ac8ba25a0d3c9fcc5e8aa7022..afafd3563695991e1ce1d7323e1d1a9ff8afe816 100644 (file)
@@ -52,6 +52,7 @@
     <?endif?>
     
     <?define KfwRegRoot="SOFTWARE\MIT\Kerberos"?>
+    <?define KfwRegWow6432Root="SOFTWARE\Wow6432Node\MIT\Kerberos"?>
 
     <?define DocDir="$(var.TargetDir)doc\"?>
     <?define IncDir="$(var.TargetDir)include\"?>
              <?define UseNetIDMgr="1"?>
         <?endif?>
     <?endif?>
-</Include>
\ No newline at end of file
+</Include>
index 5a9b5114e6e516161b2e03de48e4a261435d3d7e..6b8d8cf78938697f008ba49aa0e78d01a385bd8e 100644 (file)
         <Registry Id="reg_common7" Root="HKLM" Key="$(var.KfwRegRoot)\CurrentVersion" Action="removeKeyOnInstall"/>
         <Registry Id="reg_common8" Root="HKLM" Key="$(var.KfwRegRoot)\$(var.VersionString)" Action="removeKeyOnInstall"/>
     <?endif?>
+    <?if $(var.Platform) = "x64"?>
+        <Registry Id="reg_common0_32" Root="HKLM" Key="$(var.KfwRegWow6432Root)" Action="createKeyAndRemoveKeyOnUninstall" />
+        <!-- Cannot set KeyPath twice in one Component -->
+        <Registry Id="reg_common2_32" Root="HKLM" Key="$(var.KfwRegWow6432Root)" Name="InstallDir" Type="string" Value="[KERBEROSDIR]"/>
+    <?ifdef Debug?>
+        <Registry Id="reg_common3_32" Root="HKLM" Key="$(var.KfwRegWow6432Root)\CurrentVersion" Action="createKeyAndRemoveKeyOnUninstall"/>
+        <Registry Id="reg_common4_32" Root="HKLM" Key="$(var.KfwRegWow6432Root)\CurrentVersion" Name="Debug" Type="integer" Value="1"/>
+        <Registry Id="reg_common5_32" Root="HKLM" Key="$(var.KfwRegWow6432Root)\$(var.VersionString)" Action="createKeyAndRemoveKeyOnUninstall"/>
+        <Registry Id="reg_common6_32" Root="HKLM" Key="$(var.KfwRegWow6432Root)\$(var.VersionString)" Name="Debug" Type="integer" Value="1"/>
+    <?else?>
+        <Registry Id="reg_common7_32" Root="HKLM" Key="$(var.KfwRegWow6432Root)\CurrentVersion" Action="removeKeyOnInstall"/>
+        <Registry Id="reg_common8_32" Root="HKLM" Key="$(var.KfwRegWow6432Root)\$(var.VersionString)" Action="removeKeyOnInstall"/>
+    <?endif?>
+    <?endif?>
     </Component>
     
     <Component Win64="$(var.Win64)" Id="rcm_client" Guid="901179B2-7369-43b1-ACF3-4C7F37482CC7">