davidjhomer
Posts: 56
Joined: Wed Jun 08, 2016 3:58 pm
Contact: Website Facebook Skype Twitter

ExitDlg Custom Actions Bug

Hello,

There seems to be a bug on running custom actions on ExitDlg

1. Create a new project
2. Create an open URL action to http://www.example.com
3. Add a push button to ExitDlg and a published event to execute the custom action
4. In builds set the output to a single .exe with the files inside it
5. In themes > settings set Use external exe UI to always
6. Run the setup and the button works on install and uninstall
7. In themes > settings set Use external exe UI to never (it looks horrible), tick MSI Embedded UI, tick WinUI rendering
8. Run the setup and the button does nothing when you click it


Dave
CENTREL Solutions Ltd
Server audit and documentation tools.
http://www.centrel-solutions.com
Liviu
Posts: 1115
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: ExitDlg Custom Actions Bug

Hello Dave,

I have tested this with a sample project and I can indeed confirm the behavior.

I have forwarded this to our development team and hopefully this will be fixed in a future version of Advanced Installer. As soon as the fix will be released we will notify you.

Thank you for bringing this to our attention!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Liviu
Posts: 1115
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: ExitDlg Custom Actions Bug

Hello Dave,

Unfortunately, this is a limitation of the MSI Embedded UI feature. You can find more details about it on the MSI Embedded User Interface article.

On ExitDialog custom actions triggered by Control Events can only use native Windows Installer C++ DLLs as source and cannot contain any MsiProcessMessage calls.

Regrettably, there is no workaround for this.

Thank you for your understanding.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”