I have a setup project for my VB.Net application with the
RemovePreviousVersion property set to True. When I want to publish a new
version of the application, I change the version and say Yes to changing the
product and package codes. I do a "Just for me" install for the new version
and it installs just fine. However, the old version is not removed. It is
still in the Add/Remove Programs list.
Can anyone tell me what am I doing wrong?
Thanks
Steve
Kevin Yu [MSFT] - 16 Aug 2004 08:03 GMT
Hi Steve,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that the previous version of your
application is still on the machine even you have set RemovePreviousVersion
property to True. If there is any misunderstanding, please feel free to let
me know.
Based on my research, when RemovePreviousVersion property has been set to
true. We have also to ensure the value of UpgradeCode in both versions.
The installer checks UpgradeCode and ProductCode properties to determine
whether the earlier version should be removed. The UpgradeCode must be the
same for both versions; the ProductCode must be different.
HTH.
Kevin Yu

Signature
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Steve Hanna - 16 Aug 2004 13:57 GMT
Your understanding of my issue is correct. The upgrade code is the same for
both versions. The product codes are different.
Thanks.
Steve
> Hi Steve,
>
[quoted text clipped - 17 lines]
> "This posting is provided "AS IS" with no warranties, and confers no
> rights."
Carlos J. Quintero [MVP] - 17 Aug 2004 09:58 GMT
I think that searching this issue in Google some weeks ago I discovered that
there is a bug or issue regarding this: a "Just for me" upgrade can not
remove a previous version if it was installed for Everybody. Is this your
case?

Signature
Carlos J. Quintero (Visual Developer - .NET MVP)
FAQs, Knowledge Base, Files, Docs, Articles, Utilities, etc. for .NET
addins:
http://groups.yahoo.com/group/vsnetaddin/ (free join)
> Your understanding of my issue is correct. The upgrade code is the same for
> both versions. The product codes are different.
>
> Thanks.
>
> Steve
N Thorell - 25 Oct 2004 09:31 GMT
When working with a (C#) setup project in Visual Studio, where and how can I
set the 'RemovePreviousVersion' property? And the 'UpgradeCode' and
'ProductCode' properties?
I have been able to make an installation from the resulting .msi file, but
how do I set all the options for automatically removing previous
installations?
> I have a setup project for my VB.Net application with the
> RemovePreviousVersion property set to True. When I want to publish a new
[quoted text clipped - 8 lines]
>
> Steve
N Thorell - 25 Oct 2004 11:39 GMT
The "RemovePreviousVersion" property is not available under "Deployment
Properties". In fact, there are almost no properties available on that page.
> When working with a (C#) setup project in Visual Studio, where and how can I
> set the 'RemovePreviousVersion' property? And the 'UpgradeCode' and
[quoted text clipped - 15 lines]
> >
> > Steve
N Thorell - 25 Oct 2004 16:35 GMT
Finally, by pure luck, I got the 'Properties' window for the Setup project.
But what are the conditions for this to happen?
> The "RemovePreviousVersion" property is not available under "Deployment
> Properties". In fact, there are almost no properties available on that page.
[quoted text clipped - 18 lines]
> > >
> > > Steve
N Thorell - 26 Oct 2004 11:47 GMT
The trick seems to be to click the 'Properties' tab, and NOT the menu item
"View/Property Pages", as erroneously described in the guide.
> Finally, by pure luck, I got the 'Properties' window for the Setup project.
> But what are the conditions for this to happen?
[quoted text clipped - 21 lines]
> > > >
> > > > Steve