Solved

Vb.net Auto-Uninstall

Posted on 2012-04-04
5
366 Views
Last Modified: 2012-04-22
Hi,

I'm using vb.net 2010 to build a local application.

I'd like my vb.net application to automatically uninstall the previous version of itself before it installs the newer version.

I'm currently making a lot of updates and so constantly having to uninstall from the control panel to re-install again can become very repetitive.

Is this possible? I read you have to set RemovePreviousVersion = True but I can't find this option anywhere?

Thank you
0
Comment
Question by:FCapo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37807557
Are you using Visual Studio Installer (MSI) project type? Select the project in  solution explorer and then open Properties window (F4). You will see properties including RemovePreviousVersion.
0
 

Author Comment

by:FCapo
ID: 37807792
In my project settings, under the publish tab, I simply click publish now. I'm not sure if I'm using MSI or not?
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37810501
You are using ClickOnce. ClickOnce deployed apps are auto updatable (unless you choose not to). Click on Updates button on Publish tab and tick the "The application should check for updates". Then every time you publish a new version, just relaunch the app and it will show you a message that an update is available. If you click Ok, app will update itself!
0
 

Author Comment

by:FCapo
ID: 37828061
I don't really want it to check for updates, basically when I click setup I would like it to remove any previous versions before it installs the new one.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 37834400
It should be doing that automatically. You can choose to run it in online mode only so there will be no installation.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question