I'm using visual studio and would like to make 'lnk maker' which makes icon that lead user to website.
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" http://google.com
I want to add my own icon on .lnk. lnk maker would be exe file and it include icon file.
How should I include icon file and export it on somewhere in user's folder on vs mfc.
there is some lnk maker solutions but they are not able to make lnk depend on user's os version or change icon.
IShellLink::SetIconLocation allows setting an lnk file's icon. Here is a StackOverflow question where the answer shows how to open an existing lnk file and how to get/use the IShellLink interface.