如何将我的应用程序的快捷方式添加到桌面

问题描述:

家伙,

没有人帮助我,因为我想拥有我的应用程序到桌面的快捷方式,而无需使用右键单击命令发送到桌面(创建快捷方式).我想在我的应用程序中对其进行编码,以便在安装后,它会自动创建桌面的快捷方式....
我什么都没做...所以请帮助我....

在此先感谢...

Hellow guys,

does anyone help me, cause i want to have a shortcut of my application to desktop without using the right click command to send to Desktop(create shortcut). I want to code it in my application so that after installing it, it will automatically create shortcut to desktop....
I have done nothing yet...so please help me....

Thanks in advance...

通常是在安装程序中完成的.如果您使用VS安装项目,则可以在安装程序时创建快捷方式而无需编写任何代码.
That is usually done in the installation program. If you use a VS Setup project, you can have a shortcut created when the program in installed without really coding anything.


查看此链接.这似乎是一个合理的解决方案.我尚未对其进行测试,但仅扫描代码即可查看.
尝试一下.
Check out this link. It seems to be a reasonable solution. I have not tested it, but it looked pretty good just scanning over the code.
Try This.


如果您使用图标文件在您的项目中,您可以在安装项目中使用此图片或任何其他图片.您可以选择在安装项目中将图像用作快捷方式.
希望这会有所帮助

问候Zeldacat
If you use an icon file in your project, you can use this or any other pic in your setup project. You have an option to use an image as a shortcut in you setup project.
Hope this helps

regards Zeldacat