Uninstall (add/remove programs) action?

I have a build for an application framework.  Once the build completes successfully I wanto to uninstall the previous version then install the new version . . . automagically! 

I can't find any actions for "Add/Remove" or "Uninstall".  Does anyone know of a way to do this? 

Hi Matt,

You should be able to install/uninstall .msi files by writing some script code using WMI.

[Automise have these actions built in though: Windows Installer - Install, Windows Installer - Uninstall, Windows Installer - Reinstall.]

hth.
.t8

It’s actually really easy, use msiexec.exe:

msiexec /Option (Required Parameter) [Optional Parameter]

Install Options
(/package | /i) (Product.msi)
Installs or configures a product
/a (Product.msi)
Administrative install - Installs a product on the network
/j(u|m) (Product.msi> [/t (Transform List)] [/g (Language ID)]
Advertises a product - m to all users, u to current user
(/uninstall | /x) (Product.msi | ProductCode)
Uninstalls the product

Steve