Upgrade from 2.0.3 to 2.1.0

This may be a stupid question but what is the easiest way to upgrade from a 2.x to latest version?
Can I just unzip over current installation? o is it desirable to unistall and reinstall again?

Product: PowerShell Universal
Version: 2.0.3

Depends on how you are running it. If its behind iis, just extract the zip, stop app pool and copy over the zip.

And if it is under Universal.Server.exe service?

Did you install with the MSI or the ZIP?

If the ZIP, you should delete the folder and then copy over the new folder. Make sure to run Unblock-File on the directory to ensure the files are accessible.

If the MSI, just run the MSI and it should just upgrade the existing instance.

Thanks Adam,
I stopped the service, backed up appsettings.json and installed the msi correctly over existing installation.
then restored appsetings.json customized parameters over the new appsettings.json and restarted the service.
worked great

1 Like

Awesome!

You can also store your appsettings.json in the ProgramData folder if you don’t want to do that. Note that the appsettings.json files will merge together. So if you only customize some of the settings, you only need to include those in the file in ProgramData.

thanks! it will make it totally unattended next time!