即使重新启动,即使可执行文件消失,该服务仍然存在.我使用的是WIX 3.0.5419.0版
<Component Id="IdiomServer.exe" Guid="7a751e1e-5e9e-41d2-be60-dc905ab1ccad">
<File Id="IdiomServer.exe" Source="$(var.IdiomServer.TargetDir)IdiomServer.exe" KeyPath="yes" />
<ServiceInstall Id="IdiomServer_Service" Name="IdiomServer 4.0" Account="LocalSystem" Description="Idiom Repository Server" ErrorControl="normal" Start="auto" Type="ownProcess" Vital="yes" />
<ServiceControl Id="IdiomServer_Service" Name="IdiomServer 4.0" Remove="uninstall" Stop="uninstall" Wait="yes" />
</Component>
Run Code Online (Sandbox Code Playgroud)
安装Windows服务工作正常.卸载它似乎什么都不做.卸载日志文件的部分:
MSI (s) (D8:5C) [09:43:58:033]: Doing action: StopServices
MSI (s) (D8:5C) [09:43:58:033]: Note: 1: 2205 2: 3: ActionText
Action start 9:43:58: StopServices.
Action ended 9:43:58: StopServices. Return value 1.
MSI (s) (D8:5C) [09:43:58:033]: Doing action: DeleteServices
MSI (s) (D8:5C) [09:43:58:033]: Note: 1: 2205 2: 3: ActionText
Action start 9:43:58: DeleteServices.
Action ended 9:43:58: DeleteServices. Return value 1.
Run Code Online (Sandbox Code Playgroud)
任何帮助将非常感激.
Mar*_*tin 14
我有一个几乎相同的安装程序,工作正常.唯一的区别是我的ServiceControl元素与ServiceInstall元素具有不同的Id,以及'Start ="install"'属性.
我怀疑你的问题是ServiceControl元素的Id,或者你有一个流浪的服务.
请尝试以下方法:
| 归档时间: |
|
| 查看次数: |
14962 次 |
| 最近记录: |