Hey guys,
Sorry if this question is stupid, but I've searched everywhere, but I can't seem to find a solution.
Basically, I've got this code that makes use of the the Interop.Shell32 .dll. This code is supposed to create shortcuts, .lnk files, desktop or startmenu shortcuts, that kind of thing.
The shortcut creation code works a treat, but the issue is, I want the application to be standalone, since it is an installer, but when I reference that DLL, it always produces it in the same folder as the application itself.
When I set 'Copy to Local' to false, and delete the file, I obviously get an error.
So, if you guys can help, I'd really like one of two possible solutions:
1) Use the DLL without it having to be alongside the main application.
2) Create desktop and startmenu shortcuts with a different method.
This is really confusing me, so I hope you guys can help.
Thanks in advanced,
Ashton
Sorry if this question is stupid, but I've searched everywhere, but I can't seem to find a solution.
Basically, I've got this code that makes use of the the Interop.Shell32 .dll. This code is supposed to create shortcuts, .lnk files, desktop or startmenu shortcuts, that kind of thing.
The shortcut creation code works a treat, but the issue is, I want the application to be standalone, since it is an installer, but when I reference that DLL, it always produces it in the same folder as the application itself.
When I set 'Copy to Local' to false, and delete the file, I obviously get an error.
So, if you guys can help, I'd really like one of two possible solutions:
1) Use the DLL without it having to be alongside the main application.
2) Create desktop and startmenu shortcuts with a different method.
This is really confusing me, so I hope you guys can help.
Thanks in advanced,
Ashton
Comment