Thanks a lot for the replies. The approach with two components is working for me now. My mistake was to not define the conditions fully exclusive. Thats why I got ICE30. Setting two different ShortNames manually was not necessary.
Thanks again, Andreas ------------------------------------------------------------ LuraTech Imaging GmbH Ulmenstr.22 42855 Remscheid Tel.: +49 (0)30 / 39 40 50 - 0 Fax : +49 (0)30 / 39 40 50 - 99 www.luratech.com Amtsgericht Wuppertal HRB 17025 Geschäftsführer: Dipl.-Ing. Carsten Heiermann ------------------------------------------------------------ > -----Original Message----- > From: Chad Petersen [mailto:chad.peter...@harlandfs.com] > Sent: Monday, May 17, 2010 8:04 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] Conditionally install executable as service > > 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 ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users