From bb90d3647364e486b1579d177ba8d3ca08957bf5 Mon Sep 17 00:00:00 2001 From: rdw Date: Thu, 31 May 2012 12:23:02 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3685 cb58f699-b61c-0410-a6fe-9272a202ed29 --- msi/WiX/Compile.bat | 10 ++- msi/WiX/Info.bmp | Bin 1078 -> 0 bytes msi/WiX/ShibbolethSP-defs-x86.wxi | 3 + msi/WiX/ShibbolethSP-exe-x86.wxs | 2 +- msi/WiX/ShibbolethSP-gui.wxs | 126 ++++------------------------------ msi/WiX/ShibbolethSP-install-dlg.wxs | 119 ++++++++++++++++++++++++++++++++ msi/WiX/ShibbolethSP-main-x64.wxs | 5 +- msi/WiX/ShibbolethSP-noarch.wxs | 44 +++++++++++- msi/WiX/ShibbolethSP-registry-x64.wxs | 43 ++++++++++++ msi/WiX/ShibbolethSP-registry-x86.wxs | 39 +++++++++++ msi/WiX/ShibbolethSP-update-dlg.wxs | 53 ++++++++++++++ msi/WiX/new.bmp | Bin 318 -> 0 bytes msi/WiX/up.bmp | Bin 318 -> 0 bytes 13 files changed, 325 insertions(+), 119 deletions(-) delete mode 100644 msi/WiX/Info.bmp create mode 100644 msi/WiX/ShibbolethSP-install-dlg.wxs create mode 100644 msi/WiX/ShibbolethSP-update-dlg.wxs delete mode 100644 msi/WiX/new.bmp delete mode 100644 msi/WiX/up.bmp 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 7e0ff7f14c24ace2d59e24260b666ca60ef57482..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1078 zcmbW0y-ve06opR-l9@=}pq)_PqC8SIv&9<=QeMd$43&6=ZZKveLsj!#J1I(4B!t`J z>vMnI>sx818*Mg?Y<=EH56Gq|e7lnFD`|^v10KOjx9n2D_xcJLv4l_rJ4X-{W5kg1 zS1H*E@G+Hb^K$KcD$-x@3wwRR(}KHt!M%rjKNlc%Z+ucX-Eos3KbP#GDUB#{M4>2L zcBr$}wjn#5X(DH<4u0ITvP0`~GzxPggEMIkSvvo;;K6qbKKzec{hViLOa4sQLR;$3 z+^O8}W&dWXk>A_dVTvE%Ibhq4i;& + + + 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 27881dfe972209bb5825c15cb7bc00bbde46c7c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 318 zcmZQzU<5(|0RaXO&|qX>5ChRb3=&ZQVnzlQAj!bc04A{!KpBu^Lj!~Yl0YWIfddDC zG)Uq<7%}|+4`Kl^5Q2n21UlFa1RH>Y#L_VR++bZW9?>+&2@U*cm>0w0`Ys0yAd=1E8#zj diff --git a/msi/WiX/up.bmp b/msi/WiX/up.bmp deleted file mode 100644 index 86f6b5a84755483dee8175ebc821d3af0ce866b8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 318 zcma)&F%Ez*3jinPaBfq3iVrS`7_(?ej5C}1lGoRa7bAIcM3XBn@W5%19)2 zpi~0CfR3A`90Zc8)(X4P;;1!e1a8Ujwl!?g%}lJWd!z?T2-Gq9(9iqVy9{0F7kh<5 P<5%!Eb(Xf+-TO;BySGdd -- 2.1.4