我正在使用wix創建安裝程序,並且它正在掛起StartServices操作。下面是我安裝的唯一服務:WiX v3.7 - 安裝程序卡在「正在啓動服務」
<Component Id="CMP_RemindexNP.exe" Guid="{3FB99890-752D-4652-9412-72230695A520}">
<File Id="FILE_INSTALLFOLDER_RemindexNPEXE" Source="RemindexNP.exe" KeyPath="yes"/>
<RegistryKey Root="HKLM" Key="SYSTEM\CurrentControlSet\Services\RemindexNP\Parameters">
<RegistryValue Id="rg_remNP1" Action="write" Name="AppDirectory" Value="[INSTALLFOLDER]" Type="string"/>
<RegistryValue Id="rg_remNP2" Action="write" Name="Application" Value="[INSTALLFOLDER]RemindexNP.exe" Type="string"/>
</RegistryKey>
<ServiceInstall DisplayName="RemindexNP" Id="srv_remNP" Name="RemindexNP" Start="auto" Type="shareProcess" ErrorControl="ignore"/>
<ServiceControl Id="srvc_remNP" Name="RemindexNP" Remove="both" Start="install" Stop="uninstall" Wait="no"/>
</Component>
這裏的日誌文件中的StartService行動:
Action 17:15:08: StartServices. Starting services
Action start 17:15:08: StartServices.
StartServices: Service: Starting services
Action ended 17:15:08: StartServices. Return value 1.
如果我等待5 - 10分鐘後,安裝一些關於「結束過早的」 。或者我可以在任務管理器中停止任務,幾分鐘後,我會看到相同的對話框。
我試過將ServiceInstall中的Type屬性設置爲shareProcess和ownProcess,這兩者都不起作用。我也嘗試設置等待和否。
我的ServiceInstall元素有問題嗎?
任何建議將不勝感激。
[WiX v3.7 - 自定義操作中批處理文件的複製行爲]的可能重複(http://stackoverflow.com/questions/18495579/wix-v3-7-replicate-behavior-of-a-批處理文件中的自定義操作) –
您已經在我提供給您答案的位置轉貼了您的上一個問題。在這個問題中,你省略了對srvany.exe的引用,這將使人們無法知道你的問題。 –