kylec
Posts: 22
Joined: Thu Jan 29, 2015 9:59 pm

Exit installation gracefully

Hello,

I've setup a search for a registry key, and ultimately if the key is present I want the user to be able to exit the installation gracefully.

I've been able to create a new dialog after the welcome dialog, and set it to show only if my registry search is found. This works. My issue from here is creating a push button on this dialog so that the installation exits. However, in all attempts the UserExit dialog is always being seen.

Another user was attempting the same, but I was not able to replicate the results he claimed worked. http://www.advancedinstaller.com/forums ... =2&t=10238

A second possibility if there is absolutely no way to avoid the UserExit dialog is by the means of a Custom Launch Condition. The problem with this is that while I do get custom launch condition dialog box to show. It's also still showing the Preparing Dialog, and I do not want that dialog to show. Only the custom launch condition message informing the user.
Daniel
Posts: 8279
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Exit installation gracefully

Hello,

I'm afraid you cannot prevent the display of "UserExit" dialog. But you can hide the appearance of "PrepareDlg" dialog when using a custom launch condition.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kylec
Posts: 22
Joined: Thu Jan 29, 2015 9:59 pm

Re: Exit installation gracefully

Thank you Daniel for confirming the "UserExit" dialog behavior.

I've set a search criteria, registry key does not exist. This search result is being used for my custom launch condition. If the key is found in the registry the user is prompted to uninstall another version of the software first. Following your link I've conditioned the "PrepareDlg" to 0. This does prevent the dialog from being seen, however it now leaves the installer process running in the background after closing my launch condition dialog. If I try to run the installation again I'm warned that another instance is currently running, and I have to kill the process in the task manager.

Also, is it possible to have my custom launch condition shown to the user even before the pre-requisite wizard?
Daniel
Posts: 8279
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Exit installation gracefully

Hello,

In order to have a better view of your scenario, can you please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate its settings?

If you cannot share with us your project file, then you can try to isolate the behavior in a buildable sample (.aip + its referenced files) which we can build and test on our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kylec
Posts: 22
Joined: Thu Jan 29, 2015 9:59 pm

Re: Exit installation gracefully

Daniel,

I've submitted my AIP to support.


Thank you.

Return to “Building Installers”