Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Diagnostics;
- using System.ServiceProcess;
- public partial class desktop_process : ServiceBase
- {
- protected override void OnStart(string[] args)
- {
- Console.WriteLine("TestStart");
- base.OnStart(args);
- }
- protected override void OnStop()
- {
- Console.WriteLine("TestStop");
- base.OnStop();
- }
- public desktop_process()
- {
- this.ServiceName = "testservice";
- }
- public static void Main()
- {
- System.ServiceProcess.ServiceBase.Run(new desktop_process());
- }
- }
- =============================================================================
- C:\WINXP\Microsoft.NET\Framework\v4.0.30319>InstallUtil.exe -i desktop_process.exe
- Microsoft (R) .NET Framework Installation utility Version 4.0.30319.1
- Copyright (c) Microsoft Corporation. All rights reserved.
- Running a transacted installation.
- Beginning the Install phase of the installation.
- See the contents of the log file for the C:\Dokumente und Einstellungen\xxx\Eig
- ene Dateien\CSharp\desktop_process.exe assembly's progress.
- The file is located at C:\Dokumente und Einstellungen\KaiQ\Eigene Dateien\CSharp
- \desktop_process.InstallLog.
- Installing assembly 'C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\d
- esktop_process.exe'.
- Affected parameters are:
- logtoconsole =
- i =
- logfile = C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\desktop_p
- rocess.InstallLog
- assemblypath = C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\desk
- top_process.exe
- No public installers with the RunInstallerAttribute.Yes attribute could be found
- in the C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\desktop_proces
- s.exe assembly.
- The Install phase completed successfully, and the Commit phase is beginning.
- See the contents of the log file for the C:\Dokumente und Einstellungen\xxx\Eig
- ene Dateien\CSharp\desktop_process.exe assembly's progress.
- The file is located at C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp
- \desktop_process.InstallLog.
- Committing assembly 'C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\d
- esktop_process.exe'.
- Affected parameters are:
- logtoconsole =
- i =
- logfile = C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\desktop_p
- rocess.InstallLog
- assemblypath = C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\desk
- top_process.exe
- No public installers with the RunInstallerAttribute.Yes attribute could be found
- in the C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\desktop_proces
- s.exe assembly.
- Remove InstallState file because there are no installers.
- The Commit phase completed successfully.
- The transacted install has completed.
Advertisement
Add Comment
Please, Sign In to add comment