From 7be4ec084bde83e9fee94d5cdc26a386aca19e02 Mon Sep 17 00:00:00 2001 From: Rod Widdowson Date: Wed, 9 May 2012 16:51:05 +0000 Subject: [PATCH] SSPCPP-452 (add scripts to swap architecture of shibd). Also fix bug whereby we had accidently removed 64 bit OpenSSL, and make 'etc' files permanent and 'etc\dist' files non permanent --- configs/SetService32.bat | 5 +++++ configs/SetService64.bat | 5 +++++ msi/WiX/ShibbolethSP-defs-x86.wxi | 5 ++--- msi/WiX/ShibbolethSP-main-x64.wxs | 14 ++++++++++++++ msi/WiX/ShibbolethSP-noarch.wxs | 24 +++++++++++------------- msi/WiX/ShibbolethSP-properties.wxi | 2 +- msi/scripts/shib_edit_config_files.vbs-wix | 7 +++++++ 7 files changed, 45 insertions(+), 17 deletions(-) create mode 100644 configs/SetService32.bat create mode 100644 configs/SetService64.bat diff --git a/configs/SetService32.bat b/configs/SetService32.bat new file mode 100644 index 0000000..1aa7f70 --- /dev/null +++ b/configs/SetService32.bat @@ -0,0 +1,5 @@ +@echo off +setlocal +sc stop shibd_default +sc config shibd_default binPath= "@-INSTALLDIR-@\sbin\shibd.exe" +sc start shibd_default diff --git a/configs/SetService64.bat b/configs/SetService64.bat new file mode 100644 index 0000000..bf67d28 --- /dev/null +++ b/configs/SetService64.bat @@ -0,0 +1,5 @@ +@echo off +setlocal +sc stop shibd_default +sc config shibd_default binPath= "@-INSTALLDIR-@\sbin64\shibd.exe" +sc start shibd_default diff --git a/msi/WiX/ShibbolethSP-defs-x86.wxi b/msi/WiX/ShibbolethSP-defs-x86.wxi index 2c5c47a..c8cb2ed 100644 --- a/msi/WiX/ShibbolethSP-defs-x86.wxi +++ b/msi/WiX/ShibbolethSP-defs-x86.wxi @@ -14,12 +14,11 @@ - - + + - diff --git a/msi/WiX/ShibbolethSP-main-x64.wxs b/msi/WiX/ShibbolethSP-main-x64.wxs index 517618a..20976b8 100644 --- a/msi/WiX/ShibbolethSP-main-x64.wxs +++ b/msi/WiX/ShibbolethSP-main-x64.wxs @@ -66,6 +66,7 @@ + @@ -89,6 +90,15 @@ + + + + + + + + + + @@ -152,6 +163,9 @@ + + + diff --git a/msi/WiX/ShibbolethSP-noarch.wxs b/msi/WiX/ShibbolethSP-noarch.wxs index 2a8acd4..6e4d0f9 100644 --- a/msi/WiX/ShibbolethSP-noarch.wxs +++ b/msi/WiX/ShibbolethSP-noarch.wxs @@ -72,10 +72,10 @@ Permanent='yes'> - + - + - + - + - + - + - + - + - + @@ -197,13 +197,11 @@ + + - - diff --git a/msi/WiX/ShibbolethSP-properties.wxi b/msi/WiX/ShibbolethSP-properties.wxi index 0e210f5..ccb2a50 100644 --- a/msi/WiX/ShibbolethSP-properties.wxi +++ b/msi/WiX/ShibbolethSP-properties.wxi @@ -32,7 +32,7 @@ - + diff --git a/msi/scripts/shib_edit_config_files.vbs-wix b/msi/scripts/shib_edit_config_files.vbs-wix index a9ecb9b..86f7dc8 100644 --- a/msi/scripts/shib_edit_config_files.vbs-wix +++ b/msi/scripts/shib_edit_config_files.vbs-wix @@ -187,6 +187,13 @@ if (Err = 0) then If (NOT FileSystemObj.FileExists(ConfigDir & "protocols.xml")) then FileSystemObj.CopyFile DistDir & "protocols.xml", ConfigDir, false End If + + ConfigFile = ConfigDir & "SetService64.bat" + ReplaceInFile ConfigFile, "@-INSTALLDIR-@", InstallDir + + ConfigFile = ConfigDir & "SetService32.bat" + ReplaceInFile ConfigFile, "@-INSTALLDIR-@", InstallDir + 'Last End If End If \ No newline at end of file -- 2.1.4