问题描述
我正在使用 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?
推荐答案
这篇关于使用orca的wpf设置和部署项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!