Having trouble uninstalling software with msiexec quietly












0















I want to use msiexec to uninstall some programs without going through confimation boxes.



the problem is when I use this command



msiexec.exe /x "{product id}" /quiet


then nothing happens and the program does not uninstall.



when I use



msiexec.exe /x "{product id}" /passive


I see the progress bar appears and disappears quickly but the program does not actually uninstall.










share|improve this question























  • The programs im working with have msiexec.exe in their uninstallstring

    – mython paster
    Jan 4 at 21:01













  • @postanote mentions the quotation marks; to the best of my understanding, you cannot use them at all if you are providing the product ID that is enclosed in French braces. However, I think your probably really is that you are suppressing the interface and the uninstall is showing an error. I would suggest trying the command without the attempt to keep it silent, so that you can see the error (since it wants interaction, it won't remove the program when you do so.) Then, use /qb instead of /quiet, so you can see basic progress, or /qr for reduced interaction.

    – Debra
    Jan 9 at 17:57
















0















I want to use msiexec to uninstall some programs without going through confimation boxes.



the problem is when I use this command



msiexec.exe /x "{product id}" /quiet


then nothing happens and the program does not uninstall.



when I use



msiexec.exe /x "{product id}" /passive


I see the progress bar appears and disappears quickly but the program does not actually uninstall.










share|improve this question























  • The programs im working with have msiexec.exe in their uninstallstring

    – mython paster
    Jan 4 at 21:01













  • @postanote mentions the quotation marks; to the best of my understanding, you cannot use them at all if you are providing the product ID that is enclosed in French braces. However, I think your probably really is that you are suppressing the interface and the uninstall is showing an error. I would suggest trying the command without the attempt to keep it silent, so that you can see the error (since it wants interaction, it won't remove the program when you do so.) Then, use /qb instead of /quiet, so you can see basic progress, or /qr for reduced interaction.

    – Debra
    Jan 9 at 17:57














0












0








0








I want to use msiexec to uninstall some programs without going through confimation boxes.



the problem is when I use this command



msiexec.exe /x "{product id}" /quiet


then nothing happens and the program does not uninstall.



when I use



msiexec.exe /x "{product id}" /passive


I see the progress bar appears and disappears quickly but the program does not actually uninstall.










share|improve this question














I want to use msiexec to uninstall some programs without going through confimation boxes.



the problem is when I use this command



msiexec.exe /x "{product id}" /quiet


then nothing happens and the program does not uninstall.



when I use



msiexec.exe /x "{product id}" /passive


I see the progress bar appears and disappears quickly but the program does not actually uninstall.







windows powershell windows-installer






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 4 at 20:29









mython pastermython paster

11




11













  • The programs im working with have msiexec.exe in their uninstallstring

    – mython paster
    Jan 4 at 21:01













  • @postanote mentions the quotation marks; to the best of my understanding, you cannot use them at all if you are providing the product ID that is enclosed in French braces. However, I think your probably really is that you are suppressing the interface and the uninstall is showing an error. I would suggest trying the command without the attempt to keep it silent, so that you can see the error (since it wants interaction, it won't remove the program when you do so.) Then, use /qb instead of /quiet, so you can see basic progress, or /qr for reduced interaction.

    – Debra
    Jan 9 at 17:57



















  • The programs im working with have msiexec.exe in their uninstallstring

    – mython paster
    Jan 4 at 21:01













  • @postanote mentions the quotation marks; to the best of my understanding, you cannot use them at all if you are providing the product ID that is enclosed in French braces. However, I think your probably really is that you are suppressing the interface and the uninstall is showing an error. I would suggest trying the command without the attempt to keep it silent, so that you can see the error (since it wants interaction, it won't remove the program when you do so.) Then, use /qb instead of /quiet, so you can see basic progress, or /qr for reduced interaction.

    – Debra
    Jan 9 at 17:57

















The programs im working with have msiexec.exe in their uninstallstring

– mython paster
Jan 4 at 21:01







The programs im working with have msiexec.exe in their uninstallstring

– mython paster
Jan 4 at 21:01















@postanote mentions the quotation marks; to the best of my understanding, you cannot use them at all if you are providing the product ID that is enclosed in French braces. However, I think your probably really is that you are suppressing the interface and the uninstall is showing an error. I would suggest trying the command without the attempt to keep it silent, so that you can see the error (since it wants interaction, it won't remove the program when you do so.) Then, use /qb instead of /quiet, so you can see basic progress, or /qr for reduced interaction.

– Debra
Jan 9 at 17:57





@postanote mentions the quotation marks; to the best of my understanding, you cannot use them at all if you are providing the product ID that is enclosed in French braces. However, I think your probably really is that you are suppressing the interface and the uninstall is showing an error. I would suggest trying the command without the attempt to keep it silent, so that you can see the error (since it wants interaction, it won't remove the program when you do so.) Then, use /qb instead of /quiet, so you can see basic progress, or /qr for reduced interaction.

– Debra
Jan 9 at 17:57










1 Answer
1






active

oldest

votes


















0














Are you trying to do this locally only or remotely?



Unless you are doing this in the power shell consolehost, you really should not need the quotes.



Yet, I'd use this command as a try as well...



msiexec /qn /x '{ProductId}'


If you are doing this in one of the editors, then you need to sue the Start-Process cmdlet.



https://powershellexplained.com/2016-10-21-powershell-installing-msi-files


If it is remote, see this discussion.




https://social.technet.microsoft.com/Forums/scriptcenter/en-US/bee082be-701d-4ef2-80b1-b9541446e2f6/powershell-20-invokecommand-remote-msiexec-uninstall







share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1390678%2fhaving-trouble-uninstalling-software-with-msiexec-quietly%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Are you trying to do this locally only or remotely?



    Unless you are doing this in the power shell consolehost, you really should not need the quotes.



    Yet, I'd use this command as a try as well...



    msiexec /qn /x '{ProductId}'


    If you are doing this in one of the editors, then you need to sue the Start-Process cmdlet.



    https://powershellexplained.com/2016-10-21-powershell-installing-msi-files


    If it is remote, see this discussion.




    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/bee082be-701d-4ef2-80b1-b9541446e2f6/powershell-20-invokecommand-remote-msiexec-uninstall







    share|improve this answer




























      0














      Are you trying to do this locally only or remotely?



      Unless you are doing this in the power shell consolehost, you really should not need the quotes.



      Yet, I'd use this command as a try as well...



      msiexec /qn /x '{ProductId}'


      If you are doing this in one of the editors, then you need to sue the Start-Process cmdlet.



      https://powershellexplained.com/2016-10-21-powershell-installing-msi-files


      If it is remote, see this discussion.




      https://social.technet.microsoft.com/Forums/scriptcenter/en-US/bee082be-701d-4ef2-80b1-b9541446e2f6/powershell-20-invokecommand-remote-msiexec-uninstall







      share|improve this answer


























        0












        0








        0







        Are you trying to do this locally only or remotely?



        Unless you are doing this in the power shell consolehost, you really should not need the quotes.



        Yet, I'd use this command as a try as well...



        msiexec /qn /x '{ProductId}'


        If you are doing this in one of the editors, then you need to sue the Start-Process cmdlet.



        https://powershellexplained.com/2016-10-21-powershell-installing-msi-files


        If it is remote, see this discussion.




        https://social.technet.microsoft.com/Forums/scriptcenter/en-US/bee082be-701d-4ef2-80b1-b9541446e2f6/powershell-20-invokecommand-remote-msiexec-uninstall







        share|improve this answer













        Are you trying to do this locally only or remotely?



        Unless you are doing this in the power shell consolehost, you really should not need the quotes.



        Yet, I'd use this command as a try as well...



        msiexec /qn /x '{ProductId}'


        If you are doing this in one of the editors, then you need to sue the Start-Process cmdlet.



        https://powershellexplained.com/2016-10-21-powershell-installing-msi-files


        If it is remote, see this discussion.




        https://social.technet.microsoft.com/Forums/scriptcenter/en-US/bee082be-701d-4ef2-80b1-b9541446e2f6/powershell-20-invokecommand-remote-msiexec-uninstall








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 4 at 23:46









        postanotepostanote

        1,01833




        1,01833






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1390678%2fhaving-trouble-uninstalling-software-with-msiexec-quietly%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Plaza Victoria

            Puebla de Zaragoza

            Musa