From: Rod Widdowson Date: Thu, 31 May 2012 12:23:02 +0000 (+0000) Subject: Handle Updates a bit better X-Git-Tag: 2.5.0~72 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-sp.git;a=commitdiff_plain;h=de97bb285010eaf5daf776c1deb92ebd67d62926 Handle Updates a bit better - Have a separate dialog for updates (allowing us to refactor the current dialog into a separate file) - Save all user supplied parameters (in case we need them later) - Set up parameters from these as appropriate for the update case. - Remove some old cruft from no-longer needed Dialogs We still have some work to do because an update will sense shibd running and we are about to stop it. --- diff --git a/msi/WiX/Compile.bat b/msi/WiX/Compile.bat index da6fd95..f02a0f2 100644 --- a/msi/WiX/Compile.bat +++ b/msi/WiX/Compile.bat @@ -16,12 +16,18 @@ candle ShibbolethSP-registry-x86.wxs wixcop -indent:2 ShibbolethSP-gui.wxs candle ShibbolethSP-gui.wxs +wixcop -indent:2 ShibbolethSP-update-dlg.wxs +candle ShibbolethSP-update-dlg.wxs + +wixcop -indent:2 ShibbolethSP-install-dlg.wxs +candle ShibbolethSP-install-dlg.wxs + wixcop -indent:2 ShibbolethSP-main-x64.wxs candle ShibbolethSP-main-x64.wxs -light -sw1055 -sice:ICE82 -o ShibbolethSP-main-x64.msi ShibbolethSP-main-x64.wixobj ShibbolethSP-exe-x64.wixobj ShibbolethSP-registry-x64.wixobj ShibbolethSP-noarch.wixobj ShibbolethSP-exe-x86.wixobj ShibbolethSP-registry-x86.wixobj ShibbolethSP-gui.wixobj -ext WixUtilExtension.dll -ext WixUIExtension -ext WixIISExtension +light -sw1055 -sice:ICE82 -o ShibbolethSP-main-x64.msi ShibbolethSP-main-x64.wixobj ShibbolethSP-exe-x64.wixobj ShibbolethSP-registry-x64.wixobj ShibbolethSP-noarch.wixobj ShibbolethSP-exe-x86.wixobj ShibbolethSP-registry-x86.wixobj ShibbolethSP-gui.wixobj ShibbolethSP-update-dlg.wixobj ShibbolethSP-install-dlg.wixobj -ext WixUtilExtension.dll -ext WixUIExtension -ext WixIISExtension wixcop -indent:2 ShibbolethSP-main-x86.wxs candle ShibbolethSP-main-x86.wxs -light -sw1055 -sice:ICE82 -o ShibbolethSP-main-x86.msi ShibbolethSP-main-x86.wixobj ShibbolethSP-noarch.wixobj ShibbolethSP-exe-x86.wixobj ShibbolethSP-registry-x86.wixobj ShibbolethSP-gui.wixobj -ext WixUtilExtension.dll -ext WixUIExtension -ext WixIISExtension +light -sw1055 -sice:ICE82 -o ShibbolethSP-main-x86.msi ShibbolethSP-main-x86.wixobj ShibbolethSP-noarch.wixobj ShibbolethSP-exe-x86.wixobj ShibbolethSP-registry-x86.wixobj ShibbolethSP-gui.wixobj ShibbolethSP-update-dlg.wixobj ShibbolethSP-install-dlg.wixobj -ext WixUtilExtension.dll -ext WixUIExtension -ext WixIISExtension diff --git a/msi/WiX/Info.bmp b/msi/WiX/Info.bmp deleted file mode 100644 index 7e0ff7f..0000000 Binary files a/msi/WiX/Info.bmp and /dev/null differ diff --git a/msi/WiX/ShibbolethSP-defs-x86.wxi b/msi/WiX/ShibbolethSP-defs-x86.wxi index 58fbedb..94bc4fa 100644 --- a/msi/WiX/ShibbolethSP-defs-x86.wxi +++ b/msi/WiX/ShibbolethSP-defs-x86.wxi @@ -81,6 +81,9 @@ + + + diff --git a/msi/WiX/ShibbolethSP-exe-x86.wxs b/msi/WiX/ShibbolethSP-exe-x86.wxs index 3f65cc3..6216a82 100644 --- a/msi/WiX/ShibbolethSP-exe-x86.wxs +++ b/msi/WiX/ShibbolethSP-exe-x86.wxs @@ -131,7 +131,7 @@ - diff --git a/msi/WiX/ShibbolethSP-gui.wxs b/msi/WiX/ShibbolethSP-gui.wxs index 2aaf3cc..fde8f37 100644 --- a/msi/WiX/ShibbolethSP-gui.wxs +++ b/msi/WiX/ShibbolethSP-gui.wxs @@ -17,7 +17,7 @@ permissions and limitations under the License. --> - + @@ -43,7 +43,6 @@ - @@ -67,6 +66,10 @@ + + + + @@ -89,7 +92,10 @@ 1 - NOT Installed + (NOT Installed) AND (NOT ALREADYINSTALLED) + + + (NOT Installed) AND ALREADYINSTALLED Installed AND PATCH @@ -102,121 +108,15 @@ Installed AND PATCH - NOT Installed + (NOT Installed) AND (NOT ALREADYINSTALLED) + + + (NOT Installed) AND ALREADYINSTALLED Installed AND NOT PATCH - - - - - - - - - - - - - - - - - - - - 1 - 1 - - - - - - - - IS64BITINSTALL = "TRUE" - IS64BITINSTALL <> "TRUE" - - - - - IISMAJORVERSION - NOT IISMAJORVERSION - - - IISMAJORVERSION - NOT IISMAJORVERSION - - - IISMAJORVERSION - NOT IISMAJORVERSION - INSTALL_ISAPI_FILTER = "TRUE" - INSTALL_ISAPI_FILTER <> "TRUE" - - - - - - 1 - - - - 1 - - NOT WIXUI_DONTVALIDATEPATH - - - NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1" - - - WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1" - - - - - 1 - - - - 1 - - - WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1" - - - - NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1" - - - - NOT WIXUI_DONTVALIDATEPATH - - 1 - 1 - 1 - - diff --git a/msi/WiX/ShibbolethSP-install-dlg.wxs b/msi/WiX/ShibbolethSP-install-dlg.wxs new file mode 100644 index 0000000..f83a4c0 --- /dev/null +++ b/msi/WiX/ShibbolethSP-install-dlg.wxs @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + 1 + + + + + + + + IS64BITINSTALL = "TRUE" + IS64BITINSTALL <> "TRUE" + + + + + IISMAJORVERSION + NOT IISMAJORVERSION + + + IISMAJORVERSION + NOT IISMAJORVERSION + + + IISMAJORVERSION + NOT IISMAJORVERSION + INSTALL_ISAPI_FILTER = "TRUE" + INSTALL_ISAPI_FILTER <> "TRUE" + + + + + + 1 + + + + 1 + + NOT WIXUI_DONTVALIDATEPATH + + + NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1" + + + WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1" + + + + + 1 + + + + + + diff --git a/msi/WiX/ShibbolethSP-main-x64.wxs b/msi/WiX/ShibbolethSP-main-x64.wxs index ab20e80..08b3f58 100644 --- a/msi/WiX/ShibbolethSP-main-x64.wxs +++ b/msi/WiX/ShibbolethSP-main-x64.wxs @@ -171,7 +171,10 @@ - + + + + diff --git a/msi/WiX/ShibbolethSP-noarch.wxs b/msi/WiX/ShibbolethSP-noarch.wxs index f09ff55..d3877c4 100644 --- a/msi/WiX/ShibbolethSP-noarch.wxs +++ b/msi/WiX/ShibbolethSP-noarch.wxs @@ -168,6 +168,8 @@ + + + + + + + + + + + + + + + + + OLD_INSTALLDIR + + + (NOT OLD_INSTALLDIR) AND OLD_INSTALLDIR64 + + NOT Installed @@ -217,7 +239,7 @@ (NOT Installed) AND (INSTALL_ISAPI_FILTER = "TRUE") AND (NOT ALREADYINSTALLED) AND (NOT INSTALL_32BIT) AND IISMAJORVERSION - (NOT Installed) AND (INSTALL_ISAPI_FILTER = "TRUE") AND (NOT ALREADYINSTALLED) AND IISMAJORVERSION + (NOT Installed) AND (INSTALL_ISAPI_FILTER = "TRUE") AND (NOT ALREADYINSTALLED) AND IISMAJORVERSION + + (NOT Installed) AND (INSTALL_SHIBD_SERVICE = "TRUE") AND (NOT ALREADYINSTALLED) AND (NOT INSTALL_32BIT) AND (IS64BITINSTALL = "TRUE") @@ -237,6 +260,23 @@ (NOT Installed) AND (INSTALL_SHIBD_SERVICE = "TRUE") AND (NOT ALREADYINSTALLED) AND (NOT INSTALL_32BIT) AND (IS64BITINSTALL = "TRUE") + + + OLD_INSTALLDIR + + + (NOT OLD_INSTALLDIR) AND OLD_INSTALLDIR64 + + + + + ALREADYINSTALLED AND (NOT OLD_SERVICEINSTALLED) + + (NOT Installed) AND (NOT ALREADYINSTALLED) AND (INSTALL_SHIBD_SERVICE = "TRUE") diff --git a/msi/WiX/ShibbolethSP-registry-x64.wxs b/msi/WiX/ShibbolethSP-registry-x64.wxs index fa91cdc..a77d341 100644 --- a/msi/WiX/ShibbolethSP-registry-x64.wxs +++ b/msi/WiX/ShibbolethSP-registry-x64.wxs @@ -57,7 +57,50 @@ Name='DisplayVersion' Type='raw' Win64='yes' /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IISMAJORVERSION + + + INSTALL_ISAPI_FILTER = "TRUE" + + + + + + + + + + + + + + + + + + + + + + + + + + + + IISMAJORVERSION + + + INSTALL_ISAPI_FILTER = "TRUE" + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + 1 + + + + + diff --git a/msi/WiX/new.bmp b/msi/WiX/new.bmp deleted file mode 100644 index 27881df..0000000 Binary files a/msi/WiX/new.bmp and /dev/null differ diff --git a/msi/WiX/up.bmp b/msi/WiX/up.bmp deleted file mode 100644 index 86f6b5a..0000000 Binary files a/msi/WiX/up.bmp and /dev/null differ