Help needed

  • Thread starter Thread starter Da Vincy
  • Start date Start date
D

Da Vincy

Hello everyone, my question is... i've got a project where i've got several
dll's when i install the program on a pc... how can i put the dll's and
everything on the exe of my program?
 
Hi,
Well, the obvious answer would be to create a setup msi ;)
Howerver if you did not want to do that, you cold embed the dlls in your app
by adding them to your project and setting them to be embedded resources.
Then you would have to rip them back out at runtime.
(Assembly.GetExecutingAssembly.GetMenifestResourceStream ?)
If you do this, you may have to employ late binding to make use of the DLLs,
as they wont initially exist at runtime. Take a look at the System.Reflection
namespace.

Tris
 
well...i forgot to tell that i create a msi but what i really want is
something that can do something like after i install the msi in my pc on the
folder of the program only the exe appears and the dll's are in the exe :P
 
If you don't want one exe and multiple DLLs, then simply compile all of the
code into the EXE.

What's wrong with putting a couple of dlls on the target machine?

--- Nick
 
What's wrong with putting a couple of dlls on the target machine? <---- to
prevent a dissassembly of the dll's
 
They can still disassemble the exe
This gains you nothing.

Obfuscation helps a little. It at least makes disassembly less inviting and
less useful. Check out one of the obfuscators available.

--- Nick
 
Back
Top