Click here to Skip to main content
16,012,468 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,
i made a C# application it uses a few external DLLs like Directx.capture etc.
now when i run the exe in the debug folder it runs without any problem but when i copy the exe to another location it doesn't run.
it only runs if i also copy the .dll files with it.

but i dont want to copy dll files..
i just want to run the exe on the other computers without copying the Dlls..
what is the solution?
Posted

1 solution

You wont be able to run an exe with the dlls supporting it.
There is actually no way you can do this.

The easiest alternative to copying the dlls along with the exe is to build a setup file.
This setup file will install both the exe and the support dlls on the client machine.
 
Share this answer
 
Comments
Ghost_x 2-Apr-12 13:43pm    
Can i get an already coded project for making the setup?

im new to c#
Abhinav S 2-Apr-12 23:06pm    
Samples are available on the msdn site and on other sites / blogs.

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