?
Solved

My windows service written in Delphi Prism does not install

Posted on 2009-04-27
4
Medium Priority
?
780 Views
Last Modified: 2013-11-23
Hello.

I have just downloaded and installed Delphi Prism.

As a test I tried to create and install a windows service application.

I just took the standard project for a windows service, built it as "release", and tried to install it using InstallUtil.exe.  Initially i targeted .Net 3.5 but I also tried 2.0.  It appears to install.  However my service does not appear amongst the list services on this PC.

I have enclosed the install command and the log files.



"C:\windows\MIcrosoft.net\framework\v2.0.50727\InstallUtil.exe" WindowsService2.exe
 
and the logfiles:
 
Running a transacted installation.
 
Beginning the Install phase of the installation.
See the contents of the log file for the C:\Documents and Settings\Pci Express\My Documents\Visual Studio 2008\Projects\WindowsService2\WindowsService2\bin\Release\WindowsService2.exe assembly's progress.
The file is located at C:\Documents and Settings\Pci Express\My Documents\Visual Studio 2008\Projects\WindowsService2\WindowsService2\bin\Release\WindowsService2.InstallLog.
 
The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the C:\Documents and Settings\Pci Express\My Documents\Visual Studio 2008\Projects\WindowsService2\WindowsService2\bin\Release\WindowsService2.exe assembly's progress.
The file is located at C:\Documents and Settings\Pci Express\My Documents\Visual Studio 2008\Projects\WindowsService2\WindowsService2\bin\Release\WindowsService2.InstallLog.
 
The Commit phase completed successfully.
 
The transacted install has completed.
 
AND
 
Installing assembly 'C:\Documents and Settings\Pci Express\My Documents\Visual Studio 2008\Projects\WindowsService2\WindowsService2\bin\Release\WindowsService2.exe'.
Affected parameters are:
   logtoconsole = 
   assemblypath = C:\Documents and Settings\Pci Express\My Documents\Visual Studio 2008\Projects\WindowsService2\WindowsService2\bin\Release\WindowsService2.exe
   logfile = C:\Documents and Settings\Pci Express\My Documents\Visual Studio 2008\Projects\WindowsService2\WindowsService2\bin\Release\WindowsService2.InstallLog
Committing assembly 'C:\Documents and Settings\Pci Express\My Documents\Visual Studio 2008\Projects\WindowsService2\WindowsService2\bin\Release\WindowsService2.exe'.
Affected parameters are:
   logtoconsole = 
   assemblypath = C:\Documents and Settings\Pci Express\My Documents\Visual Studio 2008\Projects\WindowsService2\WindowsService2\bin\Release\WindowsService2.exe
   logfile = C:\Documents and Settings\Pci Express\My Documents\Visual Studio 2008\Projects\WindowsService2\WindowsService2\bin\Release\WindowsService2.InstallLog

Open in new window

0
Comment
Question by:soozh
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:SteveBay
ID: 24242392
Typically you would install a servive with this syntax:
WindowsService2.exe /Install

Also you did not mention which OS you are trying to install on. Is this Vista? If so, make sure your service is not interactive as this is not allowed in Vista and will not work.
0
 

Author Comment

by:soozh
ID: 24242570
Hello,

THis is an .Net windows service application so therefore you need to use the .Net InstallUtil.exe.

The os is XP professional. It just appears that the service installs, but I can not see it in the service management window.
0
 
LVL 14

Expert Comment

by:SteveBay
ID: 24242635
Sorry, I'm not familiar with installing .NET services.  Perhaps someone else will have some idea.
0
 

Accepted Solution

by:
soozh earned 0 total points
ID: 24257994
I have now managed to make this work by adding some code to ProjectInstaller module.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This is an update to some code that someone else posted on Experts Exchange. It is an alternate approach, I think a little easier to use, & makes sure that things like the Task Bar will update.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question