Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > RemovePerviousVersion does not appear to work!?

Reply
Thread Tools

RemovePerviousVersion does not appear to work!?

 
 
N4709L
Guest
Posts: n/a
 
      02-01-2004
We have used the Setup Wizard within our VB.NET Solution to create a
setup.exe. In the Setup properties we've set the property
RemovePreviousVersions to True. Then, when we select Project, Install from
the menu bar in the VisualStudio development environment it uninstalls the
current installation and then proceeds to install the newer version. That's
exactly what we expect to happen.

However, outside of the development environment, if we run the Setup.exe
that was generated, it complains when there's an earlier version already
installed. It gives us an error message: "Another version of this product is
already installed. Installation of this version cannot continue. To
configure or remove the existing version of this product, use Add/Remove
Programs on the Control Panel."

That's unexpected! Indeed, what we had hoped would happen is that the option
RemovePreviousVersions=True would have cause the Windows Installer to
automatically proceed to remove the current version and install the new one
without bothering the customer to use Add/Remove Programs.

Can you explain how to accomplish the automatic removal of previous
versions, so that one does not need to use Add/Remove Programs to uninstall
the prior older version of the application?

Thanks, -Ron


 
Reply With Quote
 
 
 
 
Brian Davis
Guest
Posts: n/a
 
      02-03-2004
Ron,

A quick article that covers this can be found at
http://www.knowdotnet.com/articles/autouninstall.html.

NOTE: Be sure to change the Version property of your Setup Project each time
you build. It sounds like that is what is preventing setup from
uninstalling the previous version.

Hope this solves it....

Brian Davis
www.knowdotnet.com


"N4709L" <> wrote in message
news:07fTb.32$. com...
> We have used the Setup Wizard within our VB.NET Solution to create a
> setup.exe. In the Setup properties we've set the property
> RemovePreviousVersions to True. Then, when we select Project, Install from
> the menu bar in the VisualStudio development environment it uninstalls the
> current installation and then proceeds to install the newer version.

That's
> exactly what we expect to happen.
>
> However, outside of the development environment, if we run the Setup.exe
> that was generated, it complains when there's an earlier version already
> installed. It gives us an error message: "Another version of this product

is
> already installed. Installation of this version cannot continue. To
> configure or remove the existing version of this product, use Add/Remove
> Programs on the Control Panel."
>
> That's unexpected! Indeed, what we had hoped would happen is that the

option
> RemovePreviousVersions=True would have cause the Windows Installer to
> automatically proceed to remove the current version and install the new

one
> without bothering the customer to use Add/Remove Programs.
>
> Can you explain how to accomplish the automatic removal of previous
> versions, so that one does not need to use Add/Remove Programs to

uninstall
> the prior older version of the application?
>
> Thanks, -Ron
>
>



 
Reply With Quote
 
 
 
 
N4709L
Guest
Posts: n/a
 
      02-03-2004
Thanks, Brian. That works wonderfully. And now I have another excellent Web
site to go to for assistance! knowdotnet.com!

Each time we increment the Version property in the Setup project, should we
answer Yes when it asks if we want to assign a new Product Code and Package
Code? It is the same product, so one would think the answer is No, but the
documentation isn't so clear on this point. It is also a new "package" but
only a new version of the package for this product. Thus, I'd be inclined to
answer No, but the default and recommendation is Yes!

There is an AssemblyVersion in AssemblyInfo.vb. Should we keep the two
Version numbers in sync? In other words, if the Version property of Setup is
8.1.4 Should we use:
<Assembly: AssemblyVersion("8.1.4.*")>

?

Thanks, -Ron

"Brian Davis" <> wrote in message
news:...
> Ron,
>
> A quick article that covers this can be found at
> http://www.knowdotnet.com/articles/autouninstall.html.
>
> NOTE: Be sure to change the Version property of your Setup Project each

time
> you build. It sounds like that is what is preventing setup from
> uninstalling the previous version.
>
> Hope this solves it....
>
> Brian Davis
> www.knowdotnet.com
>
>
> "N4709L" <> wrote in message
> news:07fTb.32$. com...
> > We have used the Setup Wizard within our VB.NET Solution to create a
> > setup.exe. In the Setup properties we've set the property
> > RemovePreviousVersions to True. Then, when we select Project, Install

