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

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!
 
P

Phil Wilson

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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top