I am currently deploying my windows services manually on the server.
One time Steps:
- Install Location on server hosting windows server ->
D:\InstallDir
- Copied windows Service related files into this folder
- Created a batch file to Install Windows Service (
InstallUtil.Exe
) and another batch file to uninstall windows service and copied in the install folder - Installed windows service using the install batch file
Here are the steps I perform to upgrade:
- Take backup of existing Install folder (to use in case I need to rollback to prev version)
- Run uninstall batch file to uninstall the windows service (
InstallUtil /u
) - Copy new DLLs from a location on build server into Install Folder (on server hosting windows services)
- Run install batch file to Install the windows service (
InstallUtil WIndowsService.Exe
)
I would like to automate upgrade steps; can you suggest deployment strategy in this scenario?