Setup Project Not Removing Previous Version

Z

zacks

I have created numerous Setup projects with Visual Studio 2005. I have
a current solution that is fairly complex with numerous projects. It
contains two primary applications so there are two setup projects. The
setup project for the first application works fine, it removes the
previous version automatically just fine as long as I have incremented
the Version property. But the more recent Setup project for the second
application refuses to remove the previous version. All properties
related to this feature are identical. DetectNewerInstallation is
True. RemovePreviousVersion is True. I increment the Version and it
asks me if I want to update the ProductCode and I always answer Yes.
Install the app, go to AddRemove programs and now there are two
versions installed, both the previous one and the new one.

I have done web searches on this and cannot find any solution. Does
anyone have any ideas?
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

I have created numerous Setup projects with Visual Studio 2005. I have
a current solution that is fairly complex with numerous projects. It
contains two primary applications so there are two setup projects. The
setup project for the first application works fine, it removes the
previous version automatically just fine as long as I have incremented
the Version property. But the more recent Setup project for the second
application refuses to remove the previous version. All properties
related to this feature are identical. DetectNewerInstallation is
True. RemovePreviousVersion is True. I increment the Version and it
asks me if I want to update the ProductCode and I always answer Yes.
Install the app, go to AddRemove programs and now there are two
versions installed, both the previous one and the new one.

I have done web searches on this and cannot find any solution. Does
anyone have any ideas?

Maybe they have different product codes or upgrade codes. That might prevent
the new version to find the old one.
 
Z

zacks

Hi,









Maybe they have different product codes or upgrade codes. That might prevent
the new version to find the old one.

I have never messed with the Upgade Code. The Product Code gets reset
every time I change the Version.
 
S

Santiago Perez

Zak, I realize this is many years ago and you probably don't remember the resolution but I'm maintaining an app that's doing the same exact thing. Any pointers?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top