X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=blobdiff_plain;f=msi%2Fscripts%2Fshib_edit_config_files.vbs;h=3ce7ad11bb18f538223cd3372625c098c077bfdc;hp=1dbcd18b94bc8201914e6c16d56fbf80c330e333;hb=HEAD;hpb=c9c1b385ed3e2926097cb06f75b971e659cd2e4d diff --git a/msi/scripts/shib_edit_config_files.vbs b/msi/scripts/shib_edit_config_files.vbs index 1dbcd18..3ce7ad1 100644 --- a/msi/scripts/shib_edit_config_files.vbs +++ b/msi/scripts/shib_edit_config_files.vbs @@ -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