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 2 1620
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
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: AcRj2R0HQUnAmZ2 ASfSbISxEL6E5Cw == X-WBNR-Posting-Host: 202.180.83.6 From: "=?Utf-8?B?TWFyaw==?=" <Ma**@discussio ns.microsoft.co m> Subject: Application Uninstaller Date: Tue, 6 Jul 2004 21:16:01 -0700 Lines: 10 Message-ID: <E7************ *************** *******@microso ft.com> 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.publi c.dotnet.genera l NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 127.0.0.1 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGXA03.phx .gbl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:138789 X-Tomcat-NG: microsoft.publi c.dotnet.genera l
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 prevented me from
installing a newer version.
Now I'm getting a new error:
"This advertised application will not be installed because
it might be unsafe. Contact your administrator to change
|
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 from the "cache" hardly takes any time
A basic pattern used to get the data from disk, or from cache is this
data = getDataFromCache("mydata"
if data = "" the
data = getDataFromDisk(
storeDataInCache(data, "mydata"
end i
|
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 only the
packages I wanted). I am now trying to uninstall and reinstall again.
I have tried the following:
1. Use the universal uninstaller. Hangs when I go to uninstall
products. I suspect the problem is somewhere in the oracle inventory
|
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 information is necessary and this application cannot run.
Please run setup to correct this problem"
I have trauled accross the deserts of the internet and tried some of the
registry fixes and have not been able to solve this problem.
A spark...
|
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 files. The question is how can I create
a uninstaller included in the project which will uninstall the project,
which will delete the registry values create, as well as the text files?
Thanks in advanced,
| |
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 having to use the windows control panel.
Can someone please show me how to do this iin VB.net?
Thanks,
Mark
|
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
|
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 SpecialFolder.ApplicationData (C:\Documents and
Settings\Username\Application Data) ?
Or, is there some way to get the ms installer to do this for you?
Is there some way to use Application.UserAppDataPath to ease finding
|
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 programatically using only the name of application that appears in
Control Panel -Add /Remove Programas (the product name).
Is it possible ?? Any suggestion about it ? Anyone has any ideas ?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |