[英]Dynamically Disable Welcome Page
我正在嘗試動態禁用歡迎頁面:這是我嘗試過的其他選項
[SETUP]
DisableWelcomePage={code:ShouldSkipAutorun}
...
[CODE]
function ShouldSkipAutorun(Default: string):boolean;
begin
...
// will return true or false on whether to disable it or not
end;
錯誤:“ [設置]節指令“ DisableWelcomePage”的值無效”
接下來我嘗試使用shouldskippage,但是文檔說
不為wpWelcome,wpPreparing和wpInstalling頁面調用此事件函數,也不應該跳過安裝程序已確定的頁面(例如,不包含任何組件的安裝中的wpSelectComponents
有什么幫助嗎?
在inno中使用ShouldSkipPage函數。
在[設置]部分中將DisableWelcomePage默認值設置為no 。
[Setup]
DisableWelcomePage=no
如下修改您的[代碼]部分
[CODE]
function ShouldSkipAutorun():boolean;
begin
Result:=/** add you result here (TRUE or FALSE) **/;
end;
function ShouldSkipPage(PageID: Integer): Boolean;
begin
Result := False;
if PageID = wpWelcome then
begin
Result := ShouldSkipAutorun;
end;
end;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.