Hi Michael
This worked - thank you.
However, in order to get it to work properly I had to set the value of
the command line directly to the net.exe - i.e.
<Property Id="QtExecDeferred" Value=""c:\windows\system32\Net.exe
start myservice""/>
<CustomAction Id="QtExecDeferred" BinaryKey="WixCA"
DllEntry="CAQuietExec" Execute="deferred" Return="check">
I need to use the system folder property like so:
<Property Id="QtExecDeferred" Value=""[SystemFolder]\Net.exe start
myservice""/>
But this fails, as it does not evaluate the property.
Could someone give me some help on how to do this?
Cheers
Emma.
________________________________
From: Michael Osmond [mailto:[EMAIL PROTECTED]
Sent: Monday, 4 December 2006 12:37 PM
To: Emma Hanna; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Optional Service Start - Help Needed
Emma,
You could use a custom action to start the service at the end of the
install, and condition the custom action from the check box.
To start a service use the command NET Start XXXX. Use the WIX qtexec
custom action to run the command.
Michael
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Emma Hanna
Sent: Monday, 4 December 2006 9:28 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Optional Service Start - Help Needed
When installing a windows service with WIX, I need for the service to be
optionally started or not, depending on input from the user (a check box
or the like). I have tried doing this using two separate components and
adding a condition, and this appears to work, however does not uninstall
properly. Could someone advise me on the best way to go about
implementing this solution?
Thanks
Emma.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users