Hi Everyone -

I need to uninstall specific MSI packaged applications that were installed per-user, but I need to do this while logged in as another account (such as SYSTEM or a Local Admin). Does anyone know if this is possible? I wouldn't know which account installed the software, but I would have the original MSI, the GUID, and admin access to the system.

0 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer


There are some variables which I can't know but the surest route (which I've taken in the past, specifically to remove recalcitrant apps installed per-user by Group Policy) is to use the original MSI to build an 'uninstall' version, where the content of the 'Files' table gets munged into the 'RemoveFile' table and ditto for 'Registry'. On completion, the uninstall MSI extracts and calls MSIZap (part of the WI SDK), passing the ProductCode for the original MSI and appropriate command-line switches.
Answered 03/04/2009 by: VBScab
Red Belt

  • Brute force kill, yikes.
Please log in to comment
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity



This (ran it as .cmd script) worked for me when having to uninstall a programme through SCCM that was installed in usercontext.

msiexec /i "Programmename.msi" REINSTALLMODE=sumo /qn

msiexec /i "Programmename.msi" REMOVE=ALL /qn

Answered 01/27/2014 by: SorenHJ
White Belt

  • I think REINSTALLMODE typically defaults to omus (sumo) anyway, so that property setting doesn't appear to be necessary. Essentially, you're just installing another instance of the MSI under the current user profile, then uninstalling it. It'll still be installed under the original user.
Please log in to comment
This content is currently hidden from public view.
Reason: Removed by member request
For more information, visit our FAQ's.

Are you using roaming profiles? If so, that is going to be somewhat more difficult. Otherwise, you can create an "uninstall" version of your MSI that locates and targets both the HK_Users\SID registry and the local user profiles to remove app-specific content.
Answered 10/02/2015 by: EdT
Red Belt

Please log in to comment