We installed an application to some client machines and we want to deploy the new version by
1) Uninstalling the prior version if there is, then
2) Installing the new version at the same step (because the msi of the application cannot uninstall the prior version and we have to perform uninstallation and installation of the application at the same step. Is it possible? If so how can we manage this on SCCM or msi side by using a script, etc? Any help would be appreciated.
Is it possible to Uninstall and Install applications at the same deployment in SCCM
deploymentsccmsccm-2012sccm-2012-r2windows-server-2008
Related Topic
- Use System Center Configuration Manager 2012 to remove existing InstallShield App
- What, exactly, is the SCCM client doing when it installs an .msi for a system
- Windows – the purpose of Supersedence in SCCM 2012
- SCCM ignoring Application Deployment during OSD
- SCCM 2012 R2 App In Task Sequence Reports Failure Despite Successful Install
- SCCM MSI deployment fails with 0x87D00324
Best Answer
My deployment of SCCM uninstalls one version and installs the subsequent version in a single step regularly. Here is how to achieve that.
Package both versions as applications whose full lifecycle is tested and working.
For this to work you need both the original and the new version to be packaged as an SCCM Application that SCCM can successfully put through the full lifecycle (start out uninstalled and undetected, install, detect, uninstall, undetected). Test the full lifecycle of each application separately before moving on to the next step.
Deploy version n
With a well-formed application, you can deploy the application to computers without regard for whether the application is already installed. If the application is already installed,
CcmExec
will detect it and do nothing. If the application is not detected, it will invoke the installer.Supersede version n with version n+1
Supersedence is the key to achieving uninstallation and installation in a "single step".
CcmExec
actually processes uninstallation followed by installation, but I've always seen that happen back-to-back so you don't risk the user going without that application for an extended period of time.Here is the supersedence screen you are working toward: