Install / Uninstall Applications

V

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
 
J

Jose Caliente

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
 
H

Herfried K. Wagner [MVP]

* "VJ said:
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...
 
V

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
 
V

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
 
H

Herfried K. Wagner [MVP]

* "VJ said:
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...
 
P

Patrick Pirtle

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
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 said:
* "VJ" <[email protected]> scripsit: [snip]
Installation/Uninstallation should be done via the corresponding
control panel.
[snip]
 
H

Herfried K. Wagner [MVP]

* "Patrick Pirtle said:
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.
 
D

David Guyer [MS]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top