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