Forum Discussion
Kiril
Mar 09, 2022Steel Contributor
Update an app which was manually installed by the user
We onboarded a few devices to Intune. Users have all sort of apps installed on their devices. Now, I want to update those apps. E.g. user installed notepad++ version 7 two years ago, and I now want t...
- Mar 14, 2022Two things worked out in the end:
1. Manually uninstalling the app on the client, then installing the newer version using a win32 app
2. Deploying a PowerShell script from Devices > Scripts to the machine which uninstalled the app remotely, then waiting for the win32 to be installed on the device.
Kiril
Mar 10, 2022Steel Contributor
I tried it on the client machine: the same error message appeared as in Intune. This means that in order to install the app, the previous version must be uninstalled. Is there any approach to tell the Win32 app to uninstall the previous version, or to execute the uninstall command before deploying the app?
Mar 10, 2022
You could create a win32app with the old version and a correct uninstall command, use that in the supersedence part of your new package with the option to uninstall the old version.
- KirilMar 14, 2022Steel ContributorTwo things worked out in the end:
1. Manually uninstalling the app on the client, then installing the newer version using a win32 app
2. Deploying a PowerShell script from Devices > Scripts to the machine which uninstalled the app remotely, then waiting for the win32 to be installed on the device. - Mar 12, 2022Did it work out for you now?
- Mar 10, 2022test it on a workstation and deploy it like that, if that works you can configure Supercedence with your newer version specifying to use the uninstall of the old version
- KirilMar 10, 2022Steel ContributorOk, understood. Then, I could also create a PowerShell script containing "msiexec /x "{XXXX-XXXXX-XXXXX-XXXX}" /q" and push it to the device for an uninstall. Will try it out.
- Mar 10, 2022You can create a Win32 app with a empty install.cmd and a uninstall.cmd containing a "msiexec /x "{XXXX-XXXXX-XXXXX-XXXX}" /q" line with a detection on the current file in c:\program files.
- KirilMar 10, 2022Steel ContributorThat's basically the initial problem I had: I don't have the original MSI file as the previous version is very old, so I cannot create an win32app. Or is it irrelevant what MSI file I use?