Possible Duplicate:
Creating application shortcut in a directory
There is a lot of code floating around showing how to create a shortcut in .Net, but it only works when compiled as a 32 bit application. You can't use IWshRuntimeLibrary.WshShell in a 64 bit application.
Does anyone know how to create short-cuts in 64 bit applications?
Note, I'm not looking for a way to do it while installing either. This is for post-install purposes.
And I'm aware of this post on SO (Create shortcut from vb.net on Windows 7 box (64 bit)), but it's not the correct answer for the question. The question is 64-bit and the person gave a 32-bit answer and said "just compile 32-bit".
IShellLink
andIPersistFile
to create shortcuts. Lots of articles showing how to do this from .net. For example: vbaccelerator.com/home/NET/Code/Libraries/Shell_Projects/… – Afterdeck