如何在运行innosetup安装过程时停止安装? [英] How to stop installing when an innosetup installation process is running?

查看:596
本文介绍了如何在运行innosetup安装过程时停止安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读其帮助文档,我发现有一个名为Abort的函数可以在从InitializeSetup或其他几个程序调用时终止进程。但我想这不是一个安全且正常的终止函数。如何我可以在进程运行时以安全和正常的方式停止innosetup安装过程吗?



我尝试过:



阅读帮助文档并反复阅读。

I have read its Help Document,I found there is a function named "Abort" can terminate the process if it called from "InitializeSetup" or several other procedures.But I guess this is not a secure and normal terminate function.How can I stop an innosetup installation process in a secure and normal way whenever the process is running?

What I have tried:

Read the Help Document and read again again and again.

推荐答案

您好,



终止设置的唯一方法是调用模拟

的功能取消点击。目前,你应该只是抱抱MsgBox在
NextButtonClick事件处理程序中如果找不到某个文件并返回

False(以防止页面改变)。




取自: Re:Abort Installation in代码 - 但是? [ ^ ]



从那以后事情可能发生了变化,我想你可能会在InnoSetup自己的新闻组 [ ^ ]



PS:我不确定为什么你的查询标记为C ++,因为它与C ++无关。
Hello,

The only way to terminate setup is calling a function that simulates
Cancel click. Currently, you should simply complain by MsgBox in
NextButtonClick event handler if a certain file is not found and return
False (to prevent page from changing).


Taken from: Re: Abort Installation in Code - yet?[^]

Things may have changed since then though, and I think you could probably seek help in InnoSetup's own Newsgroups[^]

PS: I'm not sure why's your query tagged as C++ as it's got nothing to do with C++.


这篇关于如何在运行innosetup安装过程时停止安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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