Go to exit dialog without installing any features. - Advanced Installer Community
devAdvanced
Posts: 2
Joined: Thu Dec 22, 2016 8:46 am

Go to exit dialog without installing any features.

My AIP project checks if a couple of windows services exists in the machine, if they exist it will proceed to replace some files. But if the services doesn't exist, it has go to the finish screen and the user should be able to click the "Finish" button and exit the installer.

I've used a VBscript which will verify the existence of windows services and will update a property. Based on this property I'm setting the Next dialog option to the ExitDialog.

So far so good, all the features/components is set to INstallStateAbsent. BUt when I click the "Finish" button, it's launching the "Progress" dialog. It's just stuck there.

What is the mistake that I'm making here?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Go to exit dialog without installing any features.

Hello,

Please note that this happens due to the Windows Installer design. When the dialogs chain of each dialog in sequence is finished, the installation continues with the next action or dialog in sequence.

What happens into your case is that after the "WelcomeDlg" dialog in sequence finishes is dialogs chain, the installation process moves forward with the next dialog in sequence which is "ProgressDlg". This is the Windows Installer design.

To avoid this behavior you should condition the action of the "ProgressDlg" dialog to be executed only when your services condition is true. Here are the steps to proceed with:

1. go to "Table Editor" page and select the "InstallUISequence" table
2. locate the "ProgressDlg" action row and edit its "Condition" field like this:

Code: Select all

FOUND_SERVICES_PROPERTY
3. rebuild and test the project

Please note that the above solution could be implemented only by using an "Enterprise" or higher project type.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”