Basically I need to pass it the required details to connect to the database, which I can do no problem if I set it up under InstallExecuteSequence -> Install. However if I set it up there trying to update a property in Advanced Installer with Session.Property("SOME_PROP"] = "Whatever" won't work, I'm assuming this is because it's too late in the sequence to update properties.
The next thing I tried was to set it up under UI Custom Actions and add it as a DoAction for one of my dialogs. The way I have done this is to setup the code of the VBScript as a function and then on the Custom Action Properties window added the function name with properties as arguments e.g. SomeFunction([SOME_PROP_1], [SOME_PROP_2]). However when I run the installer it fails at the DoAction. With the following in the log:
Code: Select all
MSI (c) (EC:C8) [11:54:24:687]: Doing action: adminId.vbs
Action 11:54:24: adminId.vbs.
Action start 11:54:24: adminId.vbs.
Action ended 11:54:24: adminId.vbs. Return value 3.
DEBUG: Error 2896: Executing action adminId.vbs failed.
FOLLOW US
Get the latest news in Application Packaging