HighTechTalks DotNet Forums  

Windows Installer and conditions

Visual Studio.net (IDE) microsoft.public.vsnet.ide


Discuss Windows Installer and conditions in the Visual Studio.net (IDE) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jeff Johnson
 
Posts: n/a

Default Windows Installer and conditions - 09-10-2009 , 01:24 PM






Is VS 2005, using a standard Setup project, is there no way to apply a
condition to a shortcut? Files have a Condition property that can be used to
control whether or not to install the file, but shortcuts lack this. I'm
trying to be a good citizen and ask the user whether he wants a desktop
shortcut or not (because I HATE it when apps slap an icon on my desktop
unbidden) but I can't find an obvious way to do it.

Reply With Quote
  #2  
Old   
Family Tree Mike
 
Posts: n/a

Default RE: Windows Installer and conditions - 09-10-2009 , 02:22 PM






"Jeff Johnson" wrote:

Quote:
Is VS 2005, using a standard Setup project, is there no way to apply a
condition to a shortcut? Files have a Condition property that can be used to
control whether or not to install the file, but shortcuts lack this. I'm
trying to be a good citizen and ask the user whether he wants a desktop
shortcut or not (because I HATE it when apps slap an icon on my desktop
unbidden) but I can't find an obvious way to do it.



There is a condition property on the User's Desktop folder, in the File
System View. I have not tried it but I suspect that is where you put the
condition. It would be an all or nothing condition though, if you have
multiple shortcuts.

Mike

Reply With Quote
  #3  
Old   
Jeff Johnson
 
Posts: n/a

Default Re: Windows Installer and conditions - 09-10-2009 , 04:18 PM



"Family Tree Mike" <FamilyTreeMike (AT) discussions (DOT) microsoft.com> wrote in
message news:E9F8F0E0-16C3-426A-91D6-D4ED6A3DA305 (AT) microsoft (DOT) com...

Quote:
Is VS 2005, using a standard Setup project, is there no way to apply a
condition to a shortcut? Files have a Condition property that can be used
to
control whether or not to install the file, but shortcuts lack this. I'm
trying to be a good citizen and ask the user whether he wants a desktop
shortcut or not (because I HATE it when apps slap an icon on my desktop
unbidden) but I can't find an obvious way to do it.

There is a condition property on the User's Desktop folder, in the File
System View. I have not tried it but I suspect that is where you put the
condition. It would be an all or nothing condition though, if you have
multiple shortcuts.
Sounds good in theory, but check out this fun tibdit from MSDN:
Conditions apply to files and components, not to folders. You can set a
condition on a folder, but the condition will be ignored unless the folder
is empty and its AlwaysCreate property is set to True. In this case, a dummy
component will be created for the folder and the condition will be set on
that component.

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.