Upgrade an application

Hi
I’m a beginner and trying to use PSADT to upgrade an application which writes to a user’s profile. The application MSI file performs an uninstall of the old version first prior to installing the upgrade when I tested it on it’s own.
I’ve configured my Deployed-Application.ps1 just to perform an installation. Do I need to configured any other parameters i.e Pre Installation to perform the upgrade successfully using PSADT?
Thanks in advance…

If you ran the MSI Elevated and it worked, do the same when launching Deployed-Application.ps1

FYI: I hope your MSI does the user profile stuff via ActiveSetup. MSI is buggy for Profile changes, if it works.