stevenp

Untitled

Nov 7th, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Runtime.InteropServices;
  4. using System.Text;
  5. using System.Diagnostics;
  6. using System.ServiceProcess;
  7.  
  8.  
  9. public partial class desktop_process : ServiceBase
  10. {
  11.    protected override void OnStart(string[] args)
  12.    {
  13.       Console.WriteLine("TestStart");
  14.       base.OnStart(args);
  15.    }
  16.  
  17.    protected override void OnStop()
  18.    {
  19.       Console.WriteLine("TestStop");
  20.       base.OnStop();
  21.    }
  22.  
  23.    public desktop_process()
  24.    {
  25.       this.ServiceName = "testservice";
  26.    }
  27.  
  28.    public static void Main()
  29.    {
  30.    System.ServiceProcess.ServiceBase.Run(new desktop_process());
  31.    }
  32. }
  33.  
  34.  
  35.  
  36. =============================================================================
  37.  
  38. C:\WINXP\Microsoft.NET\Framework\v4.0.30319>InstallUtil.exe -i desktop_process.exe
  39. Microsoft (R) .NET Framework Installation utility Version 4.0.30319.1
  40. Copyright (c) Microsoft Corporation.  All rights reserved.
  41.  
  42.  
  43. Running a transacted installation.
  44.  
  45. Beginning the Install phase of the installation.
  46. See the contents of the log file for the C:\Dokumente und Einstellungen\xxx\Eig
  47. ene Dateien\CSharp\desktop_process.exe assembly's progress.
  48. The file is located at C:\Dokumente und Einstellungen\KaiQ\Eigene Dateien\CSharp
  49. \desktop_process.InstallLog.
  50. Installing assembly 'C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\d
  51. esktop_process.exe'.
  52. Affected parameters are:
  53.   logtoconsole =
  54.   i =
  55.   logfile = C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\desktop_p
  56. rocess.InstallLog
  57.   assemblypath = C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\desk
  58. top_process.exe
  59. No public installers with the RunInstallerAttribute.Yes attribute could be found
  60. in the C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\desktop_proces
  61. s.exe assembly.
  62.  
  63. The Install phase completed successfully, and the Commit phase is beginning.
  64. See the contents of the log file for the C:\Dokumente und Einstellungen\xxx\Eig
  65. ene Dateien\CSharp\desktop_process.exe assembly's progress.
  66. The file is located at C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp
  67. \desktop_process.InstallLog.
  68. Committing assembly 'C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\d
  69. esktop_process.exe'.
  70. Affected parameters are:
  71.    logtoconsole =
  72.    i =
  73.    logfile = C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\desktop_p
  74. rocess.InstallLog
  75.    assemblypath = C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\desk
  76. top_process.exe
  77. No public installers with the RunInstallerAttribute.Yes attribute could be found
  78.  in the C:\Dokumente und Einstellungen\xxx\Eigene Dateien\CSharp\desktop_proces
  79. s.exe assembly.
  80. Remove InstallState file because there are no installers.
  81.  
  82. The Commit phase completed successfully.
  83.  
  84. The transacted install has completed.
Advertisement
Add Comment
Please, Sign In to add comment