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

How do I add an Uninstall icon off the start menu in .Net?

P: n/a
How do I add an Uninstall icon off the start menu using Visual Studio .Net
Deployment project?

You can add a folder, project output, file or assembly or create a shortcut.
None of these seem to heading in the right direction. I have considered
adding a shortcut to something like "msiexec /x [MSINAME]" or similiar but
to do this I created a shortcut to an uninstall icon (?!) that I previous
added to the project and then attempted to change its target property.
Unfortunately you can then only select a file from within the project and
cannot specify ad-hoc text.

There seems to be nothing in the Help about this.

Thanks in advance.

Regards
Dave A
Nov 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Good question... I must spend some time experimenting
with this... but a couple of points...

1) should we educate the users to accomplish
uninstallation via control panel?

2) having said that, your posting seems to have the
answer in it.... how about getting the shortcut to point
to a .bat file or a .exe file with in effect does the

msiexec /x [MSINAME]

would that work?

Thanks
Nasser

-----Original Message-----
How do I add an Uninstall icon off the start menu using Visual Studio .NetDeployment project?

You can add a folder, project output, file or assembly or create a shortcut.None of these seem to heading in the right direction. I have consideredadding a shortcut to something like "msiexec /x [MSINAME]" or similiar butto do this I created a shortcut to an uninstall icon (?!) that I previousadded to the project and then attempted to change its target property.Unfortunately you can then only select a file from within the project andcannot specify ad-hoc text.

There seems to be nothing in the Help about this.

Thanks in advance.

Regards
Dave A
.

Nov 22 '05 #2

P: n/a
I received the answer from the other news group that I cross posted to. I
have included it below for all others who will walk in my footsteps...

----

Hi Dave,

Thanks for posting.

I am thinking about the following:

1. Create a "Uninstall.bat" and include the following line:

msiexec /x {your product code}

(Replace the "your product code" with your product code GUID.)

2. Add the BAT file to your application folder.

3. Add a shortcut that points to the BAT file.

4. Set the "ShowCmd" property of the shortcut to "vsdscMinimized".

Will it be acceptable? Please feel free to post here.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

"Nasser" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Good question... I must spend some time experimenting
with this... but a couple of points...

1) should we educate the users to accomplish
uninstallation via control panel?

2) having said that, your posting seems to have the
answer in it.... how about getting the shortcut to point
to a .bat file or a .exe file with in effect does the

msiexec /x [MSINAME]

would that work?

Thanks
Nasser

-----Original Message-----
How do I add an Uninstall icon off the start menu using

Visual Studio .Net
Deployment project?

You can add a folder, project output, file or assembly

or create a shortcut.
None of these seem to heading in the right direction.

I have considered
adding a shortcut to something like "msiexec /x

[MSINAME]" or similiar but
to do this I created a shortcut to an uninstall icon

(?!) that I previous
added to the project and then attempted to change its

target property.
Unfortunately you can then only select a file from

within the project and
cannot specify ad-hoc text.

There seems to be nothing in the Help about this.

Thanks in advance.

Regards
Dave A
.

Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.