Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using MSDeploy to install windows services from package

I've read where it's possible to utilize MSDeploy to install windows services or even performance counters on a remote machine. I see how this can be accomplished using the MSDeploy "sync" from a source directory to a destination directory. Is there some way of actually having the source be the binaries contained within the .zip file itself so the .zip can be copied onto the remote machine and then execute msdeploy? If so, how is the source directory referenced from within the manifest.xml? There doesn't seem to be a large amount of documentation on MSDeploy aside from traditional web site and database deployment. Any helpful links would be appreciated.

like image 386
John B Avatar asked Jul 30 '10 15:07

John B


People also ask

How do you Deploy a Windows service to a production server?

Answers. You can add a installer class to your project, and the add your project outputs to a setup project, then you can use this installer install your windows service. For more details you can look into the steps in the MSDN document.

How do I get MSDeploy EXE?

Go to C:\Windows\System32 and right click on CMD. EXE. Choose “Run as Administrator”. Once the command prompt is up, you will navigate to the folder level where MSDeploy.exe exists.

How do I know if MSDeploy is installed?

You can verify web deploy is installed by going to the "Programs and Features" control panel and looking for "Microsoft Web Deploy 2.0" in the list of installed programs. If it is not there, you can install it via the Web Platform Installer by going to the "Products" tab. It is listed as "Web Deployment Tool 2.1".


1 Answers

You can use MSDeploy to call installutil in order to install the service, as discussed here.

like image 56
Bobby D Avatar answered Sep 18 '22 18:09

Bobby D