简体   繁体   English

Windows Installer中的XML自定义操作

[英]Windows Installer in XML custom actions

How to link a C# dll to a WiX program using custom action. 如何使用自定义操作将C#dll链接到WiX程序。 I am new to WiX so I tried what I could. 我是WiX的新手,所以我尝试了一切。

I used the following tags. 我使用了以下标签。

<Binary Id="Uninstall"   SourceFile="..\..\uninstaller.dll"/>
<CustomAction Id="UNINSTALLER" BinaryKey="Uninstall" DllEntry="ManagedInstall" Execute="deferred" Impersonate="no"/>

and

<Custom Action="Uninstall" Sequence="1699" After="InstallFinalize"></Custom>

This is not working; 这行不通; not even close. 差远了。 Could anyone help me out? 有人可以帮我吗?

You cannot call easily call managed code from an installer. 您无法从安装程序轻松调用托管代码。 This article describes the steps required: Creating Custom Action for WIX Written in Managed Code without Votive 本文介绍了所需的步骤: 为托管代码编写的WIX创建自定义操作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM