• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 634
  • Last Modified:

Winform deployment project does not owerrite the exiting/old files

I setup project created with Visual studio 2005 is upgraded to Visual Studio 2008 since then it does not remove the old version.

DetectedPreviousVersion and Uninstall old version properties in the installer are set to true.
each time x is incremented by one in the installer propertiese 1.1.0X  

and assembly revision number
1.0.0.1X


Thanks



0
Munawar Hussain
Asked:
Munawar Hussain
  • 3
2 Solutions
 
jedwar26Commented:
Not sure if this post will relate, but look at the suggestions in this link:

http://www.eggheadcafe.com/aspnet_answers/NETFrameworksetup/Mar2006/post26205388.asp
0
 
Snarf0001Commented:
Check a couple of things:

1 - make sure the upgrade code is the same for each version
2 - make sure the product code is different for the new version
3 - try changing the higher number on the assembly, ie instead of 1.0.0.1x, 1.0.x, as you did in the installer.

The lease significant (4th) is ignored most of the time.
0
 
Munawar HussainPrincipal Software EngineerAuthor Commented:
Hello Snarf0001,

does not matter if you increase build number of revision number .. it results same.

-Thanks
0
 
Munawar HussainPrincipal Software EngineerAuthor Commented:
Well,

To get it working, it needs following changes.

1- increase the assembly version by one (does not matter what digit you increase major, minor, build or revision number)
2- Increase the file version (same as in 1)
3- Increase version in installer project (deployment project)

if any of these is same as was in last installed version then it would not overwrite the existing files

Thanks for your replies...

0
 
Munawar HussainPrincipal Software EngineerAuthor Commented:
Thanks for quick replies...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now