We are trying to update our SourceTree users from 2.5 to 3.4.13. I have MSI Installer for new version which works fine. But, it is not updating on the Older Version, the older version still available for the users to use. Is there a way to remove older version while installing the newer version? I am looking something from the command line or batch script that will remove older version. Thank you!
Hi @Shiva Batta
Welcome to the Atlassian community! Are you still working on this rollout, or is it already sorted?
If it is still relevant, the reason the new MSI does not replace 2.5 is that the two installers do not share the same Windows Installer UpgradeCode, so Windows treats 3.4.13 as a separate product instead of a major upgrade. That is why both stay side by side.
What I would do is uninstall the old version first in the same batch, then install the new one:
wmic product where "name like 'SourceTree%%'" get name,identifyingnumbermsiexec /x {ProductCode} /qnmsiexec /i SourceTreeEnterpriseSetup.msi /qnOne thing worth checking on your side: was the old 2.5 installed per user or per machine? SourceTree historically installed into the user profile, so a machine-wide MSI removal may not catch a per-user copy, which can explain why it lingers.
Cheers, Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.