English 中文(简体)
未安装在主要升级阶段的Windows服务
原标题:Windows service not getting installed on major upgrade-WIX
  • 时间:2012-04-27 11:48:07
  •  标签:
  • wix
  • wix3.5

我在机器上安装了一台小型包裹(WIX)。 但是,当进行重大升级时,服务却停滞不前,但安装了设备。

这是我的法典:

 <Component Id="abc" Guid="{E64A8CDD-816F-4544-9ACD-A2E367F7758A}">
              <File Id="EventTraceService.exe" Source="........Productsabc.exe"  Vital="yes" KeyPath ="yes"/>
              <File Source="........Productsabc.exe.config" Vital="yes" />
              <ServiceInstall
              Id="ServiceInstaller"
              Type="ownProcess"
              Vital="yes" 
              Name="abc"
              DisplayName="abc"
              Description="Monitoring and management of Trace"
              Start="auto"
              Account="LocalSystem"
              Interactive="yes"
              ErrorControl="normal"
                  />
<ServiceControl Id="StartService" Start="install" Stop="uninstall" Remove="uninstall" Name="abc" Wait="yes" />

提前感谢!

最佳回答

一种可能的解释是,你改变了该构成部分的规范。 因此,同一资源(不同版本)由不同组成部分管理。

http://msdn.microsoft.com/en-us/library/windows/desktop/a37952728v=vs.85%29.aspx” rel=“nofollow”

www.un.org/spanish/ecosoc 作者在两个不同组成部分中都包含同样的资源。

如果两个构成部分拥有相同的名称和地点的资源,而且这两个组成部分都安装在同一倍数中,那么,删除这两个组成部分就会消除损害其余部分的共同资源。

  • Uninstalling either component removes the resource and breaks the other component.
  • The component reference-counting mechanism is damaged.

这似乎符合你的症状。

问题回答

如果两个包件中的服务EXE有相同的版本,则由于





相关问题
3rd party Wix libraries

I am just getting started with Wix. I see there there a several libraries included with the default Wix install. I also see that users can create their own libraries(wixlibs). Are there any 3rd ...

Psake, Powershell & Wix

I have the below function as a part of my psake build. When the build is executing Candle.exe throws this error: candle.exe : warning CNDL1098: ext .BuildPackagesWixWebinWixIIsExtension.dll ...

wix custom dialog for config edit

hi i m trying make a setup msi for my application with wix v3 I have a problem about this task; I need a user input that will be stored in my application s config file (for example i need a dialog for ...

Closing an application using WiX

In creating my WiX installer I have run into an issue when trying to close an application before installing the upgrade. Below is an example of how I am attempting to do this. <util:...

Conditional uninstall of previous version in Wix

I m doing an installer for an software used for debugging embedded ARM cores (OpenOCD) and this installer automatically removes the previous versions - that s simple. However, sometimes that would be ...

热门标签