From 1e23b1998c87ff0d2c3ea27a2e112532a13d2b6c Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 5 Sep 2007 18:03:13 +0000 Subject: [PATCH] MSI installer for 64-bit AMD64 Add support for building 64-bit AMD64 MSI install packages in addition to 32-bit i386 MSI install packages. Differences between 32-bit MSI and 64-bit MSI include: * no krb4 binaries and libraries * no kclient binaries and libraries * no krb524 binaries and libraries * no leash32.exe * new AMD64 UpgradeCode permits parallel installation with 32-bit MSI * support for Visual Studio 2005 (VS8, CL1400) merge modules Open Issues: * 32-bit MSI installs kfwlogon.dll on AMD64 systems * 32-bit and 64-bit NetIDMgr.exe as startup. Need to decide which should be executed by default. Only one can run at a time. * Need to make sure that src/windows/build properly configures the site-local.wxi file for Visual Studio 2005 and platform. ticket: new component: windows git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19922 dc483132-0cff-0310-8789-dd5450dbe970 --- src/windows/installer/wix/config.wxi | 28 +- src/windows/installer/wix/custom/custom.cpp | 3 + src/windows/installer/wix/features.wxi | 132 ++--- src/windows/installer/wix/files.wxi | 528 +++++++++++------- src/windows/installer/wix/kfw.wxs | 3 +- .../installer/wix/msi-deployment-guide.txt | 12 +- src/windows/installer/wix/platform.wxi | 191 +++++++ src/windows/installer/wix/runtime.wxi | 90 +++ src/windows/installer/wix/runtime_debug.wxi | 14 + 9 files changed, 687 insertions(+), 314 deletions(-) create mode 100644 src/windows/installer/wix/platform.wxi create mode 100644 src/windows/installer/wix/runtime.wxi create mode 100644 src/windows/installer/wix/runtime_debug.wxi diff --git a/src/windows/installer/wix/config.wxi b/src/windows/installer/wix/config.wxi index 0f07b14f7..734e16c08 100644 --- a/src/windows/installer/wix/config.wxi +++ b/src/windows/installer/wix/config.wxi @@ -39,14 +39,34 @@ - + + + + + + + + + + + + + + + + - - + + + + + + + + - diff --git a/src/windows/installer/wix/custom/custom.cpp b/src/windows/installer/wix/custom/custom.cpp index d6c637845..a61b632ac 100644 --- a/src/windows/installer/wix/custom/custom.cpp +++ b/src/windows/installer/wix/custom/custom.cpp @@ -87,6 +87,9 @@ SOFTWARE. // linker stuff #pragma comment(lib, "msi") #pragma comment(lib, "advapi32") +#if defined(_M_IA64) || defined(_M_AMD64) +#pragma comment(lib, "bufferoverflowu") +#endif void ShowMsiError( MSIHANDLE hInstall, DWORD errcode, DWORD param ){ diff --git a/src/windows/installer/wix/features.wxi b/src/windows/installer/wix/features.wxi index e07cc04cc..a15cfcd86 100644 --- a/src/windows/installer/wix/features.wxi +++ b/src/windows/installer/wix/features.wxi @@ -50,21 +50,17 @@ InstallDefault="$(var.DebugSymInstallDefault)" Level="$(var.DebugSymLowLevel)" Title="$(loc.StrKerberosClientDebugTitle)"> - - + + + - - - - - @@ -74,34 +70,56 @@ - + + + + + + + + + + + + + + + + + + + + - + + + + - + @@ -114,7 +132,7 @@ - + @@ -134,85 +152,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -223,9 +164,12 @@ LEASHAUTOSTART = 1 - + + + + + + + + + @@ -249,7 +198,6 @@ - @@ -270,7 +218,9 @@ Level="30" Title="$(loc.KerberosDocTitle)"> - + + + diff --git a/src/windows/installer/wix/files.wxi b/src/windows/installer/wix/files.wxi index b1ff8f883..360033f06 100644 --- a/src/windows/installer/wix/files.wxi +++ b/src/windows/installer/wix/files.wxi @@ -27,7 +27,7 @@ - + @@ -43,11 +43,11 @@ - + - + @@ -58,286 +58,290 @@ + - + KRB4KRBREALMS - + KRB4KRBCONF - + KRB4CONFIGDIR - + KRB4TICKETFILE + - + KRB5CONFIG - + KRB5CCNAME - + KRB5PRESERVEIDENTITY - - + + - + - + - + - - + + - + + - - + + - + + - + - + - + - + - + - + - - + + - - + + - - + + + - - + + + - - + + - - + + + - + - + USELEASH - + LEASHAFSSTATUS - + LEASHCREATEMISSINGCONFIG - + LEASHAUTORENEWTICKETS - + LEASHLOCKFILELOCATIONS - + LEASHMSLSAIMPORT - - - - - USENETIDMGR - - - + USELEASH - + - + - - + + + + - + LEASHLIFETIME - + LEASHRENEWTILL - + LEASHRENEWABLE - + LEASHFORWARDABLE - + LEASHNOADDRESSES - + LEASHPROXIABLE - + LEASHPUBLICIP - + LEASHUSEKRB4 - + LEASHHIDEKINITOPTIONS - + LEASHLIFEMIN - + LEASHLIFEMAX - + LEASHRENEWMIN - + LEASHRENEWMAX - + LEASHUPPERCASEREALM - + LEASHTIMEHOST - + LEASHPRESERVEKINITOPTIONS - + - + - - + + - - + + - - + + VersionNT > 500 - - + + + VersionNT <= 500 - - + + + @@ -353,11 +357,12 @@ - - + + - - + + + @@ -368,10 +373,11 @@ - - + + - + + @@ -380,7 +386,8 @@ VersionNT > 500 - + + @@ -389,18 +396,52 @@ VersionNT <= 500 + + + + + USENETIDMGR + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - @@ -408,234 +449,222 @@ - - - - - - - - - - - - - - + - + - + - + - - - + + + - + - + - + - + - + - + - + - + - + - + - + - - + + + - + - + - + - + - + - + - + - + - + - + - + - - + - + - + - + - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + - - + + + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + @@ -647,16 +676,17 @@ + - + - + @@ -665,11 +695,11 @@ - + - + @@ -677,19 +707,19 @@ - + - + - + @@ -705,7 +735,7 @@ - + @@ -737,14 +767,14 @@ - + - + @@ -752,29 +782,48 @@ + - + - - + + - + + - - + + + + + + + + + + + + + + + + + + + - + @@ -788,7 +837,7 @@ - + @@ -798,14 +847,14 @@ - + - + @@ -820,7 +869,7 @@ - + @@ -829,25 +878,27 @@ - + + USELEASH - + + USENETIDMGR - + USENETIDMGR - + @@ -857,7 +908,7 @@ - + @@ -874,14 +925,14 @@ - + - + @@ -894,13 +945,13 @@ - + - + - + @@ -912,7 +963,7 @@ - + @@ -927,7 +978,7 @@ - + @@ -953,7 +1004,7 @@ - + @@ -979,7 +1030,7 @@ - + @@ -1005,5 +1056,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/windows/installer/wix/kfw.wxs b/src/windows/installer/wix/kfw.wxs index 6d0883c5f..02bfb6898 100644 --- a/src/windows/installer/wix/kfw.wxs +++ b/src/windows/installer/wix/kfw.wxs @@ -27,6 +27,7 @@ + diff --git a/src/windows/installer/wix/msi-deployment-guide.txt b/src/windows/installer/wix/msi-deployment-guide.txt index 3e0d7d26d..3a3c28ebc 100644 --- a/src/windows/installer/wix/msi-deployment-guide.txt +++ b/src/windows/installer/wix/msi-deployment-guide.txt @@ -898,11 +898,16 @@ Kerberos for Windows Versions of Kerberos that are upgraded by the MSI package are : - 1) "Kerberos for Windows" MSI package + 1) "Kerberos for Windows" 32-bit i386 MSI package Upgrade code {61211594-AAA1-4A98-A299-757326763CC7} Upto current release + 2) "Kerberos for Windows" 64-bit amd64 MSI package + + Upgrade code {6DA9CD86-6028-4852-8C94-452CAC229244} + Upto current release + 2) "MIT Project Pismere Kerberos for Windows" MSI package and "MIT SWRT Kerberos for Windows" MSI @@ -920,6 +925,11 @@ Kerberos for Windows means that group policy based deployments will fail on machines that have the "Kerberos for Windows" NSIS package installed. + Note that the NSIS package is only available for 32-bit i386. + You cannot install both the 32-bit NSIS and 64-bit amd64 MSI + packages on the same machine. To install both 32-bit and 64-bit + KFW, you must use the MSI packages of both. + If you have used a different MSI package to install Kerberos for Windows and wish to upgrade it you can author rows into the 'Upgrade' table to have the "Kerberos for Windows" MSI replace these diff --git a/src/windows/installer/wix/platform.wxi b/src/windows/installer/wix/platform.wxi new file mode 100644 index 000000000..3c7e7bacb --- /dev/null +++ b/src/windows/installer/wix/platform.wxi @@ -0,0 +1,191 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/windows/installer/wix/runtime.wxi b/src/windows/installer/wix/runtime.wxi new file mode 100644 index 000000000..13d491b85 --- /dev/null +++ b/src/windows/installer/wix/runtime.wxi @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/windows/installer/wix/runtime_debug.wxi b/src/windows/installer/wix/runtime_debug.wxi new file mode 100644 index 000000000..f30786bc3 --- /dev/null +++ b/src/windows/installer/wix/runtime_debug.wxi @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + -- 2.26.2