I have a Setup and Deployment project in Visual Studio 2010 which is using some merge modules to install some dependencies that my program requires to run. One of the MSM files contains an executable that I would like to create a shortcut to in the Program Files menu. Is this possible or is this (as I continue to learn...) another annoying limitation of the Setup and Deployment projects?

1

There are 1 answers

2
Cosmin On BEST ANSWER

You cannot link the shortcut to the merge module file. However, the shortcut target is formatted. So you can simply use a formatted value which will be resolved to your merge module file path.

For example, the shortcut target can be something like this:

[ProgramFilesFolder][Manufacturer]\[ProductName]\myFile.exe

This type of shortcut is created only if it's target exists on disk.