Click here to Skip to main content
15,914,452 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Well known method using IWshRuntimeLibrary; requires "Interop.IWshRuntimeLibrary.dll" in application directory, that is not very handy for redistribution, so is there a way to create shortcut without external dll's ?
Posted
Comments
Espen Harlinn 20-Feb-11 10:52am    
As long as it is in your application directory it will not be a problem ...
fjdiewornncalwe 20-Feb-11 15:09pm    
If you don't want to send a bunch of individual files as a distribution method, you could look into using an installer like msi for this.

Are you trying to create a shortcut for your application? If so, does this SO entry helps?

http://stackoverflow.com/questions/234231/creating-application-shortcut-in-a-directory[^]
 
Share this answer
 
I suppose, the crux of your question is that you want to avoid distributing the interop DLLs. The interop DLLs basically have stubs for COM interfaces that let you use directly access those COM libraries via RCW.

If you do manual COM interop, you can avoid these auto generated RCW DLLs. But this will mean you will have to manually declare the required COM interfaces and mark them with the required GUIDs.

Once you do that, you can then manually create the COM objects and then use them (the syntax will be a little less smooth, but it's certainly not that big a deal).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900