Manage shortcuts arguments for NSIS CreateShortCut method via CMake
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: First hi to everyone ! I want to create a shortcut to a batch file that does not prompt the DOS window. For that I have seen that the following command works very well: wscript.exe invisible.vbs my_batch_file.bat My problem is that I would like to create the shortcut with this command via CMake and NSIS. My problem is that it seems I cannot give more than one parameter after "wscript.exe" in the following command in the CMakeLists.txt file: list(APPEND CPACK_NSIS_CREATE_ICONS " CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\link.lnk'