Having trouble uninstalling software with msiexec quietly
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
add a comment |
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
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
add a comment |
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
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
windows powershell windows-installer
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Jan 4 at 23:46
postanotepostanote
1,01833
1,01833
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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