[wpkg-users] determining MSIEXEC product code?

Rainer Meier r.meier at wpkg.org
Thu Apr 10 16:30:58 CEST 2008


Hi Adam,

Adam Williams wrote:
> I have a piece of software installed with WPKG and I want to uninstall
> it, and the uninstall instructions from app deploy say to uninstall it with:
> 
> MSIEXEC.EXE /X {PRODUCTCODE} REMOVE=ALL /Q
> 
> but, how do I figure out what the product code of the application is?

This often causes headaches to me as well ;-)
You might read the uninstall code from the registry - see 
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall

However I hate that method - and some applications seem to change this 
code on each release - so you have to find it again. For example 
AcrobatReader is changing it on each release/update (contains the 
version number).

Therefore I recommend another way. Just use

msiexec /x path\to\software.msi /qn

Instead of the product code you specify the MSI package you used to 
install the package.

br,
Rainer



More information about the wpkg-users mailing list