Click here to Skip to main content
15,921,467 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: (untagged)
i wrote application like windows explorer and i want to make it bootable so i can run it from usb at boot
like os installation disk
is there any way i can do that
please help me with this thanks
Posted
Comments
Sergey Alexandrovich Kryukov 8-Aug-14 19:07pm    
What is that kind of a compote, "bootable application"? :-)
—SA

No, you can't.
C# relies heavily on both Windows and the .NET runtime. Your compiled C# application contains the .NET bytecode which is then translated to native x86 instructions by the .NET JIT.
You could however write an AOT compiler which would convert your compiled .NET bytecode to x86 instructions, however you'd have to implement everything yourself including WinForms, which is like rewriting the entire WinAPI.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 8-Aug-14 23:32pm    
You are right, only I think that situation with out OP is way simpler than you imagined. Probably this person is just very confused about more basic and elementary things. Please see my answer.
—SA
I think you have no real problems except general understanding. An "application like Windows Explorer" is nothing like OS. The term "booting" is applicable to OS (and some other things) and not to the applications. It looks like you confuse "booting", "loading", "installation" and perhaps more.

If you really develop some application, it does not need anything special to be executed on a USB flash drive or other removable media. You don't even need installation. You just put in on this media and start it. If it does not happen, you cannot consider that you really created an application, should work on it more.

And of course you need installed and running OS, with .NET installed. Windows without .NET are going obsolete, so this is not a big concern. However, if you expect to work without installed .NET, you hardly can do it in any easy way. It would probably be easier to create an unmanaged (native) Windows application.

—SA
 
Share this answer
 
 
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