Solved

Vb.net Auto-Uninstall

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 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

21 Experts available now in Live!

Get 1:1 Help Now