如何在Inno Setup中设置退出代码? [英] How can I set the exit code in Inno Setup?

查看:159
本文介绍了如何在Inno Setup中设置退出代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的安装设置退出代码,这样我将知道为什么安装被中止.我正在使用Inno Setup.

I want to set the exit code for my installation, this way I will know why the installation was aborted. I'm using Inno Setup.

推荐答案

使用:

[Code]
procedure ExitProcess(exitCode:integer);
  external 'ExitProcess@kernel32.dll stdcall';

procedure SomeEventHere();
begin
  if someerror then begin
    ExitProcess(9); //Your custom exit code
  end;
end;

这篇关于如何在Inno Setup中设置退出代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