Set AI property from custom code - 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!

gjandris
Posts: 15
Joined: Tue Jan 12, 2010 8:51 pm

Set AI property from custom code

Is it possible to set an AI property from within a piece of custom code?
If I were to write a piece of java code to do something, how would I set the
results to a variable AI could see?

What I am trying to do is get a list of files ending in .jar to add to a classpath.

Is there a way to make a multi file select browse file dialog?

Any help/hints would be appreciated.

Thank you.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Set AI property from custom code

Hello,

You can only set properties from an unmanaged DLL custom action or a VBScript.
From an unmanaged DLL CA, you can use MsiSetProperty API documented in MSDN.
From inside a VBScript, you can use Session.Property("PROPERTY_NAME") = <value>

You can check our browse for file tutorial for selecting files, however multiple selection is not supported.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”