Custom Action Set Property - 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!

alexzizzi
Posts: 13
Joined: Wed Apr 30, 2008 10:44 pm

Custom Action Set Property

Hi,

I'm trying to set a property based on if the custom action was executed. I have a few execution conditions set based on OS and other properties on the custom action, but I would like to set another property whether they actually launched the custom action after passing the execution condition requirements.

Any help would be much appreciated. Thank you.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Custom Action Set Property

Hi,

Unfortunately Windows Installer does not support this. However, you can try setting the property from inside the custom action. In a C++ DLL this can be done with the MsiSetProperty function and in VBScript you can use Session.Property.

Another approach would be to use a "Property set with formatted" custom action right after your custom action. It should use the same conditions as the original custom action plus a condition which tells it that the original custom action ran successfully.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”