使用orca的wpf设置和部署项目 [英] wpf setup and deployment project using orca

查看:99
本文介绍了使用orca的wpf设置和部署项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 VS 2010 ,设置和部署项目来创建 MSI 。它是按用户安装的。



我有自定义操作在提交时运行< my prrocess> 。它在安装时工作正常。我也必须支持升级。



在升级时,我必须检查运行过程,如果我的过程正在运行我必须终止进程并继续安装。



添加了一个自定义操作来使用方法<$ c $终止进程c>OnBeforeInstall,安装,OnBeforeUninstall和卸载它们都没有被触发并获得Windows安装程序的文件使用对话框。



使用orca工具将自定义操作序列更改为InstallExecuteSequence中的InstallValidate之前。仍然没有用。

在CustomAction部分我的自定义操作类型是51



任何人都可以帮我解决问题吗?

I am using VS 2010, setup and deployment project to create MSI. It is per user installtion.

I am having custom action to run <my prrocess> on commit. It is working fine on installation. I have to support Upgrade as well.

At the time of upgradation, I have to check for running process and if "My Process" is running I have to kill the process and continue installation.

Added a custom action to kill the process by using the methods "OnBeforeInstall", "Install", "OnBeforeUninstall" and "Uninstall" none of them are getting triggered and getting the Files in use dialog of Windows installer.

Using orca tool changed the custom action sequence to just before the InstallValidate in "InstallExecuteSequence". Still it is not working.
In the CustomAction section my custom action Type is 51

Can any one help me to solve the problem?

推荐答案

您好请尝试以下链接,您可能会有所了解



http://stackoverflow.com/questions/251218/how-to -stop-a-running-process-an-msi-based-un-install [ ^ ]



http: //social.msdn.microsoft.com/Forums/windows/en-US/15e03c16-e9c5-4b84-83d4-2156afdf4541/killing-a-process-before-msi-installation [ ^ ]



请参阅自定义操作部分

使用Visual Studio安装项目为C#Windows应用程序创建MSI包 [ ^ ]
Hi Try below links, you may get some idea

http://stackoverflow.com/questions/251218/how-to-stop-a-running-process-during-an-msi-based-un-install[^]

http://social.msdn.microsoft.com/Forums/windows/en-US/15e03c16-e9c5-4b84-83d4-2156afdf4541/killing-a-process-before-msi-installation[^]

See the Custom action part
Creating an MSI Package for C# Windows Application Using a Visual Studio Setup Project[^]


这篇关于使用orca的wpf设置和部署项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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