Visual Studio Deployment Project - Create shortcut to deployed executable

后端 未结 5 1001
误落风尘
误落风尘 2020-12-07 19:47

I realize there is likely a simple method to do this but how does one create a desktop shortcut to the executable deployed by an MSI built using a Visual Studio Deployment p

5条回答
  •  一整个雨季
    2020-12-07 20:50

    I would add the following steps (to roman m's answer) to get the .exe's icon into the shortcut, because it seems that by default you will get an ugly generic document-shortcut icon.

    Assuming you have already given your program the desired icon,

    • right-click on the Deployment Project
    • pick menu item View > File System
    • in the File System window, find the shortuct whose icon you want to change (for example, under "Users's Programs Menu")
    • go to the shortcut's Properties (right-click and pick "Properties Window")
    • go to Icon
    • Browse...
    • change "Files of type" to *.exe
    • browse to and select your "primary output"
    • OK, OK

提交回复
热议问题