WIX - Adding a C# custom action code

南笙酒味 提交于 2019-12-10 09:22:49

问题


I'm creating a program which is being installed by Wix, using VS 2010 and I've already got the product.wxs ready.

Now I want to add a custom C# action to the installation. I've searched how to do it and found this guide: How do I create fully fledged C# custom actions?

The problem is that I don't understand all the instructions, specifically in this section of the guide: Integrate the C# custom action in Advanced Installer

I've created the Custom Action project but I don't understand how do I tell the setup project to run that custom action and how do I set the action to run at install in the commit phase.

Another related thing. How in the C# code can I get the installation path that the user chose to install to?


回答1:


That tutorial is for how to use WiX managed custom actions with "Advance Installer", a commercial tool for creating installers.

Here is a good explanation on how to create WiX Custom Actions in C#, to use with the WiX toolset.



来源:https://stackoverflow.com/questions/19344462/wix-adding-a-c-sharp-custom-action-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!