Stop and start service

Got a problem you cannot solve? Try here.
bernaert
Posts: 12
Joined: Wed Nov 23, 2005 10:41 am

Stop and start service

Postby bernaert » Mon May 15, 2006 2:13 am

Hello,

I need to stop a service before the installation of the .net framework 2.0 and restart it after the installation.
If I would stop the service from the command prompt, I could do it with the following command line in the windows system32 directory: net.exe STOP SWEEPSRV.SYS

I've tried this in my script using the run program, as program I've specified $WINSYSDIR$\\net.exe and as command line parameters I've specified 'STOP SWEEPSRV.SYS'
It does not work. Is there something wrong with the parameters?
I've tried without quotes and with quotes or do both have to be quoted?

Thx for the help,
Bernaert Dominique.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Mon May 15, 2006 2:54 am

Is the variable WINSYSDIR initialized at the point you are making your call?
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 177 guests