[Setup]
AppName=我的程序
AppVerName=我的程序 版本 1.5
DefaultDirName={pf}\我的程序
DefaultGroupName=我的程序
Compression=lzma
[code]
var
restart: Boolean;
function InitializeSetup(): Boolean;
begin
Result := true;
if MsgBox('你确认跳过欢迎界面吗?', mbConfirmation, MB_YESNO) = IDYES then
// restart:=true; //写法1
restart:=false;//写法2
end;
function ShouldSkipPage(PageID: Integer): Boolean;
begin
// if PageID=wpwelcome then Result:=restart; //写法1
if PageID=wpwelcome then Result:=not restart;//写法2
end;
如上述代码,想请教一下为什么我用第二种写法,无论如何都会跳过欢迎界面。我觉得逻辑方面应该效果一样的呀!