Сбой при остановке службы Windows при использовании установщика Wix в Windows 2012

У меня есть MSI, который останавливает работающий сервис и обновляет его с помощью Wix 3.7. На Windows 2012 я случайно получал ошибки во время установки.

Это происходит только тогда, когда служба работает, и это заставляет меня поверить, что она как-то связана с остановкой. Когда происходит сбой, и я нажимаю "Повторить", установка работает 100% времени. Кроме того, я вижу это только на победе 2012 года. Мне еще не удалось воспроизвести это на победе 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:

MSI (s) (BC:FC) [00:54:18:223]: Executing op:  ServiceInstall(Name=MyService,DisplayName=My Service,ImagePath="c:\Program Files\MyCompany\My  Service\myservice.exe",ServiceType=16,StartType=2,ErrorControl=32769,,Dependencies= [~],,,Password=**********,Description=My Service,,)
MSI (s) (BC:FC) [00:54:18:224]: Note: 1: 2205 2:  3: Error 
MSI (s) (BC:FC) [00:54:18:224]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM   `Error` WHERE `Error` = 1923 
MSI (c) (78:2C) [00:54:18:230]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS  Shell Dlg, Ret=MS Shell Dlg

Error 1923. Service 'My Service' (MyService) could not be installed.  Verify that you   have sufficient privileges to install system services.
MSI (s) (BC:FC) [00:54:24:339]: Note: 1: 2205 2:  3: Error 
MSI (s) (BC:FC) [00:54:24:339]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM  `Error` WHERE `Error` = 1709 
MSI (s) (BC:FC) [00:54:24:339]: Product: My Service -- Error 1923. Service 'My Service'   (MyService) could not be installed.  Verify that you have sufficient privileges to install  system services.

и в другой раз я получаю это:

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 

Есть идеи, как это решить?

0 ответов

Другие вопросы по тегам