invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Msiexec With a Friendly Name

I have a request from my QA team to be able to uninstall the product from the command line using Msiexec in an easy and consistent manner (IOW, without a constant changing product code). I looked here and here.

Long story short, this works:

Code: Select all

msiexec /x {GUID}
To eliminate all the other thrash, I took our {GUID} key in Uninstall; exported it; changed the GUID to 'foo'; and then imported the new key.

But this does not:

Code: Select all

msiexec /x foo
I get the error "The installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package."

Is it possible to do what we are trying to do?
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Msiexec With a Friendly Name

Hi,

I'm sorry, but I don't not fully understand what are you trying to achieve. Can you please send us the .AIP (file project) so we can investigate it for a better understanding.

Please keep in mind that when you try to uninstall a product in command line you can only use a valid {GUID} or the path of the product.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Re: Msiexec With a Friendly Name

Thanks. You answered the question in "you can only use a valid {GUID} or the path of the product." We thought there was maybe a way to uninstall the product at the command line with a generic and consistent name (vs. the every changing product GUID).
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Msiexec With a Friendly Name

You're welcome. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”