[wpkg-users] Package to do an uninstall?

Stefan Pendl stefan.pendl.71 at gmail.com
Tue Feb 7 20:22:26 CET 2012


Am 07.02.2012 19:59, schrieb Alan Adams:
>
> My question - can I create a package, or set of packages, to test for
> the presence of any of the older versions and run the appropriate msi
> to uninstall them?
>
> <check type=file condition=versionequalto ...>
>

I would do it in the following way:

Add the remove commands for the previous versions as install/upgrade 
commands to the 10.1.2 package.

<install cmd="msiexec /x ...">
   <condition>
     <check type="uninstall" condition="versionequalto" path="..." 
value="10.0.0" />
   </condition>
</install>

This will execute the command only if the registry contains the 
uninstall information of the specified version.

This requires using WPKG 1.3.0


--
Stefan P.

Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



More information about the wpkg-users mailing list