Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Installation 首次使用wix安装程序安装时未执行自定义事件_Installation_Wix - Fatal编程技术网

Installation 首次使用wix安装程序安装时未执行自定义事件

Installation 首次使用wix安装程序安装时未执行自定义事件,installation,wix,Installation,Wix,我正在尝试使用SingnalR开发一个应用程序,该应用程序将安装到客户机中,并在特定端口上不断更新。我使用WIX进行了客户机设置,并添加了一个自定义事件以将端口注册到客户机。现在的问题是,当我第一次在客户机上运行安装程序时,我的自定义事件不会被触发。但是如果我再次运行安装程序,它就会被解雇。我不知道是什么问题 .wxs文件如下所示 安装 您已将条件设置为仅在产品已安装时运行 <Custom Action="addPort" Before="InstallExecute">NOT

我正在尝试使用SingnalR开发一个应用程序,该应用程序将安装到客户机中,并在特定端口上不断更新。我使用WIX进行了客户机设置,并添加了一个自定义事件以将端口注册到客户机。现在的问题是,当我第一次在客户机上运行安装程序时,我的自定义事件不会被触发。但是如果我再次运行安装程序,它就会被解雇。我不知道是什么问题

.wxs文件如下所示


安装

您已将条件设置为仅在产品已安装时运行

<Custom Action="addPort" Before="InstallExecute">NOT Installed</Custom>
将自定义操作中的条件更改为“未安装”

<Custom Action="addPort" Before="InstallExecute">NOT Installed</Custom>
未安装

您已将条件设置为仅在产品已安装时运行

<Custom Action="addPort" Before="InstallExecute">NOT Installed</Custom>
将自定义操作中的条件更改为“未安装”

<Custom Action="addPort" Before="InstallExecute">NOT Installed</Custom>
未安装