I am currently deploying my windows services manually on the server.
One time Steps:
D:\InstallDir
InstallUtil.Exe
) and another batch file to uninstall windows service and copied in the install folderHere are the steps I perform to upgrade:
InstallUtil /u
)InstallUtil WIndowsService.Exe
)I would like to automate upgrade steps; can you suggest deployment strategy in this scenario?
Windows Deployment Services is a server role that gives administrators the ability to deploy Windows operating systems remotely. WDS can be used for network-based installations to set up new computers so administrators do not have to directly install each operating system (OS).
Select Start, select Run, type wdsmgmt. msc, and then press OK. In the Windows Deployment Services window, expand Servers, right-click the WDS server name, and then select Properties. In the Server Properties dialog box, select the DHCP tab.
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.
There's a walk through for setting up a Setup Project for a Windows Service. I've used it and it's simple to use and simple to create. It creates a standard .msi file to install from. Since it's a standard Setup project creating a standard msi, you can set it to automatically uninstall previous versions, etc.
http://support.microsoft.com/kb/317421
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With