Page 1 of 1

Windows Service Problem

Posted: Fri Dec 12, 2014 11:14 pm
by mozmeny
Hi all,

In my setup project, I am trying to install an additional windows service at the end of the MSI Code by placing an "Install Service" command. The installer completes the installation successfully but the windows service is not installed. If I try it manually using installutil, the service installs without any problems. I debugged the setup project in IDE as well. The debugger steps over that line successfully. I have checked the Event Viewer=>Application Errors too. There is no error. When I run installutil manually, I have got Install.Log under the service folder. However the installer never seems to be creating that log as well. So it seems like installutil is never called by the installer.

Please help me understand what I am missing here.

Below are the screenshots of my configuration settings:

http://i.imgur.com/S8sU0Jg.png

http://i.imgur.com/2U0PjMb.png

http://i.imgur.com/iL0yEQ9.png

http://i.imgur.com/R13IPvO.png

http://i.imgur.com/YMwlcaq.png

As you can see below, the folder structure looks correct and the files are saved appropriately. When I run installutil using the exe in this path manually, it installs.

http://i.imgur.com/VgUcZLY.png

Thanks

Re: Windows Service Problem

Posted: Mon Dec 15, 2014 10:50 am
by FrancescoT
Dear Mozmeny,

the "Install Service" command is a Windows Installer command (Purple Command = deferred execution) and due of this, you should call it before the Apply Install execution ... otherwise the service will be not installed.
http://www.installaware.com/forum/viewtopic.php?f=2&t=4338

Hope this helps you.

Regards