I have created a vb script package as a New Windows Script Host Package to change some registry variables for the webdrive software.
The task I created has the following properties: Delivery type: Push
Deliver method: Silent Install from source with reboot if needed
After starting the task, I get the status as successful [Done->No errors]. But I can not see any changes in the registry. I tried to run the vb script locally, that did not work either. Following is the script. Please let me know the reason.
' Begin code for regset1.vbs
'Change Cache folder to %userprofile%\Application Data\WebDrive\Cache
'Enable Logging; Set location to %userprofile%\Application Data\WebDrive\Logging
'Change Backup folder to %userprofile%\Application Data\WebDrive\Backup
'Certificate Management; Change location to %userprofile%\Application Data\WebDrive\CertStore
'Hostkey Management; Change location to %userprofile%\Application Data\WebDrive\HostKeys
Dim WSHShell, RegKey, RegValue, Result, UserProfile
Set WSHShell = CreateObject("WScript.Shell")
' get the current users profile
UserProfile = WSHShell.ExpandEnvironmentStrings("%UserProfile%")
regKey = "HKEY_CURRENT_USER\Software\South River Technologies\WebDrive\"
' set cache and logging for example, copy to set the rest
WSHShell.RegWrite regkey & "LogFolder", UserProfile & "\Application Data\WebDrive\Logging"
WSHShell.RegWrite regkey & "BackupFolder", UserProfile & "\Application Data\WebDrive\Backup"
WSHShell.RegWrite regkey & "SSLCertStoreFolder", UserProfile & "\Application Data\WebDrive\CertStore"
WSHShell.RegWrite regkey & "SSHHostKeyFolder", UserProfile & "\Application Data\WebDrive\HostKeys"
' End code
Thanks a lot