3

When I run my Inno Setup script, I get the prompt "This will install .... Do you wish to continue?"*.

How could it be done so that the installation starts without this prompt.

The user already double clicked the setup to install it, then an UAC event occurs, and then Inno Setup asks the user if he really wants to install the application.

This makes the user look really dumb, he has to "confirm" three times.

Is there a way to skip the last prompt?

This is my script:

[Setup]
VersionInfoVersion=
AppName=MyApp
AppVerName=MyApp 
AppPublisher=MyCompanyName
AppPublisherURL=www.mywebsite.com
AppSupportURL=www.mywebsite.com
AppUpdatesURL=www.mywebsite.com
AppID=A1T2B24E-304A-2274-5A2A-550GF09E4712
DefaultDirName={pf}\MyApp
DefaultGroupName=MyApp
DisableProgramGroupPage=yes
DisableDirPage=yes
DisableReadyMemo=yes
DisableReadyPage=yes
DisableFinishedPage=yes
DisableStartupPrompt=yes
LicenseFile=
SetupIconFile=d:\dev\projects\distribute\box_software.ico
Compression=lzma2/ultra64
SolidCompression=yes
PrivilegesRequired=admin
WizardImageFile=d:\dev\projects\innosetup\large.bmp
WizardSmallImageFile=d:\dev\projects\innosetup\small.bmp
DirExistsWarning=no
UsePreviousAppDir=yes
ShowLanguageDialog=auto
SignedUninstaller=yes
SignedUninstallerDir=d:\dev\projects\innosetup\signeduninstaller
OutputBaseFilename=osb_setup_update
OutputDir=d:\dev\projects\MyApp\compiled\upload

Edit: Dispite having defined "DisableReadyPage", I still get this certain page.

This is a screenshot:

enter image description here

The translation to English would be "Ready for installation. Setup is now ready to install the app to the computer. Click Install to start the installation."

tmighty
  • 9,293
  • 20
  • 90
  • 192

1 Answers1

4

That prompt is disabled by default. If you see it, you must have DisableStartupPrompt set to no. Set it to yes, or remove it altogether (yes is default).

[Setup]
DisableStartupPrompt=yes
Martin Prikryl
  • 167,268
  • 50
  • 405
  • 846
  • 1
    Thank you very much. I created the script by code, and I totally missed this line. Again, thank you. – tmighty Dec 04 '17 at 14:35
  • 1
    Yes. Thank you for the clarification. – tmighty Dec 04 '17 at 14:52
  • 1
    I needed to uncheck your reply as my problem still persists. I have updated my post accordingly. – tmighty Dec 05 '17 at 00:13
  • 2
    That's a different question. + It's answered already: [Run installation using Inno Setup silently without any Next button or Install button](https://stackoverflow.com/q/42089779/850848). – Martin Prikryl Dec 05 '17 at 07:13
  • 1
    I don't understand then what DisableStartupPrompt does, but you've pointed me to the correct answer to my question. "SILENT" is what I actually needed. Thank you. – tmighty Dec 05 '17 at 16:25
  • 1
    @CodenameK I do not see what does your comment have to do with my answer about `DisableStartupPrompt`. If you have a new question, ask it. - Though do read the documentation: http://www.jrsoftware.org/ishelp/index.php?topic=setup_disablereadypage – Martin Prikryl May 03 '18 at 12:20
  • OK [Martin Prikryl](https://stackoverflow.com/users/850848/martin-prikryl) – Codename K May 03 '18 at 12:29