Upgrade change Install Directory

Resolved

Upgrade change Install Directory

avatar

Hello,

I am currently using PowerShell Universal 2026.1.6, installed in the following directory: D:\Apps\Universal

I recently upgraded to version 2026.3.4

However, when I upgrade PowerShell Universal, the folder D:\Apps\Universal is deleted, and the installation is automatically redirected to: C:\Program Files (x86)\Universal

Is it possible to prevent this behavior and keep the installation in the original directory during upgrades?

Best regards,

All Comments (2)

avatar

Hello,

Thank you for the clear description, it made the cause easy to find.

What you saw comes from the way the PowerShell Universal installer handles upgrades.

When the new MSI runs through its setup wizard, it does not reuse your custom folder.

It installs to the default C:\Program Files (x86)\Universal folder instead.

During the same upgrade, Windows Installer removes the old version and its whole folder.

This is why D:\Apps\Universal was deleted.

Your settings and data are kept, because by default they are stored under C:\ProgramData and not in the install folder.

If you kept any of your own files inside D:\Apps\Universal, please restore them from a backup.

For future upgrades, run the MSI from an elevated command prompt and pass your folder with the INSTALLFOLDER property:

msiexec /i "C:\Temp\Devolutions.PowerShellUniversal.<version>.msi" INSTALLFOLDER="D:\Apps\Universal" /qn /norestart /l*v "C:\Temp\psu-upgrade.log"

The silent switch (/qn) is needed here, because the setup wizard resets the folder to the default even when INSTALLFOLDER is set.

Your existing appsettings.json is not replaced, the installer only creates it when it is missing.

If the PowerShellUniversal service runs under a dedicated account, also add SERVICEACCOUNT and SERVICEACCOUNTPASSWORD to the command.

The Update-PSUServer cmdlet has no folder option and always uses the default folder, so please use msiexec for now.

If there is no rush, you can wait for the next release and upgrade with the command above, which moves it back to D:\Apps\Universal.

To move your current 2026.3.4 install back right away, uninstall it first.

Then reinstall 2026.3.4 with the same command.

The uninstall step is needed because the installer does not allow an upgrade to the same version.

As a precaution, back up C:\ProgramData\UniversalAutomation and C:\ProgramData\PowerShellUniversal before you uninstall.

After the move, update anything that still points to the old path, such as firewall rules or antivirus exclusions for Universal.Server.exe.

You can find all installer properties on our installation page:

https://docs.devolutions.net/powershell-universal/getting-started

I am also sharing this upgrade behavior with our development team, so the wizard can keep the existing folder in a future version.

Best regards,

Patrick Ouimet

avatar

Thanks it's working !