Jump to content

Embed and run an EXE from inside project

- - - - -

  • Please log in to reply
No replies to this topic

#1
Guest_NeedHelp_*

Guest_NeedHelp_*
  • Guests
I found this on the MSDN forums. Very interesting post by shakalama:

i'm not sure from this but give it a try

1) right click your project name in solution explorer and select properties

2)select resources Tab and from the top of this page select (Add resources/existing file) select your exe / open

3) go to solution exploere / expand resources node right click your exe and select properties , from build Action select embeded resources

4) in solution explorer right click your project again and select Add reference, go to browse tab , select your exe again

now you can deal with your exe as you deal with other classes , for example MyexeNameSpace.Form1 f = new MyexeNameSpace.Form1();

f.show();

it will run the form but the exe will not appear in the output folder

hope this helps




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users