473,543 Members | 2,497 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Install / Uninstall Applications

VJ
I am deploying a Package having applications developed using VB.NET and
VS.NET 2003. I am using the Packaging feature provided with the
VisualStudio. I can use the package to creates shortcuts for all my
application executables. Now to Uninstall this package I have to make the
user go to Add/Remove programs everytime. The users are requesting that if
they can have a uninstall option as part of the application menus... How do
I provide this?

Thanks
VJ
Nov 20 '05 #1
9 6316
this is like commiting suicide. You can't delete the program files, from
inside the application, they are locked
What you need to do is to trigger the Application Add/Remove Applet (in
control panel) and then immediately shell out ot the
program so it can delete the files.

jc
"VJ" <vi********@yah oo.com> wrote in message
news:u8******** ******@tk2msftn gp13.phx.gbl...
I am deploying a Package having applications developed using VB.NET and
VS.NET 2003. I am using the Packaging feature provided with the
VisualStudio. I can use the package to creates shortcuts for all my
application executables. Now to Uninstall this package I have to make the
user go to Add/Remove programs everytime. The users are requesting that if
they can have a uninstall option as part of the application menus... How do I provide this?

Thanks
VJ

Nov 20 '05 #2
* "VJ" <vi********@yah oo.com> scripsit:
I am deploying a Package having applications developed using VB.NET and
VS.NET 2003. I am using the Packaging feature provided with the
VisualStudio. I can use the package to creates shortcuts for all my
application executables. Now to Uninstall this package I have to make the
user go to Add/Remove programs everytime. The users are requesting that if
they can have a uninstall option as part of the application menus... How do


I /would not/ provide that, even if users like that.
Installation/Uninstallation should be done via the corresponding control
panel. I don't understand why users are not able to open this panel...

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
VJ
Oh Ohh.. no no, sorry I think my question was misleading... I want to
provide a uninstall option as Part of Application Menu Like below,
Start -> Programs - MyPackage -> App1
-> App2
-> Uninstall My
Package

Hope I am clear this time

VJ

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:bu******** ****@ID-208219.news.uni-berlin.de...
* "VJ" <vi********@yah oo.com> scripsit:
I am deploying a Package having applications developed using VB.NET and
VS.NET 2003. I am using the Packaging feature provided with the
VisualStudio. I can use the package to creates shortcuts for all my
application executables. Now to Uninstall this package I have to make the user go to Add/Remove programs everytime. The users are requesting that if they can have a uninstall option as part of the application menus... How
do
I /would not/ provide that, even if users like that.
Installation/Uninstallation should be done via the corresponding control
panel. I don't understand why users are not able to open this panel...

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #4
VJ
can any one help me with this?

Oh Ohh.. no no, sorry I think my question was misleading... I want to
provide a uninstall option as Part of Application Menu Like below,
Start -> Programs - MyPackage -> App1
-> App2
-> Uninstall My
Package

Hope I am clear this time

VJ
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:bu******** ****@ID-208219.news.uni-berlin.de...
* "VJ" <vi********@yah oo.com> scripsit:
I am deploying a Package having applications developed using VB.NET and VS.NET 2003. I am using the Packaging feature provided with the
VisualStudio. I can use the package to creates shortcuts for all my
application executables. Now to Uninstall this package I have to make the user go to Add/Remove programs everytime. The users are requesting
that
if they can have a uninstall option as part of the application menus...
How do

I /would not/ provide that, even if users like that.
Installation/Uninstallation should be done via the corresponding control
panel. I don't understand why users are not able to open this panel...

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


Nov 20 '05 #5
* "VJ" <vi********@yah oo.com> scripsit:
can any one help me with this?

Oh Ohh.. no no, sorry I think my question was misleading... I want to
provide a uninstall option as Part of Application Menu Like below,
Start -> Programs - MyPackage -> App1
-> App2
-> Uninstall My


That's how I understood it...

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #6
Herfried -

As a new programmer, I'd like to ask for some clarification
on the pros/cons of providing an app-specific uninstall versus
using Control Panel. Are there things happening "behind the
scenes" with CP? Or, is it to maintain a consistent method
cross-application? TIA

VJ wrote:
can any one help me with this?

Oh Ohh.. no no, sorry I think my question was misleading... I want to provide a uninstall option as Part of Application Menu Like below,
Start -> Programs - MyPackage -> App1
-> App2
-> Uninstall My Package

Hope I am clear this time

VJ
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in
message news:bu******** ****@ID-208219.news.uni-berlin.de...
* "VJ" <vi********@yah oo.com> scripsit: [snip] Installation/Uninstallation should be done via the corresponding
control panel.

