通过自定义操作停止安装 [英] Stop the installation from a custom action

查看:105
本文介绍了通过自定义操作停止安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从自定义操作中退出msi installar而不会出现错误?

Is it possible to exit msi installar from a custom action without errors?

我正在使用Visual Studio安装项目来创建msi,并且添加了要安装的自定义操作exe.如果我从exe返回非0的值,它将终止安装.但是它显示了一个错误.我需要退出安装而不会显示错误.

I am using visual studio setup project to create the msi and I have added a custom action exe to install. If I return a value other than 0 from exe it terminate the installation. But it shows an error. I need to exit installation without showing errors.

谢谢.

推荐答案

最后,我找到了一种使用

Finally I found a way to do it using a vbscript custom action from http://chensuping.blogspot.com/2013/05/windows-setup-project-vbs-custom-action.html.

这篇关于通过自定义操作停止安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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