• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 787
  • Last Modified:

My windows service written in Delphi Prism does not install

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
soozh
Asked:
soozh
  • 2
  • 2
1 Solution
 
SteveBayCommented:
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
 
soozhAuthor Commented:
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
 
SteveBayCommented:
Sorry, I'm not familiar with installing .NET services.  Perhaps someone else will have some idea.
0
 
soozhAuthor Commented:
I have now managed to make this work by adding some code to ProjectInstaller module.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now