为什么没有执行Wix自定义操作 [英] Why is a Wix custom action not executed

查看:87
本文介绍了为什么没有执行Wix自定义操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好



我使用WIX 3.8生成.msi文件来安装应用程序。 Wix文件包含自定义操作:

< CustomAction Id =LanceScriptsFileKey =LanceurScriptsExeCommand =Return =asyncNoWait/> 
< InstallExecuteSequence>
< Custom Action =LanceScriptsAfter =InstallFinalize> NOT Installed< / Custom>
< / InstallExecuteSequence>





1)当我通过双击.msi文件启动安装时,自定义动作未执行

2)当我使用msiexec实用程序(msiexec / i MyApplication.msi / l * v MyLogFile.txt)开始安装时,自定义操作正确执行!!



有人可以解释为什么以及如何通过双击来执行?谢谢

谢谢

解决方案

请看我对这个问题的评论。



尝试按照以下说明操作:

http://wixtoolset.org/documentation/manual/v3/wixdev/extensions/authoring_custom_actions.html [ ^ ]。



您的代码片段确实从第2步(参见上面引用的文章)开始,不显示你是否做了其他任何事情。



-SA

Hello

I am using WIX 3.8 to generate an .msi file to install an app. The Wix file contains a custom action :

<CustomAction Id="LanceScripts" FileKey="LanceurScripts" ExeCommand="" Return="asyncNoWait" />
    <InstallExecuteSequence>
      <Custom Action="LanceScripts" After="InstallFinalize">NOT Installed</Custom>
    </InstallExecuteSequence>



1) when I start the installation by double-clicking the .msi file, the custom action is not executed !
2) when I start the installation with the msiexec utility (msiexec /i MyApplication.msi /l*v MyLogFile.txt), the custom action is correctly executed !!

Can someone please explain why and what should I do to execute by double-clicking ? Thanks
Thanks

解决方案

Please see my comment to the question.

Try to follow these instructions:
http://wixtoolset.org/documentation/manual/v3/wixdev/extensions/authoring_custom_actions.html[^].

You code fragment does not show if you did anything else properly, starting from the Step 2 (see the article referenced above).

—SA


这篇关于为什么没有执行Wix自定义操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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