Solved

Vb.net Auto-Uninstall

Posted on 2012-04-04
5
361 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

932 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now