from
> > the menu bar in the VisualStudio development environment it uninstalls

the
> > current installation and then proceeds to install the newer version.

> That's
> > exactly what we expect to happen.
> >
> > However, outside of the development environment, if we run the Setup.exe
> > that was generated, it complains when there's an earlier version already
> > installed. It gives us an error message: "Another version of this

product
> is
> > already installed. Installation of this version cannot continue. To
> > configure or remove the existing version of this product, use Add/Remove
> > Programs on the Control Panel."
> >
> > That's unexpected! Indeed, what we had hoped would happen is that the

> option
> > RemovePreviousVersions=True would have cause the Windows Installer to
> > automatically proceed to remove the current version and install the new

> one
> > without bothering the customer to use Add/Remove Programs.
> >
> > Can you explain how to accomplish the automatic removal of previous
> > versions, so that one does not need to use Add/Remove Programs to

> uninstall
> > the prior older version of the application?
> >
> > Thanks, -Ron
> >
> >

>
>



 
Reply With Quote
 
Brian Davis
Guest
Posts: n/a
 
      02-03-2004
The AssemblyVersion in AssemblyInfo.vb is for a Project, while the Version
property is for the Setup Project. You can keep them synchronized if you
want, but you may want to increment them separately. For instance, if you
did not change your Project at all, but you did change some of the files
that were included with your Setup Project or changed the directory in which
it installs, then you may want to increment the Version of the Setup Project
while leaving the AssemblyVersion of your project alone. Also keep in mind
that there may be several projects in a solution, each with their own
AssemblyVersion. These version numbers may all be different.

From what I understand about the Product and Package Codes, you should
increment them as well to insure that the older version of your app is
removed and replaced with the newer version.


Brian Davis
www.knowdotnet.com



"N4709L" <> wrote in message
news:ZQLTb.394$ y.com...
> Thanks, Brian. That works wonderfully. And now I have another excellent

Web
> site to go to for assistance! knowdotnet.com!
>
> Each time we increment the Version property in the Setup project, should

we
> answer Yes when it asks if we want to assign a new Product Code and

Package
> Code? It is the same product, so one would think the answer is No, but the
> documentation isn't so clear on this point. It is also a new "package" but
> only a new version of the package for this product. Thus, I'd be inclined

to
> answer No, but the default and recommendation is Yes!
>
> There is an AssemblyVersion in AssemblyInfo.vb. Should we keep the two
> Version numbers in sync? In other words, if the Version property of Setup

is
> 8.1.4 Should we use:
> <Assembly: AssemblyVersion("8.1.4.*")>
>
> ?
>
> Thanks, -Ron
>



 
Reply With Quote
 
N4709L
Guest
Posts: n/a
 
      02-04-2004
Thanks. That answers all my questions, and we've implemented what you've
said and it all works great! Thanks a bunch! Case closed!
-Ron

"Brian Davis" <@> wrote in message
news:OyWqn%...
> The AssemblyVersion in AssemblyInfo.vb is for a Project, while the Version
> property is for the Setup Project. You can keep them synchronized if you
> want, but you may want to increment them separately. For instance, if you
> did not change your Project at all, but you did change some of the files
> that were included with your Setup Project or changed the directory in

which
> it installs, then you may want to increment the Version of the Setup

Project
> while leaving the AssemblyVersion of your project alone. Also keep in

mind
> that there may be several projects in a solution, each with their own
> AssemblyVersion. These version numbers may all be different.
>
> From what I understand about the Product and Package Codes, you should
> increment them as well to insure that the older version of your app is
> removed and replaced with the newer version.
>
>
> Brian Davis
> www.knowdotnet.com
>
>
>
> "N4709L" <> wrote in message
> news:ZQLTb.394$ y.com...
> > Thanks, Brian. That works wonderfully. And now I have another excellent

> Web
> > site to go to for assistance! knowdotnet.com!
> >
> > Each time we increment the Version property in the Setup project, should

> we
> > answer Yes when it asks if we want to assign a new Product Code and

> Package
> > Code? It is the same product, so one would think the answer is No, but

