Prasad
Posts: 25
Joined: Fri May 25, 2012 12:55 pm

Finishing the setup if specific OS version not found

Hi,

I am creating installer which should only run on Windows XP, Windows 7 (32 bit and 64 bit)

But My requirement is that when I I try to run the setup, only single dialog with 'Finish button' and message "only XP, Windows 7 (32 bit and 64 bit)is supported" should be displayed.
(I can't use 'Launch Conditions' here because in that case a Prepare dialog appears with child message box and then after ackowleding it, FatalErro dialog gets displayed (i.e. total 3 dialogs))

How can I achieve this ?

I have tried something as follows which doesn't work as expected.
I modified Welcome dialog with Finish button on it along with above mentioned message.
I show/hide this message and button depending upon OS vesrion installed (i.e. Values of Operating System Property 'VersionNT').

In Published events of Finish button I have added control event as following
Name : End Dialog
Argument : Exit
Condition : 1

When I click on Finish button on first dialog, I want to exit completely from setup and there should not be any more dialog appearing further. But when I click on Finish button another dialog (UserExit) appears which says 'Setup Wizard was cancelled'.

How can I avoid appearing UserExit dialog

Note : I am using AdvancedInstaller version 9.1 with Enhanced User Insterface
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Finishing the setup if specific OS version not found

Hello,

I'm afraid you cannot achieve your scenario. In order to obtain what you want you should use the "Launch Conditions" support. Also, in order to obtain the scenario you can perform like this:
- From "Launch Conditions" page set the desired launch conditions.
- Go to "Custom Actions" page and in the "Wizard Dialogs Stage" from the context menu choose "Show Standard Action -> Searches -> PrepareDlg".
- Move "PrepareDlg" standard action after "Wizard Dialogs Stage -> Searches -> LaunchConditions".
- Go to "Table Editor" page and from "InstallUISequence" table delete the corresponding "FatalError" row using [Delete] button.
-Build and run your project.

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

Return to “Common Problems”