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

help with custom action based on prior custom action dialog

Thu Mar 29, 2018 3:39 pm

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

Mon Apr 02, 2018 1:24 pm

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

Mon Apr 02, 2018 2:59 pm

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

Mon Apr 02, 2018 8:54 pm

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

Tue Apr 03, 2018 7:21 am

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”