question

Elroy-1144 avatar image
0 Votes"
Elroy-1144 asked saldana-msft edited

Trying to push uninstaller, fails with exit code 1605

I'm trying to uninstall software on a group of workstations using an SCCM package. I have the product GUID and I am pushing a batch file to affected systems. It's a simple batch file with the following line:

MsiExec.exe /X {product guid} /qn REBOOT=R

It appears that the product was installed under the user context because:

  • When I run the package with admin context it fails with exit code 1605 (product not installed).

  • When I run the package with user context it fails because administrative context is required.

  • If I add the user to the local admin group and then run the package with user context it succeeds.

How can I push this uninstaller to run as the user without adding the user to the admin group?

Thanks!

mem-cm-generalmem-cm-application
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RahulJindal-2267 avatar image
0 Votes"
RahulJindal-2267 answered

Hi. Have you tried running the program only when a user logged in and with admin rights?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Garth avatar image
0 Votes"
Garth answered

First off it is easy to confirm if it is a user or system context it was installed with. If the software show up within cm, it was installed within the system context, otherwise it was user.

Next you can test the sw removing in the exact matter that cm will remove, use accessing the local system account. https://www.recastsoftware.com/resources/how-to-access-the-local-system-account/

Lastly add the switches to create a log file for the uninstall and review the logs to see what it says.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.