I would probably be doing two Components as you mention in your last
attempt. The ICE30 error is probably related to duplicate shortnames.
You can probably get around this by specifying your own shortnames
rather than having WiX generate them for you. It might be giving each
Component the same shortname, or trying to anyway. I'd be looking at
that since I agree you can't condition a ServiceControl by itself from
the look of it.



-----Original Message-----
From: Andreas Hirth [mailto:a.hi...@luratech.com] 
Sent: Monday, May 17, 2010 8:59 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Conditionally install executable as service

Hi all,

I struggle with writing a WiX installer that can conditionally install
an
executable as Windows service. The executable can be run as Windows
service
but it is not required to. The user should get an option to install the
service during setup or not. The option could be in form of a feature
"Install as Windows Service". 

I'm stuck because the ServiceInstall element has no condition and always
refers to the KeyPath file of its Component. My last attempt was to have
two
Components installing the same file, one with ServiceInstall, the other
without. But besides not being a very elegant approach it's not working
(ICE30). 

Is there any solution out there you know of or would the only way to
write
my own custom action for this?

Any help would be appreciated.

Thanks!

Andreas



------------------------------------------------------------------------
------

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to