开发者

Inno Setup: Exiting when clicking on Cancel without confirmation

开发者 https://www.devze.com 2023-03-02 03:50 出处:网络
If a the user clicks on \"Cancel\", I want the installer to stop and exit,开发者_运维问答 WITHOUT asking I want to exit or not.

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

精彩评论

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