BatchPatch Forums Home › Forums › BatchPatch Support Forum › Uninstall 3rd party applications
- This topic has 3 replies, 2 voices, and was last updated 10 years, 9 months ago by Mbrodin.
-
AuthorPosts
-
January 27, 2015 at 6:26 pm #9128MbrodinParticipant
Hi
Tried to uninstall Notepad++ from a Windows 20008 server (install was easy using BP, but using WMIC seems not to work.
Thought I could use WMIC product name=”Notepad++” call uninstall /nointeractive
/Mats
January 27, 2015 at 6:50 pm #10985dougModeratorMats – I tried to uninstall Notepad++ at the command line, using the syntax you provided, WITHOUT using BP. So, I launched a command prompt as administrator, and then I ran the following command:
WMIC product name="Notepad++" call uninstall /nointeractiveIt did *not* uninstall Notepad++ and instead gave the following output:
ERROR:
Description = Invalid queryThat said, since I cannot uninstall Notepad++ *without* BP using the command you provided, I certainly do not expect to be able to uninstall Notepad++ *with* BP using that same invalid command. Before you ever try to use BP to perform a remote action, you should confirm that the syntax you want to use works when you’re at the command line *not* using BP.
To successfully uninstall Notepad++, use BatchPatch Remote Command 1/2 (Remote Command 3/4 will not work with this syntax), and enter the following line:
"C:Program FilesNotepad++uninstall.exe" /SJanuary 27, 2015 at 7:00 pm #10986MbrodinParticipantThanks Doug
I will keep that in mind, using the syntax outside BP and make it work, before using the syntax in BP.
Thanks for quick answer 🙂
/Mats
January 28, 2015 at 9:29 pm #10974dougModeratorTo close the loop on this, I did a bit more testing/research.
First, there was a missing ‘where’ clause in your command. So, the proper command would be:
WMIC product WHERE name="Notepad++" call uninstall /nointeractiveIf we execute the new command *with* the WHERE clause, we then get the following output:
No Instance(s) Available.Essentially that means that nothing where name=”Notepad++” was found. So, I ran another query:
wmic product get nameThe list turned up *without* Notepad++, which explains the previous “No Instance(s) Available” message. It seems that the Notepad++ installer does not register itself with the system in such a way that we can use WMIC to uninstall it.
-
AuthorPosts
- You must be logged in to reply to this topic.