473,837 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
2 5396
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.Unfortunatel y 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
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*******@disc ussions.microso ft.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.
Unfortunatel y 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
409
by: Dave A | last post by:
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 " 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...
7
6914
by: Danielb | last post by:
I want my application to run most of the time as just an notify icon visible in the system tray, with some dialogs windows that open if the user selects an option from the context menu on the tray icon. I've had a look at the example on code project that creates an application that runs in the system tray: http://www.codeproject.com/csharp/desktop_mail_checker.asp So I copied how the above article sets up the main form: the form's...
9
6361
by: VJ | last post by:
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...
2
1174
by: Neil Steventon | last post by:
I have packaged an application and it appears in the programs menu - which is great. How do you create an uninstall routine, Id like an Icon like a recycle bin that the user can click that uninstalls my app. Any help would be great thanks. Neil
0
1839
by: kapcreations | last post by:
I have a system tray app which gets the status of a windows service, and displays the appropriate icon for the status of the service in the systray. the problem I am having is the icon disapears under certain conditions, but the exe is still listed in the processes leading me to believe the app is still running. It fires up perfectly on boot, however if the user logs off, and then logs back in (not reboot), or if the system goes to...
4
1254
by: Ray | last post by:
Dear all, Now, I have to go to the control panel to remove the installed deployment manually. Is there any method to generate an uninstall exe for the user to remove the deployment? Thanks a lot, Ray
1
2571
by: mistral | last post by:
How to uninstall windows script encoder (screnc.exe)? There are no entries in Add/Remove programs in Control Panel. However, its a single exe, but installer create program name in windows "Start" menu > programs, as well as write application name in Registry. How to uninstall script encoder safely and correctly, include windows "Start" menu entries? Thanks,
5
6467
by: Screaming Eagles 101 | last post by:
Hi , not much trouble in making a setup project, but I'd like also an icon in All Programs to uninstall the application. I can't find a good explanation on the net so far... -- Filip http://www.ww2airborne.net/
25
4786
by: pacpalm | last post by:
I am running Windows XP Home SP2. On the lower right side of the pop-up start menu there is normally a magnifying glass (icon) next to the word "search" in between links for "help and support" and "run". My "search" icon (and thus my link) in my start menu has disappeared and I have no idea how to restore it. This search icon/link appears, though, at the top of and on the left-hand side of the window that opens when I click "my...
3
4442
by: jctwin9 | last post by:
I've been trying to clean up the installer I created using vb 2005 as best as possible to finalize a project I am working on. I have my installer deploying a .pdf file in the application folder. I want the installer to create a shortcut to that .pdf file in the start menu. I do this by right clicking on the .pdf file that I have included on the setup project in the application folder of the files system editor and making a shortcut. After that I...
0
9682
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,...
0
10874
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10566
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10623
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9398
agi2029
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...
1
7806
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7000
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5848
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4040
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.