Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
GeneralRe: Deployment project: adding uninstall icon Pin
Mazdak3-Feb-04 23:31
Mazdak3-Feb-04 23:31 
GeneralRe: Deployment project: adding uninstall icon Pin
Radoslav Bielik3-Feb-04 23:43
Radoslav Bielik3-Feb-04 23:43 
GeneralRe: Deployment project: adding uninstall icon Pin
Heath Stewart4-Feb-04 3:55
protectorHeath Stewart4-Feb-04 3:55 
GeneralRe: Deployment project: adding uninstall icon Pin
Heath Stewart4-Feb-04 4:00
protectorHeath Stewart4-Feb-04 4:00 
GeneralRe: Deployment project: adding uninstall icon Pin
Mazdak4-Feb-04 5:27
Mazdak4-Feb-04 5:27 
GeneralRe: Deployment project: adding uninstall icon Pin
Heath Stewart4-Feb-04 5:29
protectorHeath Stewart4-Feb-04 5:29 
GeneralRe: Deployment project: adding uninstall icon Pin
Radoslav Bielik4-Feb-04 20:58
Radoslav Bielik4-Feb-04 20:58 
GeneralRe: Deployment project: adding uninstall icon Pin
Heath Stewart5-Feb-04 4:14
protectorHeath Stewart5-Feb-04 4:14 
Sorry for the misunderstanding.

Windows Installer recommends that you DO NOT add an Uninstall shortcut to the start menu. In fact, IIRC, this violates Windows Installer guidelines and you cannot certify your application for Windows.

If this is not a big deal, you could do so by making a shortcut to msiexec.exe and use "/x [ProductCode]" as the command-line parameter.

Unfortunately, the crappy Windows Installer project in VS.NET won't let you do this (as well as MANY other things, which is why I never use it and either use Wise for Windows Installer or from scratch with Orca). You need to download the Windows Installer SDK, part of the Platform SDK, which includes an install for a handy utility called Orca. This opens the MSI package as it is - a relational database. You can find more information about the Platfrom SDK from http://msdn.microsoft.com/platformsdk[^].

Once you do this, you need to enter the following information into the Shortcut table:
(Column: Description)
Shortcut: Unique key - type anything
Directory_: Key to a directory in the Directory table for your program group
Name: Name of the shortcut (i.e., title)
Component_: Key to a component in the Component table for which this shortcut is associated
Target: [SystemFolder]msiexec.exe
Arguments: /x [ProductCode]
Description: Description of the shortcut
Hotkey: Leave empty
Icon_: Key to an icon to use in the Icon table
IconIndex: 0-based index for icon if Icon_ points to an executable
ShowCmd: 1 for normal, 3 for maximized, 7 minimized/not active
If you like, I could also probably send you Orca since the EULA seems to allow it so long as I send you the entire installation (which isn't bit). If you would rather me do that, send me a direct email (you can get my email from the message sent to you if you configured your settings for notification of replies).

 

Microsoft MVP, Visual C#
My Articles
GeneralProblem with arrays... Pin
Andres Coder3-Feb-04 21:46
Andres Coder3-Feb-04 21:46 
GeneralRe: Problem with arrays... Pin
Radoslav Bielik3-Feb-04 21:54
Radoslav Bielik3-Feb-04 21:54 
GeneralRe: Problem with arrays... Pin
Andres Coder4-Feb-04 3:29
Andres Coder4-Feb-04 3:29 
GeneralRe: Problem with arrays... Pin
Andres Coder4-Feb-04 3:29
Andres Coder4-Feb-04 3:29 
GeneralRe: Problem with arrays... Pin
Heath Stewart4-Feb-04 3:53
protectorHeath Stewart4-Feb-04 3:53 
GeneralRe: Problem with arrays... Pin
Andres Coder4-Feb-04 23:14
Andres Coder4-Feb-04 23:14 
GeneralRe: Problem with arrays... Pin
Jeff Varszegi12-Mar-04 9:00
professionalJeff Varszegi12-Mar-04 9:00 
QuestionRecord types in C# ? Pin
Andres Coder3-Feb-04 19:59
Andres Coder3-Feb-04 19:59 
AnswerRe: Record types in C# ? Pin
John Kuhn3-Feb-04 20:18
John Kuhn3-Feb-04 20:18 
GeneralRe: Record types in C# ? Pin
Heath Stewart3-Feb-04 20:37
protectorHeath Stewart3-Feb-04 20:37 
GeneralRe: Record types in C# ? Pin
John Kuhn3-Feb-04 20:43
John Kuhn3-Feb-04 20:43 
GeneralRe: Record types in C# ? Pin
Andres Coder3-Feb-04 20:45
Andres Coder3-Feb-04 20:45 
GeneralRe: Record types in C# ? Pin
Heath Stewart4-Feb-04 3:29
protectorHeath Stewart4-Feb-04 3:29 
AnswerRe: Record types in C# ? Pin
Heath Stewart3-Feb-04 20:32
protectorHeath Stewart3-Feb-04 20:32 
GeneralRe: Record types in C# ? Pin
Andres Coder3-Feb-04 20:48
Andres Coder3-Feb-04 20:48 
Generalkernel process on c# Pin
laurentz_wei3-Feb-04 18:36
laurentz_wei3-Feb-04 18:36 
GeneralRe: kernel process on c# Pin
Heath Stewart3-Feb-04 20:21
protectorHeath Stewart3-Feb-04 20:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.