如何在msi安装程序中创建自定义操作? [英] How to create custom action in msi installer?

查看:147
本文介绍了如何在msi安装程序中创建自定义操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在msi安装程序中创建自定义操作?请告诉我们。



我的尝试:



In我的安装项目是一个名为自定义操作的窗口。但是当选择卸载文件夹并添加自定义操作作为主输出时,这里没有任何操作。

解决方案

安装项目由于一些很好的理由,微软已经停止了这项工作。我永远不会推荐使用它。



我强烈推荐的最合法和最强大的产品是WiX,它恰好成为第一个微软开源项目。首先,它完全符合MSBuild标准(与其他产品不同,包括VS设置,矛盾的是)并且具有非常好的Visual Studio集成(但可以用作独立的)。安装的所有方面都是明确控制的;安装程序源代码基于XML(在VS下具有良好的Intellisense支持)。



请查看我过去的答案:

installshield和Visual Studio 2012 [ ^ ],

自定义安装项目 [ ^ ],

如何根据处理器架构类型(32位或64位)有条件地安装组件? [ 2 ],

如何根据处理器架构类型(32位或64位)有条件地安装组件? [ 3 ]。



-SA

I can't able to create custom action in msi installer? kindly let us know.

What I have tried:

In my setup project their is a window called custom action .But when select uninstall folder and add custom action as primary output,nothing as done here.

解决方案

"Setup" project has been discontinued by Microsoft, by some good reasons. I would never recommend using it.

The most legitimate and robust product I would strongly recommend is WiX, which happened to become the first Microsoft open-source project. First of all, it is fully compliant with the MSBuild standard (unlike other products, including VS "Setup", paradoxically) and has very good Visual Studio integration (but can be used as stand-along one). All aspects of installation are controlled explicitly; installer source code is based in XML (with good Intellisense support under VS).

Please see my past answers:
installshield and Visual Studio 2012 [^],
Custom setup project [^],
How to conditionally install components based on processor architecture type (32-bit or 64-bit)? [2],
How to conditionally install components based on processor architecture type (32-bit or 64-bit)? [3].

—SA


这篇关于如何在msi安装程序中创建自定义操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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