2017-12-03 270 views
2

当我运行我的Inno Setup脚本时,出现提示“This will install .... Do you want to continue?”*。启动Inno安装程序安装程序,“这将安装....你想继续吗?”提示

如何做到这一点,以便在没有此提示的情况下开始安装。

用户已经双击安装程序进行安装,然后发生UAC事件,然后Inno安装程序询问用户他是否真的想安装应用程序。

这使得用户看起来很愚蠢,他必须“确认”三次。

有没有办法跳过最后的提示?

这是我的脚本:

[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 

编辑:具有确定的Dispite “DisableReadyPage”,我仍然得到这个某一页。

这是截图:“准备安装安装程序现在准备将应用程序安装到计算机上点击安装,开始安装。”

enter image description here

翻译为英语会

回答

1

该提示在默认情况下被禁用。如果你看到它,你必须有DisableStartupPrompt设置为no。将其设置为yes,或将其完全删除(默认为yes)。

[Setup] 
DisableStartupPrompt=yes 
+0

非常感谢。我通过代码创建了脚本,而我完全错过了这一行。再次谢谢你。 – tmighty

+0

是的。谢谢你的澄清。 – tmighty

+0

我需要取消选中您的回复,因为我的问题仍然存在。我已经相应地更新了我的帖子。 – tmighty

相关问题