Uninstall 3rd party applications

BatchPatch Forums Home Forums BatchPatch Support Forum Uninstall 3rd party applications

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9128
    Mbrodin
    Participant

    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

    #10985
    doug
    Moderator

    Mats – 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 /nointeractive

    It did *not* uninstall Notepad++ and instead gave the following output:

    ERROR:
    Description = Invalid query

    That 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" /S

    #10986
    Mbrodin
    Participant

    Thanks 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

    #10974
    doug
    Moderator

    To 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 /nointeractive

    If 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 name

    The 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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.