Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / October 2004

Tip: Looking for answers? Try searching our database.

Remove Previous Version problem with Windows Installer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Hanna - 14 Aug 2004 18:47 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.