Link to home
Start Free TrialLog in
Avatar of soozh
soozhFlag for Sweden

asked on

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

Avatar of SteveBay
SteveBay
Flag of United States of America image

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.
Avatar of soozh

ASKER

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.
Sorry, I'm not familiar with installing .NET services.  Perhaps someone else will have some idea.
ASKER CERTIFIED SOLUTION
Avatar of soozh
soozh
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial