Greg102
Posts: 6
Joined: Tue Sep 02, 2008 10:26 am

update or unistallation

Hi

Simple question:
Is it possible to know is update or unistallation?

Details:
When I change Product Code I have update (installed previous version is automatically unistalled and in this place is installed current version).
In automatically unistall process I don't want unistall some files because I know that this is update.
But when user unistall aplication from "Control Panel" "Add Remove program" I want unistall this files.

Regards
Greg102
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: update or unistallation

Hi,
Is it possible to know is update or unistallation?
You can find out if an update is performed by using two properties:
1) OLDPRODUCTS is set in the upgraded package if it found older versions on the machine
2) UPGRADINGPRODUCTCODE is set in the package which is being uninstalled by an update
In automatically unistall process I don't want unistall some files because I know that this is update.
Please note that the User Guide contains the Preserve File on Install how-to which explains an approach for what you need.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”