I've been attempting to use custom actions to accomplish this by attaching a .VBS script that modifies the registry key. However every time I run the installer I get the following error:
---------------------
There is a problem with this Windows Installer package.
A script required for this install to complete could not be
run. Contact your support personnel or package vendor.
---------------------
Currently the script is as follows:
Code: Select all
Function DeltaReg(delta)
Dim pathToKey, UseCount
pathToKey = "HKLM\Software\" + Session.Property("Manufacturer") + "/" + Session.Property("ProductName") + "Settings\UseCount"
MsgBox pathToKey
DeltaReg = 1
Exit Function
End Function
I do not get a MsgBox. It in fact acts as if the script isn't available. I've even included the script as one of the files to be included in the distribution.
I'd appreciate a pointer to what I'm doing wrong.
Thanks