启动 Inno Setup 安装程序,不显示“这将安装....您希望继续吗?” 迅速的

tmi*_*hty 4 inno-setup

当我运行 Inno Setup 脚本时,我收到提示“这将安装......您想继续吗?”

怎么才能让安装开始时没有这个提示呢。

用户已经双击安装程序进行安装,然后发生 UAC 事件,然后 Inno Setup 询问用户是否确实要安装该应用程序。

这让用户看起来真的很傻,他必须“确认”三遍。

有没有办法跳过最后一个提示?

这是我的脚本:

[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
Run Code Online (Sandbox Code Playgroud)

编辑:尽管已经定义了DisableReadyPage,我仍然得到这个特定的页面。

这是截图:

在此输入图像描述

翻译成英语是“准备安装”。安装程序现已准备好将应用程序安装到计算机上。单击“安装”开始安装。”

Mar*_*ryl 5

默认情况下禁用该提示。如果您看到它,则您一定已DisableStartupPrompt设置为no。将其设置为yes,或完全删除它(yes默认)。

[Setup]
DisableStartupPrompt=yes
Run Code Online (Sandbox Code Playgroud)