Fix backslashes in SHIBSP_PREFIX variable by manually creating it during the script... master trunk
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 27 Mar 2008 16:48:15 +0000 (16:48 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 27 Mar 2008 16:48:15 +0000 (16:48 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2792 cb58f699-b61c-0410-a6fe-9272a202ed29

msi/scripts/shib_edit_config_files.vbs

index 1dbcd18..3ce7ad1 100644 (file)
@@ -35,7 +35,7 @@ Sub ReplaceInFile( filePath, lookForStr, replaceWithStr )
 End Sub
 
 
-Dim FileSystemObj, ConvertedDir, ConfigFile, XMLDir
+Dim FileSystemObj, ConvertedDir, ConfigFile, XMLDir, WshShell
 Dim customData, msiProperties, InstallDir, ShibdPort
 
 on error resume next
@@ -56,6 +56,10 @@ if (Err = 0) then
   ConfigDir = InstallDir & "\etc\shibboleth\"
   DistDir = ConfigDir & "dist\"
 
+  'Set ConvertedDir as the SHIBSP_PREFIX system variable.
+  Set WshShell = CreateObject("WScript.Shell")
+  WshShell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\SHIBSP_PREFIX", ConvertedDir, "REG_SZ"
+
   'Perform actual Substitutions
   'Afterwards, if the config file doesn't already exist, copy up to etc/shibboleth
   'Also strip *.in for files in dist