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

質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top