PDA

View Full Version : Start a Service



dipowargaw
08-21-2003, 09:59 AM
Hi All,

Anyone knows how to start a service in Installshield Pro 6.3?

If I have to write on the script, how to do that?

This is what I did but I doesn't work:

function OnRebooted()
begin
LaunchApp ("D:"abc.exe", "/SERVICE START");
end;



Thanks,
Dipo

BlakeMillerWW
08-22-2003, 09:26 AM
I think you can start services from the command prompt by using the net start command.
Otherwise, look at www.installsite.org for the helper DLL that has some functions in it for starting services.

dipowargaw
08-22-2003, 09:30 AM
Yes, I can do it from start - run command.
But the idea is so that the service starts automatically after the install is done.


Thanks

BlakeMillerWW
08-22-2003, 09:33 AM
You need to configure the service start type to 'Automatic' so that it will start when the computer is rebooted.
There is a Win32 API that can allow you to set this, or you can tweak the registration database under services.
Then, you can start the service yourself during the setup, and each time the machine is rebooted after that it will start on its own, assuming its start type is set to Automatic.
I think the DLL at installsite will allow you to set the service configuration as well.

wheredavid
08-22-2003, 02:35 PM
Take a look at:
www.installsite.org
then, select InstallScript Samples
then, select NT Services