Importing .Reg Key into HKEY_CURRENT_USER with Wise Package Studio 8
I've been working on my software package for Avaya CMS Supervisor R17 and I've got everything working with the exeception of my registry key import. I've tried various ways to complete this task:
1) Tried copying the .reg file to the temp drive and the executing the file from that location. This work while running as a user, but not as an admin. This package will be pushed down by SCCM so it'll need to be imported as an admin
2) Tried using the built-in functionality of Wise studio to "Edit Registry" and that was a complete failure it didn't import the key at all
3) I created a VBS script to attempt to handle the entry as well, but only part of the key installed on Windows 7 and nothing imported on Windows XP. I've attached the script code to see if maybe I've mis-written something:
'Import Registry Settings
set oFile = CreateObject("scripting.FileSystemObject")
set oShell = CreateObject("wscript.shell")
sRegFile = "\\sccm-repo\packagecode\Avaya\CMS Supervisor R17\Avaya_R17_Server.reg"
if oFile.FileExists(sregfile) then
iReturn = oShell.Run("regedit.exe /s" & sRegFile)
if iReturn <> 0 then
wscript.echo "Import Reg Settings Failed! " & err.number & ":" & err.description
wscript.echo "Registry Import Failed."
set ofile = nothing
set oshell = nothing
If anyone has any suggestions I might try I could use some assistance. The whole purpose of the registry key is to completely automate the installer so the user doesn't have to add the avaya servers when they launch the first time. This will make it a complete hands off installer if I can get the key to import.