the
> > documentation isn't so clear on this point. It is also a new "package"

but
> > only a new version of the package for this product. Thus, I'd be

inclined
> to
> > answer No, but the default and recommendation is Yes!
> >
> > There is an AssemblyVersion in AssemblyInfo.vb. Should we keep the two
> > Version numbers in sync? In other words, if the Version property of

Setup
> is
> > 8.1.4 Should we use:
> > <Assembly: AssemblyVersion("8.1.4.*")>
> >
> > ?
> >
> > Thanks, -Ron
> >

>
>



 
Reply With Quote
 
deepakdosaya deepakdosaya is offline
Junior Member
Join Date: Jul 2007
Posts: 3
 
      07-24-2007
Hi ,
I am also facing same problem and when i increased my project setup version then it is installing one more copy on my system.Can you please guide me how to solve . Thanks in advance

- Deepak

Quote:
Originally Posted by N4709L
Thanks. That answers all my questions, and we've implemented what you've
said and it all works great! Thanks a bunch! Case closed!
-Ron

"Brian Davis" <@> wrote in message
news:OyWqn%...
> The AssemblyVersion in AssemblyInfo.vb is for a Project, while the Version
> property is for the Setup Project. You can keep them synchronized if you
> want, but you may want to increment them separately. For instance, if you
> did not change your Project at all, but you did change some of the files
> that were included with your Setup Project or changed the directory in

which
> it installs, then you may want to increment the Version of the Setup

Project
> while leaving the AssemblyVersion of your project alone. Also keep in

mind
> that there may be several projects in a solution, each with their own
> AssemblyVersion. These version numbers may all be different.
>
> From what I understand about the Product and Package Codes, you should
> increment them as well to insure that the older version of your app is
> removed and replaced with the newer version.
>
>
> Brian Davis
> www.knowdotnet.com
>
>
>
> "N4709L" <> wrote in message
> news:ZQLTb.394$ y.com...
> > Thanks, Brian. That works wonderfully. And now I have another excellent

> Web
> > site to go to for assistance! knowdotnet.com!
> >
> > Each time we increment the Version property in the Setup project, should

> we
> > answer Yes when it asks if we want to assign a new Product Code and

> Package
> > Code? It is the same product, so one would think the answer is No, but

the
> > documentation isn't so clear on this point. It is also a new "package"

but
> > only a new version of the package for this product. Thus, I'd be

inclined
> to
> > answer No, but the default and recommendation is Yes!
> >
> > There is an AssemblyVersion in AssemblyInfo.vb. Should we keep the two
> > Version numbers in sync? In other words, if the Version property of

Setup
> is
> > 8.1.4 Should we use:
> > <Assembly: AssemblyVersion("8.1.4.*")>
> >
> > ?
> >
> > Thanks, -Ron
> >

>
>
 
Reply With Quote
 
deepakdosaya deepakdosaya is offline
Junior Member
Join Date: Jul 2007
Posts: 3
 
      07-25-2007
Hi Brian,
I am waiting for your reply. I am facing problem in .net setup.Please guide me. Thanks

----
Deepak


Quote:
Originally Posted by deepakdosaya
Hi ,
I am also facing same problem and when i increased my project setup version then it is installing one more copy on my system.Can you please guide me how to solve . Thanks in advance

- Deepak
 
Reply With Quote
 
cerntone cerntone is offline
Junior Member
Join Date: Aug 2007
Posts: 1
 
      08-21-2007
First , you did not mention that it then asks you to change the product code.
Yes when you change the product code you do get a new install but if you look in your control panel : add remove programs there is now two instances of your application. Can someone help me truly uninstall my previous application then install the new one?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Infragistics UltraChart Image does not appear Krushna ASP .Net 1 06-02-2005 09:29 PM
Summary text does not appear Pietro ASP .Net 0 04-12-2005 09:00 PM
EnableViewState does not appear to work for asp textboxes? John Blair ASP .Net 2 12-27-2004 06:01 PM
Icon does not appear. Brahm ASP .Net 1 11-18-2004 02:02 PM
AM PM does not appear on page Razak ASP .Net 9 07-28-2004 02:52 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57