Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How to condition a shortcut creation in a setup project with two applications installed?
 

How to condition a shortcut creation in a setup project with two applications installed?

Hi,
I've created two windows applications in one projectusing Visual Studio 2005. In the setup project I'm asking the user whether to install the "full version" (both applications) or the "limited version" (only app. #1), and the installation is according to the user selection. All this works fine.

The problem begins where I install the "full version" and have two shortcuts. (I forgot to mention that I have two different icons, one for each application, and that I have added two shortcuts to desktop with two icons and also two shortcuts to Program Files with two icons.)

What I want is:
-In case of "full version" - show only the icon of the full version
- In case of "limited version" - show only the icon of thelimited version

Thanks

dev
danielda  Tuesday, July 14, 2009 3:10 PM
It will depend on whether or not your two shortcuts are set up asAdvertised Shortcuts or not in the MSI package (check the Target column of the Shortcut Tablefor the two shortcuts in question). For Advertised Shortcuts you will need to ensure that the Target column for your two shortcuts don't point to the same Feature in the Feature table and that your user option to install the 'full version' or the 'limited version' only causes one of the two Features to be installed at a time.

If the shortcuts are not Advertised Shortcuts then you need to make sure that each shortcut is associated with a different MSI component (component_ column of the Shortcut Table) and that your user option to install the 'full version' or the 'limited version' only causes one of the components to be installed at a time.

ColbyRingeisen  Tuesday, July 14, 2009 8:51 PM
It will depend on whether or not your two shortcuts are set up asAdvertised Shortcuts or not in the MSI package (check the Target column of the Shortcut Tablefor the two shortcuts in question). For Advertised Shortcuts you will need to ensure that the Target column for your two shortcuts don't point to the same Feature in the Feature table and that your user option to install the 'full version' or the 'limited version' only causes one of the two Features to be installed at a time.

If the shortcuts are not Advertised Shortcuts then you need to make sure that each shortcut is associated with a different MSI component (component_ column of the Shortcut Table) and that your user option to install the 'full version' or the 'limited version' only causes one of the components to be installed at a time.

ColbyRingeisen  Tuesday, July 14, 2009 8:51 PM

You can use google to search for other answers

Custom Search

More Threads

• Update an application
• Publish Application Files
• ClickOnce file names for security list
• How to change the functionality of remove button in add/remove program?
• installation procedure
• is it possible to pass command-line arguments to an installshield executable?
• dll.config file
• Copy-Paste Deployment
• Change the product name during installation
• How to automatically update an application using Windows Installer