[wpkg-users] Uninstall msi packages with wmic

cleitet at gmail.com cleitet at gmail.com
Wed Jul 27 10:49:34 CEST 2011


Hi!

2011/7/27 Vincent Sneyers <vince.sneyers at gmail.com>:
...
> echo Uninstalling
> wmic product where "name like 'Java(TM) 6 Update%%'" call uninstall
>
> Wmic could find with a simple query the uninstall string and call directly
> (and silently!) the uninstaller!
> Within this sample, I'm asking to find a package starting with 'Java(TM) 6
> Update...'
>
> I don't really like batch files with WPKG. Unfortunately, with the ' " en %
> characters I'm having problems into packages.xml.
> If you find this interesting, may wpkg.js handle this natively in the
> future?
>

I just tried to install a package with 	<install cmd='cmd /c echo %% >
c:\test.txt' />, and the test.txt contained "%%", so this should work.

The approach I have used for msi files is opening the file in Orca,
peeking at the Property table, and the ProductCode entry. But this
looks even easier :)

-CL



More information about the wpkg-users mailing list