[snip]
Nov 20 '05 #7
* "Patrick Pirtle" <pap at skilling dot com> scripsit:
As a new programmer, I'd like to ask for some clarification
on the pros/cons of providing an app-specific uninstall versus
using Control Panel. Are there things happening "behind the
scenes" with CP? Or, is it to maintain a consistent method
cross-application? TIA


IMO it's recommended to avoid such a shortcut for consistency between
all applications /and/ to make installing/uninstalling applications
easier by providing one central place for installing/uninstalling.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #8
Consistency is a GOOD thing. Thanks for your
advice.

Herfried K. Wagner [MVP] wrote:
* "Patrick Pirtle" <pap at skilling dot com> scripsit:
As a new programmer, I'd like to ask for some clarification
on the pros/cons of providing an app-specific uninstall versus
using Control Panel. Are there things happening "behind the
scenes" with CP? Or, is it to maintain a consistent method
cross-application? TIA
IMO it's recommended to avoid such a shortcut for consistency

between all applications /and/ to make installing/uninstalling applications
easier by providing one central place for installing/uninstalling.

Nov 20 '05 #9
Arguments of consistency of discovery aside, if you still want the
Uninstall in your Start menu, then here are some steps you can use to make
it work...
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"

That should do it.

This will uninstall the applicatoin using the same mechanism as Add/Remove
programs
---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "VJ" <vi********@yah oo.com>
Subject: Install / Uninstall Applications
Date: Mon, 19 Jan 2004 15:48:10 -0600
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <u8************ **@tk2msftngp13 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.langua ges.vb
NNTP-Posting-Host: adsl-68-90-217-174.dsl.rcsntx. swbell.net 68.90.217.174
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!TK2 MSFTNGP08.phx.g bl!tk2msftngp13 .
phx.gblXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:174269
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb

I am deploying a Package having applications developed using VB.NET and
VS.NET 2003. I am using the Packaging feature provided with the
VisualStudio . I can use the package to creates shortcuts for all my
application executables. Now to Uninstall this package I have to make the
user go to Add/Remove programs everytime. The users are requesting that if
they can have a uninstall option as part of the application menus... How do
I provide this?

Thanks
VJ


Nov 20 '05 #10

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

Similar topics

3
20635
by: CMan | last post by:
Hi, We are currently trying to install .Net Framework v.1.1 on a server which already has v1.0. We are receiving the following error. Error 1704.An installation for Microsoft .NET Framework SDK (English) is currently suspended. You must undo the changes made by that installation to continue. Do you want to undo those changes?
3
3894
by: Analyst | last post by:
Is it possible to install DB2 CAE v5.2 using a response file ? From one of IBMs tech article, I found that the IBM DB2 Universal DB can be installed using a response file. My objective it to install and uninstall DB2 CAE v5.2 without user input like navigating through the wizard. Any help, suggestion are welcome. Cheers.
3
56938
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I want to test this service on a Windows Server 2003 box that doesn't have the Visual Studio Command prompt. How do I go about installing the...
2
1549
by: vbmark | last post by:
I get the following message box: Visual Basic 2005 Express Edition Beta 2- ENU Setup =================================================== Setup has detected that previous versions of the following product(s) are currently installed. Uninstall these applications before continuing with Setup. For more information, see the readme.htm...
5
2168
by: seberino | last post by:
It appears that apps distributed as Python Eggs are either a single compressed blob in site-packages directory or a directory under site-packages directory. Is this ALWAYS true? So by just erasing stuff under site-packages I can do a COMPLETE uninstallation of an Egg? Chris
0
2407
by: Nattydreadlock | last post by:
Hello, I'm having some problems installing Visual Studio 2005. I'll briefly explain what's the history of the problem here. First I installed VS 2005 beta 2. I uninstalled it later via the Windows Uninstall Tool you can download. Then I installed Visual Studio 2005 Team Edition ENU. This was a trial version for 180 days.
5
1666
by: Curious | last post by:
I installed a service program. It contained executables in the form of .exe and .dll files. And the service was started automatically after the install. Then, I UN-installed the program, but the service didn't get cleared from the "Service" panel. How can I delete this "service" from the "Services" panel?
2
2779
by: =?Utf-8?B?ZnJlZGR5?= | last post by:
I would like to uninstall app form both local and remote computers without the user knowing what is going on. I have admin right to all the computers so this is not a problem. Can this be done? Thanks Freddy
0
2298
by: JDeats | last post by:
I have a new Installer class (derived from System.Configuration.Install.Installer) and I have override methods for Install, Uninstall, Commit. The MSI builder tool I'm using is Advanced Installer, the resulting MSI successfully executes the code inside my Installer classe Install and Uninstall methods... My problem is distinguishing a patch...
0
7399
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, 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...
0
7341
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...
0
7584
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7332
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7677
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 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...
1
5258
isladogs
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...
0
4884
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3385
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...
0
3386
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.