On 10/29/05, Tomasz Chmielewski <[EMAIL PROTECTED]> wrote:
> JT schrieb:
> > Le Jeudi 27 Octobre 2005 17:24, Kristofer Kiik a écrit :
> >
> >>As MSI installer generates product codes that you later need to
> >>uninstall the product, it would be a nice feature to have wpkg.js
> >>lookup the product code by product name.
> >>
> >>For example, currently when we install Adobe Reader 7.0.5, English,
> >>we will get the "product code":
> >>{AC76BA86-7AD7-1033-7B44-A70500000002}. This code is always
> >>different through versions and languages. So it is a real pain in
> >>the ass when creating silent installers for upgrading etc.
> >>
> >>The remove command in the case of the above answer would be:
> >><remove cmd='MsiExec.exe /q
> >>/x{AC76BA86-7AD7-1033-7B44-A70500000002}' />
> >>
> >
> > Is there a way to know this code before actually installing a MSI
> > package ?

It is theoretically generated by msiexec during install time. It
probably uses product name, version, locale etc.

> look up into our database on wpkg.org? :)

that would be an overkill. Looking it up from registry should suffice.

The wpkg .js already knows the product name (from "Uninstall String").
It already loops through the registry entries to find the product ID
(function scanUninstallKeys). All that needs to be added, is to be
able to use the aNames[i] in this function in the msiexec uninstall
command.

Should be trivial.

Unfortunately i know nearly nothing about windows scripting, so...

cheers,
Kristofer


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
wpkg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wpkg-users

Reply via email to