Question How to disinguish between upgrade and uninstall

rwee

New member
Joined
Aug 10, 2011
Messages
1
Programming Experience
5-10
Hi,

I'm currently developing an application and I have created a deployment project for it. Based on our requirement, the upgrade installer that I need to create should only update the files that have been changed so here's what I did.

In the Install Project (meant to be run only once), I added the following:
1. Primary output which I set the properties to Permant = False
2. Some property files

I created a separate project for the upgrade.
The upgrade project basically has the same contents as the install except that the RemovePreviousVersion property is set to true and the version number is different. Basically I had excluded all files by default.

Here's the problem:
When I run the upgrade installer and only the property files are to be upgraded, the executable gets uninstalled. On the other hand, when I set the Permanent property of the Primary output to true in the Install Project, when upgrade is executed and a new version of the executable exist, the old version does not get overwritten.

Can anyone point me to the right direction? I've read something about the transitive property and the condition property but I'm not sure I understood it correctly.

Sorry I forgot to mention, I'm using VS 2005

Best regards,
Raymond
 
Last edited:
Back
Top