Uninstall Per-User Package from Another Account
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.
Thanks!
Chris.
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.
Thanks!
Chris.
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
anonymous_9363
15 years ago
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.
Comments:
-
Brute force kill, yikes. - mazessj 9 years ago
Posted by:
SorenHJ
10 years ago
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
Comments:
-
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. - mazessj 9 years ago
Posted by:
EdT
9 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.