LrngToFly
Posts: 16
Joined: Fri Nov 03, 2017 6:28 pm

help with custom action based on prior custom action dialog

Hello! Thanks in advance for your help...!

I have two custom actions in my installer for uninstall. The first is a Display Message Box with a Yes/No question. I have the Output property set to "UNINSTALLDRV". If the user selected the Yes button, in the 2nd custom action I want to run a script. For Condition on the 2nd custom action, I've tried:

REMOVE="ALL" AND UNINSTALLDRV=ButtonText_Yes

REMOVE="ALL" AND UNINSTALLDRV=&Yes

but it isn't working. I'm not sure I'm using the property correctly and perhaps I need quotes around the ButtonText_Yes or &Yes?

Please advise. Thanks, Andy
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: help with custom action based on prior custom action dialog

Hi Andy,

In order to set a condition based on the output of the "Display message box" custom action you can use the values mentioned in this article.

You can also take a look on the "Custom Launch Condition Help" tread for more details.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
LrngToFly
Posts: 16
Joined: Fri Nov 03, 2017 6:28 pm

Re: help with custom action based on prior custom action dialog

So to be concise, this should work, correct?

REMOVE="ALL" AND UNINSTALLDRV="IDYES"

I have the quotes correct?
LrngToFly
Posts: 16
Joined: Fri Nov 03, 2017 6:28 pm

Re: help with custom action based on prior custom action dialog

Yes, this works. Thanks for your help!
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: help with custom action based on prior custom action dialog

You're welcome. I'm glad you got this working.

Just let me know if you have other questions.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”