How to install a .Net Windows Service w/o installer?

  • Thread starter Thread starter Jerron
  • Start date Start date
J

Jerron

How to install a .Net Windows Service w/o installer?
when we develope the Windows service, we can use the installutil.exe, which
comes with the SDK, to install/uninstall a service. but in customer's
computer, they usually don't have such thing installed. it doesn't seem to
work to simply copy the installutil.exe. according to MSDN, the conventional
way is to create another deployment project. my question is other than doing
so, can
we do it manually, just simulate what the installer does to have the service
installed? and how?

thanks a lot!
 
1) Use installer classes, serviceinstaller and projectinstaller IIRC. You
can select them from the design time service form. See the MSDN topic in
Visual Studio docs"Adding Installers to your Service Application".
2) If your company uses a 3rd party packaging tool from InstallShield, Wise
etc, a .NET service is just a Windows Service, and those tools will build an
MSI file that just does the right thing (populating the ServiceInstall and
ServiceControl tables in the MSi file).
 
Back
Top