Self-Updating Powershell Windows Service?
Posted: Thu Dec 13, 2018 10:48 am
In my Powershell based utilities I have auto-update built in, so that it updates itself from a network share. It does this with a /version flag which returns the current version string and exits - that is called on a UNC shared copy to determine if it needs to update.
I recently did a short term project that required a windows service, I used the "Windows Service Project" template available in Powershell Studio 5.5.155 and it worked great - it was installed on twelve servers. The only problem was it was a pain to deploy new versions to all the servers...
I have another project and I was trying to work through how to get a windows service to detect if there was an update available and automatically update itself when the service started. That way we could use normal remote calls to restart the service on the servers and they would get the current version when they came back up...
Any thoughts or ideas welcomed... thanks!
Powershell 5.1(+), Powershell Studio 5.5.155
I recently did a short term project that required a windows service, I used the "Windows Service Project" template available in Powershell Studio 5.5.155 and it worked great - it was installed on twelve servers. The only problem was it was a pain to deploy new versions to all the servers...
I have another project and I was trying to work through how to get a windows service to detect if there was an update available and automatically update itself when the service started. That way we could use normal remote calls to restart the service on the servers and they would get the current version when they came back up...
Any thoughts or ideas welcomed... thanks!
Powershell 5.1(+), Powershell Studio 5.5.155