Is it possible to create a shortcut to a file that comes from a merge module in a Visual Studio Setup project?

StackOverflow https://stackoverflow.com/questions/10727216

Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top