I searched the forum and got following related topics but my problem is a bit
different, so I decided to post it here and look forward to your comments.
Thanks.

http://n2.nabble.com/Installing-a-Service-with-Varying-Dependencies-td693097.html#a693097
http://n2.nabble.com/Conditional-service-installation-td690233.html#a690233

Here is my problem:
My installer has a .exe running as a service. The .exe depends on Windows
operating system, which is Service_w2k.exe for Win 2K and Service.exe for
newer OS versions. However, the service name is the same, say "ServiceName".

My codes below works fine (pls ignore the line in italic at this moment).
However, there's new requirement to config the service during installation.
I can't use <ServiceConfig> under each <ServiceInstall> (just like the code
in italic below) because ServiceConfig table requires unique Service Name as
ID:,(.
 
<Component Guid1>
  <File Source="Service_w2k.exe"/>
  <Condition>VersionNT = 500</Condition>
  <ServiceInstall Name="ServiceName">
    <ServiceConfig/>  <!--ERROR!!-->
  </ServiceInstall>
</Component>

<Component Guid2>
  <File Source="Service.exe"/>
  <Condition>VersionNT &gt; 500</Condition>
  <ServiceInstall Name="ServiceName">
    <ServiceConfig/>  <!--ERROR!!-->
  </ServiceInstall>
</Component>

-- 
View this message in context: 
http://n2.nabble.com/Conditional-service-install-with-ServiceControl-tp4679896p4679896.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to