Click here to Skip to main content
15,902,276 members
Home / Discussions / C#
   

C#

 
GeneralConverting and Calling C++ DLL in C# Pin
Vini Deep7-Apr-04 19:23
Vini Deep7-Apr-04 19:23 
GeneralRe: Converting and Calling C++ DLL in C# Pin
Heath Stewart7-Apr-04 19:30
protectorHeath Stewart7-Apr-04 19:30 
GeneralComponent based Pin
sreejith ss nair7-Apr-04 18:38
sreejith ss nair7-Apr-04 18:38 
GeneralRe: Component based Pin
Heath Stewart7-Apr-04 19:12
protectorHeath Stewart7-Apr-04 19:12 
GeneralWindows Installer condtions problem Pin
lieperik7-Apr-04 17:49
lieperik7-Apr-04 17:49 
GeneralRe: Windows Installer condtions problem Pin
Heath Stewart7-Apr-04 18:16
protectorHeath Stewart7-Apr-04 18:16 
GeneralRe: Windows Installer condtions problem Pin
lieperik7-Apr-04 18:55
lieperik7-Apr-04 18:55 
GeneralRe: Windows Installer condtions problem Pin
Heath Stewart7-Apr-04 19:05
protectorHeath Stewart7-Apr-04 19:05 
Yeah, I suppose you're right. I rarely use the Windows Installer projects in VS.NET, sorry.

You can set the condition for the file itself. Files are grouped into Components (guidelines state one executable per component, as well). Components are grouped into Features. Shortcuts are associated with a Component. So, the condition on the file is actually a condition on the Component (files don't have conditions - their components do). Since the shortcut is "tied" to that component, then the component shouldn't installed at all.

The problem is that you only want the shortcut optional, not the component. In this case, you must associate the Shortcut table entry with a new Component that uses this condition, and then associate that Component in the Features table of the MSI package. You can leave the KeyPath field of the Component table record null.

This requires that you install Orca from the Windows Installer SDK, which is part of the Platform SDK[^].

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Windows Installer condtions problem Pin
lieperik7-Apr-04 19:19
lieperik7-Apr-04 19:19 
GeneralComboBox container Pin
DougW487-Apr-04 17:14
DougW487-Apr-04 17:14 
GeneralRe: ComboBox container Pin
Heath Stewart7-Apr-04 18:20
protectorHeath Stewart7-Apr-04 18:20 
GeneralRe: ComboBox container Pin
DougW487-Apr-04 18:42
DougW487-Apr-04 18:42 
Generalmap network drive Pin
Gardar G7-Apr-04 16:05
professionalGardar G7-Apr-04 16:05 
GeneralRe: map network drive Pin
Roman Rodov7-Apr-04 17:54
Roman Rodov7-Apr-04 17:54 
GeneralRe: map network drive Pin
Heath Stewart7-Apr-04 18:00
protectorHeath Stewart7-Apr-04 18:00 
GeneralRe: map network drive Pin
Gardar G8-Apr-04 15:37
professionalGardar G8-Apr-04 15:37 
GeneralRe: map network drive Pin
Heath Stewart7-Apr-04 18:06
protectorHeath Stewart7-Apr-04 18:06 
GeneralRe: map network drive Pin
Gardar G8-Apr-04 4:17
professionalGardar G8-Apr-04 4:17 
GeneralStrange question but I need some help. Pin
KevinMac7-Apr-04 15:34
KevinMac7-Apr-04 15:34 
GeneralRe: Strange question but I need some help. Pin
Heath Stewart7-Apr-04 17:57
protectorHeath Stewart7-Apr-04 17:57 
GeneralRe: Strange question but I need some help. Pin
Jeremy Kimball8-Apr-04 7:27
Jeremy Kimball8-Apr-04 7:27 
GeneralRe: Strange question but I need some help. Pin
Heath Stewart8-Apr-04 8:18
protectorHeath Stewart8-Apr-04 8:18 
GeneralRecommended C#/.NET Book Pin
valikac7-Apr-04 12:34
valikac7-Apr-04 12:34 
GeneralRe: Recommended C#/.NET Book Pin
Heath Stewart7-Apr-04 17:53
protectorHeath Stewart7-Apr-04 17:53 
GeneralRe: Recommended C#/.NET Book Pin
Nick Parker8-Apr-04 2:40
protectorNick Parker8-Apr-04 2:40 

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.