2017-12-03 119 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

相關問題