Hi...

You should try to use the ServiceControll Table.
In WiX you will find it under the ServiceControl Element:

        <ServiceControl Id="ServiceID"
                Name="ServiceName"
                Start="install"
                Stop="both"
                Wait="yes" />

regards...

Stefan


dave_c wrote:
> Hi there,
> 
> Being both new to Wix and new to windows platform this is a little bit wooly
> but was hoping someone might be able to help
> 
> What I wuld like to do is 
> 
> 1. Determine whether a service process is running and, if it is, stop and
> remove it by running the command 
>     $SomePath/bin/OUKWatchdog.exe --remove
> 
> 2. Install some files (I think I know how to do this)
> 
> 3. Re-start the service at the end of the installation by running the
> command
>    $SomePath/bin/OUKWatchdog.exe --install
> 
> Can this be done, if so could someone provide an example and can we pass a
> parameter such as --install to the running of the executable.

-- 
Stefan Pavlik | [EMAIL PROTECTED]
Whitestein Technologies | www.whitestein.com
Panenska 28 | SK-81103 Bratislava | Slovak Republic
Tel +421(2)5930-0735 | Fax +421(2)5443-5512

-------------------------------------------------------------------------
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

Reply via email to