/build/static/layout/Breadcrumb_cap_w.png

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.

0 Comments   [ + ] Show comments

Answers (3)

Posted by: anonymous_9363 15 years ago
Red Belt
3
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 8 years ago
Posted by: SorenHJ 10 years ago
White Belt
0

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 8 years ago
Posted by: EdT 8 years ago
Red Belt
0
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