开发者

Inno Setup: Exiting when clicking on Cancel without confirmation

If a the user clicks on "Cancel", I want the installer to stop and exit,开发者_运维问答 WITHOUT asking I want to exit or not.

Can this be done somehow? Any help would be greatly appreciated.


This is very easy. Just add

[Code]

procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);
begin
  Cancel := true;
  Confirm := false;
end;

to your ISS script.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