473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Application Uninstaller

Hello All,

I have recently developed a small application with VB.net.
What I wish to do is to add an uninstaller to the application that the user can use
to uninstall my application instead of having to use the windows control panel.
Can someone please show me how to do this iin VB.net?

Thanks,

Mark
Jul 21 '05 #1
2 1588
Microsoft smiles upon those who use their Windows Installer service and Add/Remove panel. You can do a VS.NET Setup project pretty easily for a small app.
Otherwise it is a matter of having another .exe (possibly .inf) that deletes the installed files.

"Mark" wrote:
Hello All,

I have recently developed a small application with VB.net.
What I wish to do is to add an uninstaller to the application that the user can use
to uninstall my application instead of having to use the windows control panel.
Can someone please show me how to do this iin VB.net?

Thanks,

Mark

Jul 21 '05 #2
If you are using a VS setup project to install your application, use the following steps to create a link to unistall your application.

1. In your setup project's directory, create a new uninstall.bat file.
2. In your Setup project, copy the ProductCode property (something like [12345678-1234-1234-1234-123412341234])
3. Edit the uninstall.bat so that it has one line that says:
Msiexec /x [insert product code here]
4. Add the uninstall.bat to your setup project's application folder.
5. Right-click on the uninstall.bat to create a shortcut, and then put it in the Start menu folder you want it in (in the setup project).
6. Rename the Shortcut to something like "Uninstall MyApplication"

Hope this helps,
Elizabeth Newman

--------------------
Thread-Topic: Application Uninstaller
thread-index: AcRj2R0HQUnAmZ2ASfSbISxEL6E5Cw==
X-WBNR-Posting-Host: 202.180.83.6
From: "=?Utf-8?B?TWFyaw==?=" <Ma**@discussions.microsoft.com>
Subject: Application Uninstaller
Date: Tue, 6 Jul 2004 21:16:01 -0700
Lines: 10
Message-ID: <E7**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:138789
X-Tomcat-NG: microsoft.public.dotnet.general

Hello All,

I have recently developed a small application with VB.net.
What I wish to do is to add an uninstaller to the application that the user can use
to uninstall my application instead of having to use the windows control panel.
Can someone please show me how to do this iin VB.net?

Thanks,

Mark


----
Elizabeth Newman – Visual Basic Deployment Test Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Angela | last post by:
Still having problems with my Web Setup App. I deleted the registry keys for my installer because it refused to uninstall when I ran the uninstaller, and having the previus version on my machine...
9
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data...
1
by: a153153153 | last post by:
Hi I have the following problem. Any help is greatly appreciated. I have installed Oracle Enterprise Version 9i. During installation, something went wrong and it doesnt work ( was trying to get...
1
by: firenet | last post by:
Came in one morning and found that the following message appeared only on running Access 2000, then the program shuts down, all other office 2000 applications work fine. "Required registry...
11
by: Benny | last post by:
Hello Experts, I have created a windows application using vs.net 2002 with C#, and now I need to deploy the project. The project involves adding string values to the registry and created text...
2
by: Mark | last post by:
Hello All, I have recently developed a small application with VB.net. What I wish to do is to add an uninstaller to the application that the user can use to uninstall my application instead of...
0
by: DiDoria | last post by:
Hey, Can I add an uninstaller to to my INSTALLED project and make en hyperlink to it in mij program files? I'm using VS 2005 2.0 framework thx
4
by: - HAL9000 | last post by:
When un-installing an application... Is it normal practice to write a special program that erases all the files and folders for all the users of an application that reads and writes to...
3
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi anyone, I have installed a winforms application vs 2005. It appears in Control Panel -Add / Remove Programs. I have another application .NET and I want uninstall the application installed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.