Setting Windows Installer Property in VBS - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Laurin
Posts: 58
Joined: Thu Jun 12, 2008 4:27 pm

Setting Windows Installer Property in VBS

Hi guys,

I have a vbs script which should set a installer property. Unfortunately i always get an ' MSI API error'.
The Property is declared under 'Install Parameters'.
The line of code looks like this:

Session.Property("LICENCEFILENAME") = licenceFileName

The custom action is executed under Install with Deferred with no impersonation.
I read that scripts don't have any access to properties under deferred so i changed the exection option to commit with no impersonation -> the error still pops up while installing.... :-)

can you help me?
thank you

EDIT ADDITION:
I NOW GOT IT TO WORK. (set it to immediate execution in the install sequence) But there is one problem!
The vbs script sets a public property which is used in an xml file in the Files and Folders tab in AI. That means the content of the installer variable is set in a specific xml file. But my script seems to be executed after the xml file is written by AI. Which custom action sequence should i choose so the script will be executed in advance?
Laurin
Posts: 58
Joined: Thu Jun 12, 2008 4:27 pm

Re: Setting Windows Installer Property in VBS

sorry... got it: I took the CreateFolder sequence :-)

Return to “Common Problems”