?
Solved

Vb.net Auto-Uninstall

Posted on 2012-04-04
5
Medium Priority
?
368 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 1500 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

762 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