How to skip a dialog (auto-click next) by cmdline parameter? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

beonic_dev
Posts: 2
Joined: Thu Apr 29, 2010 6:52 am

How to skip a dialog (auto-click next) by cmdline parameter?

Hi,

I would like to be able to skip a few dialogs if I execute the installer with a command line:

Setup.exe SKIP=YES

Invoking the setup program in this way creates an installation property SKIP with a value of YES. So far so good.

What I could not figure out is how do I persuade AI to skip a few dialogs, i.e. to auto-click on "Next" for me when such a property exists.

For a variety of reasons I can use the reduced UI / Basic UI / etc (options /qn, /qr, or /qb).


Please help.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How to skip a dialog (auto-click next) by cmdline parameter?

Hello and welcome to Advanced Installer Forums,

You can check our guide on conditionally displaying an install dialog.
It should cover your requirements.

Please let me know if there is anything else I can assist you with.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
beonic_dev
Posts: 2
Joined: Thu Apr 29, 2010 6:52 am

Re: How to skip a dialog (auto-click next) by cmdline parameter?

Hi Gabriel,

Thanks for your quick response.

Unfortunately I don't think that guide will help a lot.

Issue 1: How do I conditionally display the first dialog of the installation?

Issue 2: Skipping a dialog that way will skip the actions associated with it - i.e. Out of disk space checking, run external programs, etc. I certainly do not want theat.

I really want to somehow auto-click on "Next" when that command line parameter is present.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How to skip a dialog (auto-click next) by cmdline parameter?

Hello,

I am afraid there is no other way. You will have to move the actions on another dialog to be executed and use NewDialog control event as described in the guide. The WelcomeDlg dialog can not be skipped this way.
The only other solution is to use a custom action under InstallUISequence. That custom action would have to 'click' the "Next" button. through the use of Windows API. With it you can also skip WelcomeDlg conditionally.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”