Noah
Posts: 4
Joined: Fri May 14, 2010 6:42 pm

Set Installer Properties from Custom Action

Hi,

I already found out how to run a custom action (e.g. an exe) and pass paramaters to it (e.g. the value of property associated with a edit control). However, i want it the other way round. I'd like to run a custom action (preferably a .NET assembly) that determines some properties of the system or reads necessary information from a file and passes them back to AI so these can be displayed to the user and later be used in the installation process.

best regards

Stefan Noack
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Set Installer Properties from Custom Action

Hello,

Installer properties can be set only from Win32 DLL or VBScript custom actions. Our user guide contains a sample C++ DLL custom action which may help you. Also please follow the MsiSetProperty Function description to better understand how it is used.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Noah
Posts: 4
Joined: Fri May 14, 2010 6:42 pm

Re: Set Installer Properties from Custom Action

Well.. I'd rather go with VBScript then. I'm sure i'll find something on that feature in the guide.

Return to “Common Problems”