Link to home
Start Free TrialLog in
Avatar of davidlars99
davidlars99Flag for United States of America

asked on

run .exe files without install

is it possible to run .exe files without installation..? I mean right out of bin folder on the machine without .NET framework installed...?
Avatar of arif_eqbal
arif_eqbal

NO
You can run .NET exe file "right out of bin folder on the machine" but it requires .NET Framework to be installed.
Your exe that you make in .NET uses a lot of library files that are a part of the Framework. So unless framework is installed it won't run.

But yes if framework is installed you need not install, just copy the exe (from bin) along with any additional dll it uses if any (that are also there in bin) on the other machine and it will run
^ What he said.... dammit you got to it first :-p
SOLUTION
Avatar of S-Twilley
S-Twilley

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think you did... but I was just commenting on an alternative of what you were saying about running the exe file from the bin folder.

I can understand him asking though, have been quite a few times when I've done the simplest of applications to check something on someones computer (like terminate a bad and persistant process)...  but for them to run the app they need to install a 25Mb+ distributable framework. I understand that it has libraries and all... just saying its  a bit of a shame :P
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of davidlars99

ASKER

what about "ngen.exe"? what does it do...?
you can use the ngen.exe tool that comes with .NET to compile to native machine language
it compiles EXE to platform specific


usage:
ngen.exe path_and_filename_of _compiled_IL_assembly
no, I mean will ngen.exe make it work the way I mentioned..?
It is very hard to believe that .NET only works that way, is there any other ways but http://thinstall.com/
No without .Net Framework ngen will not work

>> is there any other ways but http://thinstall.com/

Not that I know of
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks everybody!