运行WPF应用程序的Wix安装程序自定义操作 [英] Wix installer custom action which runs a WPF application

查看:103
本文介绍了运行WPF应用程序的Wix安装程序自定义操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个基于Visual Studio安装程序安装项目的现有安装程序.安装阶段的安装程序将执行自定义操作,该操作将打开WPF应用程序,该应用程序允许用户配置正在安装的应用程序(更改配置文件,创建/修改SQL Server数据库...).由于Visual Studio 11不再支持Visual Studio安装程序,因此我需要使用Wix重新实现安装程序.我设法创建了一个安装程序,但是在运行WPF应用程序的自定义操作上遇到了困难.用作自定义操作的WPF应用程序与实际的目标应用程序"一起安装.
如果用户取消自定义操作,则必须取消安装过程.
任何想法将不胜感激.

Uroš

Hi
I have an existing installer based on Visual Studio Installer Setup project. The installer on install phase executes a custom action which opens a WPF application which allows the user to configure the application being installed(changes to configuration file, create / modify SQL server databases...). Since the Visual Studio Installer is no longer supported in Visual Studio 11, I need to re-implement the installer with Wix. I managed to create an installer but I am having difficulties with custom action which runs a WPF application. The WPF application used as a custom action is installed together with an actual "target application".
If a user cancels a custom action the install process has to be canceled.
Any ideas will be appreciated.

Uroš

推荐答案

建议夫妇...

-仅仅因为vs2011是个新生孩子,这并不意味着您就必须丢掉那些老孩子吗?我们的构建系统仍然支持2003年的一些构建
-看看以前的MSI在 Orca上所做的工作 [ ^ ]-特别注意 ^ ]和 InstallExecuteSeq [自定义操作 [WiX [
Couple of suggestions ...

- just because vs2011 is the new kid, doesn''t mean you have to throw the old kids away? Our build system still supports some 2003 builds
- Have a look at what the previous MSI was doing with Orca[^] - pay particular attention to the CustomAction[^] and InstallExecuteSeq[^] tables - review the docs for Custom Actions[^] and apply to WiX[^]


这篇关于运行WPF应用程序的Wix安装程序自定义操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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