从[代码]中退出Inno Setup安装 [英] Exit from Inno Setup installation from [Code]

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

问题描述

是否可以从使用Inno Setup创建的安装程序的[Code]部分中的功能中退出安装?

Is it possible to exit the installation from a function in the [Code] section of an installer created with Inno Setup?

我对设置退出代码不感兴趣,我想要做的是对需求进行自定义检查,如果以前没有安装该需求,则退出安装.

I'm not interested in setting the exit code, what I want to do is perform a custom check for a requirement, and exit the installation if that requirement was not previously installed.

推荐答案

如果您在以下事件中,可以使用 Abort():

You can use Abort() if you are in these events:

InitializeSetup
InitializeWizard
CurStepChanged(ssInstall)
InitializeUninstall
CurUninstallStepChanged(usAppMutexCheck)
CurUninstallStepChanged(usUninstall)

这篇关于从[代码]中退出Inno Setup安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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