安装Shield,如何检查退出代码但不显示错误?

发布于 2024-10-06 19:58:15 字数 189 浏览 1 评论 0原文

我有一个在 Install Shield 项目一开始就运行的自定义操作。 我检查此自定义操作的退出代码,因为它是一个具有下一步和取消按钮的表单,如果用户取消安装,则不应继续,如果他们选择下一步,则应该继续(因此我检查退出代码)。但是,我不希望用户在选择取消时看到 install-Shield 错误消息。 有什么我可以做的吗? 我已经安装了shield 2010

I have a custom action that runs in the very beginning of my Install Shield Project.
I check the exit code on this custom action because it is a form that has a next and cancel button, if the user cancels the install should NOT proceed, if they select next it should (thus I check the exit code). However I don't want the user to see an install-Shield error message when they select cancel.
Is there anything I can do?
I have install shield 2010

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柠北森屋 2024-10-13 19:58:15

EXE 自定义操作只能成功或失败(零或非零返回代码)。 MSI DLL 自定义操作可以设置属性(未来操作可以以该属性为条件),并返回多个状态指示器之一,包括成功、失败或用户取消。如果您必须使用 EXE(比如因为它是提供给您的),您可能需要将其包装在 MSI DLL 自定义操作中才能执行您想要的操作。或者,如果可能的话,将 EXE 重写为 DLL 可能会好得多。

EXE custom actions can only succeed or fail (zero or non-zero return code). MSI DLL custom actions can set properties (that future actions can condition on), and return one of several status indicators including success, failure, or user cancelled. If you have to use an EXE (say because it was provided to you), you will likely need to wrap it in a MSI DLL custom action to do what you want. Or, if possible, it may be a lot better to rewrite the EXE as a DLL.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文