Inside custom actions you can choose the stage condition, under install there is First time install and Upgrade, under uninstall there is regular uninstall and replaced by a new version.
Screenshot 2026-06-04 121736.png
I'm not understanding the difference between choosing Upgrade and Replaced by ...
FOLLOW US
Get the latest news in Application Packaging