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

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
Windows services 在windows 2012上使用Wix安装程序时无法停止windows服务_Windows Services_Wix_Windows Installer_Windows Server 2012_Wix3.7 - Fatal编程技术网

Windows services 在windows 2012上使用Wix安装程序时无法停止windows服务

Windows services 在windows 2012上使用Wix安装程序时无法停止windows服务,windows-services,wix,windows-installer,windows-server-2012,wix3.7,Windows Services,Wix,Windows Installer,Windows Server 2012,Wix3.7,我有一个MSI,它可以停止正在运行的服务并使用WIX3.7进行升级。在windows 2012上,我在安装过程中随机出现错误 只有当服务正在运行时才会发生这种情况,这让我相信它与停止有关。当出现故障并且我点击“重试”时,安装将100%正常运行。此外,我只在2012年的win上看到这一点。我还没能在2008年的比赛中重演 这是密码 <ServiceInstall Id="MyServiceInstall" DisplayName="My Service" Description="My Se

我有一个MSI,它可以停止正在运行的服务并使用WIX3.7进行升级。在windows 2012上,我在安装过程中随机出现错误

只有当服务正在运行时才会发生这种情况,这让我相信它与停止有关。当出现故障并且我点击“重试”时,安装将100%正常运行。此外,我只在2012年的win上看到这一点。我还没能在2008年的比赛中重演

这是密码

<ServiceInstall Id="MyServiceInstall" DisplayName="My Service" Description="My Service"     Name="MyService" ErrorControl="normal" Start="auto" Type="ownProcess" Vital="yes">
<ServiceConfig Id="MyServiceConfig" DelayedAutoStart="yes" OnInstall="yes"     OnReinstall="yes" PreShutdownDelay="240000"/>
</ServiceInstall>
<ServiceControl Id="MyServiceControl" Name="MyService" Stop="uninstall"     Remove="uninstall" Wait="yes"/>
其他时候我会这样:

MSI (s) (6C:D8) [19:35:30:922]: I/O on thread 5784 could not be cancelled. Error: 1168
MSI (s) (6C:D8) [19:35:30:922]: I/O on thread 6784 could not be cancelled. Error: 1168
MSI (s) (6C:D8) [19:35:30:922]: I/O on thread 3652 could not be cancelled. Error: 1168
MSI (s) (6C:D8) [19:35:30:922]: I/O on thread 4804 could not be cancelled. Error: 1168
MSI (s) (6C:D8) [19:35:30:922]: I/O on thread 7000 could not be cancelled. Error: 1168
MSI (s) (6C:D8) [19:35:30:922]: I/O on thread 5080 could not be cancelled. Error: 1168
MSI (s) (6C:D8) [19:35:30:922]: Note: 1: 2205 2:  3: Error 
MSI (s) (6C:D8) [19:35:30:922]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709 
有没有办法解决这个问题

MSI (s) (6C:D8) [19:35:30:922]: I/O on thread 5784 could not be cancelled. Error: 1168
MSI (s) (6C:D8) [19:35:30:922]: I/O on thread 6784 could not be cancelled. Error: 1168
MSI (s) (6C:D8) [19:35:30:922]: I/O on thread 3652 could not be cancelled. Error: 1168
MSI (s) (6C:D8) [19:35:30:922]: I/O on thread 4804 could not be cancelled. Error: 1168
MSI (s) (6C:D8) [19:35:30:922]: I/O on thread 7000 could not be cancelled. Error: 1168
MSI (s) (6C:D8) [19:35:30:922]: I/O on thread 5080 could not be cancelled. Error: 1168
MSI (s) (6C:D8) [19:35:30:922]: Note: 1: 2205 2:  3: Error 
MSI (s) (6C:D8) [19:35:30:922]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709