At this time I'm using 3 wizard pages (Preparing to Install, Installing and Finished page) in my installer.
I want to keep the process as simple as possible, so I would like to reduce this to just 2 pages (Installing and Finished page).
Is there a way to skip all the wizard pages and go directly to the installation process when the installer starts ?
You cannot jump straight to Installing in an interactive (user directly ran the installer) context. Inno requires that at least one page be shown beforehand to allow the user to cancel the installation. It's up to you which page it shows, but there must be at least one.
(If it weren't for this, there'd be many annoyed users who ran the installer accidentally and many more hit by drive-by malware installs.)
If you are installing from an automated context (eg. your app has just downloaded an update) then you can skip straight to the installation by using the
/SILENT
command line parameter when running the installer.Proper way is to disable all the pages by the following directives:
But, even if you do so, the ready page will still show. I've tried to find a way how to properly skip this page and go directly to the installation step with no success. I haven't checked what's happening inside, but so far I found a workaround in posting a click notification message to the next button which triggers the click event and moves to the installation process:
That will work, but I still hope there's a cleaner way to skip all the pages and go directly to the installation process.