If you want to remove a application from you’re system you can use:

msiexec /x {product_guid}
like: msiexec /x {2EAB2958-5675-4773-9BF6-2C8FB9DF9CC6}

 

If you want to install a *.msi package, but want don’t want to install the application to the default installation folder you can overwrite the TARGETDIR property, like

msiexec /i "C:\Temp\MyFirstApp.msi" TARGETDIR="D:\Programs\MyFirstApp"

But if you’re msi package is created with Microsoft Visual Studio and the property Targetplatform of the setup project is set to x86, you can’t overwrite the TARGETDIR to Program Files, when you execute the following line on a x64 machine:

msiexec /i "C:\Temp\MyFirstApp.msi" TARGETDIR="C:\Program Files"

 

The msiexec will change it back to "C:\Program Files (x86)"

 

Just so you know why the application is installed in the "C:\Program Files (x86)" folder instead of the "C:\Program Files" folder.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.