Uninstall using msiexec
Posted: Tue Apr 02, 2013 12:48 pm
Hi.
We install/un-install our products using the msiexec tool.
Thus, to install: msiexec /i product.msi /quiet /log c:\temp\product_install.log
To un-install, however, we use the product code as we can not gaurenttee that we will have the original msi to un-install from. Thus, an example would be:
msiexec /X {E5B4FEEF-BB47-4B66-A863-C23E83197483} /quiet /log c:\temp\product_un-install.log
During all our testing, this has been working perfectly. Until something we stumbled across today.
If the original msi is no longer located where it was when it was installed (ie. now removed), the msiexec /X with the product code doesn't un-install. It asks for the location of the original msi. argh......
It can still be un-installed via 'Program and Features', but unfortunately we have to use msiexec.
We are using InstallAware 2012.
Thoughts ?
Patrick.
We install/un-install our products using the msiexec tool.
Thus, to install: msiexec /i product.msi /quiet /log c:\temp\product_install.log
To un-install, however, we use the product code as we can not gaurenttee that we will have the original msi to un-install from. Thus, an example would be:
msiexec /X {E5B4FEEF-BB47-4B66-A863-C23E83197483} /quiet /log c:\temp\product_un-install.log
During all our testing, this has been working perfectly. Until something we stumbled across today.
If the original msi is no longer located where it was when it was installed (ie. now removed), the msiexec /X with the product code doesn't un-install. It asks for the location of the original msi. argh......
It can still be un-installed via 'Program and Features', but unfortunately we have to use msiexec.
We are using InstallAware 2012.
Thoughts ?
Patrick.