Starting service at end of installation

Got a problem you cannot solve? Try here.
Tinus
Posts: 207
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Starting service at end of installation

Postby Tinus » Thu Jun 22, 2006 5:08 am

Hi,

I want to start a service at the end of my installation. I tried Control Service
with Start on Install and wait for completion, but nothing happend.

Is this command possible at the end of an installation?
Martin Rothschink
InstallAware MVP

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware

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

Postby MichaelNesmith » Thu Jun 22, 2006 6:44 am

Hi Martin!

Since you are actually installing the service you want to start...you want to specify that option in the Install Service command. If you choose "Start Automatically", the service should start at the end of the installation.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

Tinus
Posts: 207
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Postby Tinus » Thu Jun 22, 2006 7:03 am

Hi Michael,

sorry I was not clear enough. I do not install the service, so I can't use this option.
Martin Rothschink
InstallAware MVP

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware

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

Postby MichaelNesmith » Thu Jun 22, 2006 7:22 am

Oh. If the service already exists, Control Service should work then. The only "gotcha" I can think of is that you are specifying the user visible "friendly" name of the service, instead of the actual service name. Should work - try again!
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

Tinus
Posts: 207
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Postby Tinus » Thu Jun 22, 2006 7:35 am

I already tried that with no success.

What exactly is the meaning of control:
start on install
start on uninstall

Does this override (disable/enable) the action depending on installation/uninstallation?
Martin Rothschink
InstallAware MVP

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware

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

Postby MichaelNesmith » Thu Jun 22, 2006 6:52 pm

Start on Install starts the named service when Apply Install is called.
Start on Uninstall starts the named service when Apply Uninstall is called.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

Tinus
Posts: 207
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Postby Tinus » Fri Jun 23, 2006 2:04 am

Ok, then this can't work. I tried to start the service in the finish dialog (the
dialog with the checkbox Run $Title$ now). This is after Apply Install.

If I want to run a program I call Run Program $TARGETDIR$\\prog.exe but I
want to start a specific service here if the check box in the finish dialog is
checked. What can I do? I simply want a Control service with start/stop as action.
Martin Rothschink
InstallAware MVP

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware

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

Postby MichaelNesmith » Mon Jun 26, 2006 6:00 pm

Since the service commands are tied to Windows Installer, they execute only when Apply Changes is called.

Since the Run Program command is independent of Windows Installer, it executes directly.

You can tell Windows Installer commands from their syntax highlighting in the script, which is purple by default. Directly executing commands are black.

Please see the help topic titled "Setup Commands Preceding Apply Uninstall", which provides details on a similar, related case.
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 160 guests