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?
Starting service at end of installation
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
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.
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
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
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
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
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.
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.
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
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.
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
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/

