By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,571 Members | 994 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,571 IT Pros & Developers. It's quick & easy.

Install / Uninstall Applications

P: n/a
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
Share this Question
Share on Google+
9 Replies


P: n/a
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********@yahoo.com> wrote in message
news:u8**************@tk2msftngp13.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

P: n/a
* "VJ" <vi********@yahoo.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

P: n/a
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********@yahoo.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

P: n/a
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********@yahoo.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

P: n/a
* "VJ" <vi********@yahoo.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

P: n/a
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********@yahoo.com> scripsit: [snip] Installation/Uninstallation should be done via the corresponding
control panel.

[snip]
Nov 20 '05 #7

P: n/a
* "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

P: n/a
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

P: n/a
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********@yahoo.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.public.dotnet.languages.vb
NNTP-Posting-Host: adsl-68-90-217-174.dsl.rcsntx.swbell.net 68.90.217.174
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!tk2msftngp13.
phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:174269
X-Tomcat-NG: microsoft.public.dotnet.languages.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 discussion thread is closed

Replies have been disabled for this discussion.