werelord
Posts: 16
Joined: Thu Nov 05, 2009 3:47 pm

run custom action on cancel installation

We need to run a custom action when the user cancels the installation; is there a property that we can check that would specify whether the installation has been canceled??

Rollback is not possible, because we may be in the UI sequence, and nothing has actually installed..

Under what UI or Install sequence action should we put this under?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: run custom action on cancel installation

Hello,

To cancel the installation, a user will have to click "Cancel" then "Yes" to confirm in the CancelDlg. After these operations, to conclude the installation the user will have to click "Finish" in the UserExit dialog.

If you need to schedule a custom action to execute after any of the above buttons are clicked you can follow this article:
http://www.advancedinstaller.com/user-g ... te-ca.html

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
werelord
Posts: 16
Joined: Thu Nov 05, 2009 3:47 pm

Re: run custom action on cancel installation

Unfortunately we only have a Professional license of Advanced installer, so we don't have the ability to do what is described in that article (no Dialog Editor options)..

Is there any property that may be set on a cancel that we can check whether a cancel has occurred?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: run custom action on cancel installation

Hello,

Unfortunately there is no predefined functionality to achieve this in the Professional edition, because you need the Dialogs Editor feature from Enterprise edition.

With the Professional edition you can however create rollback custom actions, on execute sequence.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”