PDA

View Full Version : Regread question!



DBCUSER
09-19-2005, 10:35 AM
Hi All,

I have following vbscript

ISX always fails, right at CreateObject. Do you know why? I get the first message but not the "Test" message.

' Get the value of INSTALLDIR
Dim sInstalldir
Dim tInstalldir
Dim WshShell
sInstalldir = Session.Property("INSTALLDIR")
' Show it.
MsgBox sInstalldir

' Check to see if a file exists
set WshShell = WScript.CreateObject("WScript.Shell")
MsgBox "Test"
tInstalldir = WshShell.RegRead("HKLM\Software\TEST\TEST\DRIVE")
MsgBox tInstalldir

Session.Property("INSTALLDIR") = tInstallDir & "New"

Thanks.

TsungH
09-19-2005, 02:43 PM
Please follow up here (http://community.installshield.com/showthread.php?t=152114).

DBCUSER
09-20-2005, 04:26 PM
Followed the link and found the solution.