Silently upgrade psychopy from 2.2/2.4 to 2.5?

How do you silently upgrade PsychoPy from 2.2 or 2.4 to 2.5?

If I just run:

start /wait StandalonePsychoPy-2022.2.5-win64.exe /S

It exits with error -1073741819

If I don’t do it silently, it gives me an option to uninstall the old version.

To me the ideal is to make the installer an msi. Since the nsis uninstaller runs “un_a.exe” in the background, problems happen.