Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Deploying an optional desktop shortcut
 

Deploying an optional desktop shortcut

How do I provide the option to add a desktop shortcut in a deployment project?

I added a Checkboxes UI in the Start group before Installation Folder.
I created a shortcut and moved it to the User's Desktop folder.
I set the Condition property of User's Desktop to CHECKBOXA1, CHECKBOXA1=1, CHECKBOXA1=Checked but none of these work.
 
There is no Condition property on the shortcut itself, or am I missing something.

a.Net.Not  Wednesday, August 24, 2005 2:45 PM

Unfortunately, Windows Installer doesn't natively support Conditions on Shortcuts. I think if the target they point to isn't installed, then the shorcut won't be as well. Otherwise, it becomes a somewhat advanced Windows Installer authoring scenario to make it work the way you'd like.

 

 

David Guyer MSFT  Monday, October 24, 2005 4:42 PM
Could you solve that problem? Because I'm having the same problem (Visual Studio .NET 2005 Professional Beta 2)
Roemer  Monday, October 24, 2005 2:42 PM

Unfortunately, Windows Installer doesn't natively support Conditions on Shortcuts. I think if the target they point to isn't installed, then the shorcut won't be as well. Otherwise, it becomes a somewhat advanced Windows Installer authoring scenario to make it work the way you'd like.

 

 

David Guyer MSFT  Monday, October 24, 2005 4:42 PM

You can use google to search for other answers

Custom Search

More Threads

• How do I Add all the files from a directory to the setup
• ClickOnce fails "Object reference not set to an instance of an object."
• Not checking for or installing SQL CE?
• Setup & Deployment -- rerun custom action
• how do I add a large quantity of Content files to my project?
• Windows Installer Always Points to Drive C On Uninstall
• Deploy multiple exe using Clickonce
• Bootstrapping Flash
• How to make single execution file
• Can't install my application