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.
Ok, I think your going about this all wrong.
In Wise Package Studio (yuck!) you can import reg files, and it will work. Your making it harder for yourself by using VBS since there is functionality to do in the MSI/Windows Installer.
What I think is happning is your importing the registry keys into the HKCU, and you havent leveraged Windows Installer to populate this into the nessary User Profiles.
First thing we need to know are the registry keys, if you could update your question above that would be great, dont forget to change the IP addresses etc - security and all that. This is just to confrm that the keys are HKCU.
Edit: just saw it was HKCU, i wrote a whole section it didnt post! Grrrr ):
Anyway in summary...
- Import your registry key into a single component
- create a dummy registry key.
ie <name of component> with the value of KeyPath or something.
- Set that dummy reg key as the "Key Path"
- Change your shortcuts to advistised shortcuts