Help - Search - Members - Calendar
Full Version: How to boot my program
The CD Forum > The CD Forum > Bootable CDs
tiadagigi88
Hai everybody.

Anyone can teach me how to make my program become bootable.

This is my simple program.


Uploaded with ImageShack.us
jaclaz
QUOTE (tiadagigi88 @ May 4 2011, 09:29 PM) *
Anyone can teach me how to make my program become bootable.

I seriously doubt that your "program" can be made "bootable". unsure.gif

QUOTE (tiadagigi88 @ May 4 2011, 09:29 PM) *
This is my simple program.

No, that is an image representing the OUTPUT of your program (that looks like BEING NOT a program but rather a batch script dubbio.gif).

A program runs normally inside an Operating System.
A scripts runs inside a (command) interpreter which is inside an Operating System.

To be able to "boot" your program script you need a (very minimal) Operating System to boot.
Then run in this "mini-OS" a command interpreter.
Then run in this command interpreter your script.

If you want to boot a "program", the program needs to be able to "talk directly" to the hardware, i.e. be in itself a (still very minimal) Operating System.

jaclaz
tiadagigi88
thank you because correct me that it was script. smile.gif

so i need to include this script into mini-OS
Juozas
Please clarify some more, are you trying to load the script on some os that boots or have this display stright when it starts loading?

If it's a script (bat file for example) you nead to write it depending on the syntax the os provides, than copy otherwise provide to boot media as you got then.

If its an *early boot* program that does all *before* anything OS related loads including file access it's clearly a boot loader whitch must be written in *low level* (e.g. asm) language. Learn some assembly first.
Even a boot loaded can have its config files that might be compared to as scripts, and you must load that file as on its documentation may say.
If you want a *custom* boot loader that may or not use a script, you nead to program *a lot*, including drivers, I/O, hardware, file systems, etc, so it's nearly impossible job for newbie. But if you're intended to, check http://wiki.osdev.org/Main_Page

If it's a program (not script) that must run on OS after and/or on its loading, depending on architecture you nead to write its code then compile to executable depending on platform. And anyway you still need to learn more programming, as you *won't load* a win32 program in dos, you nead to make it as 16-bit (dos compatible) program.

So is it a script, a boot loader, executable program or anything?
tiadagigi88
QUOTE
Please clarify some more, are you trying to load the script on some os that boots or have this display stright when it starts loading?

Yes, i want boot the display stright when it starts loading.

QUOTE
If it's a script (bat file for example).....

Yes, it is a bat file.

QUOTE
....if you want a *custom* boot loader that may or not use a script, you nead to program *a lot*, including drivers, I/O, hardware, file systems, etc, so it's nearly impossible job for newbie...

Yup, i know it require "a lot". Im newbie. but i hope i can make it. hope too u can guide me. smile.gif
oscar
QUOTE (tiadagigi88 @ May 6 2011, 11:24 PM) *
Yes, i want boot the display stright when it starts loading.
Yes, it is a bat file.


Then name it autoexec.bat.
tiadagigi88
QUOTE
Then name it autoexec.bat.

Just like that?
Beside, i still required file for booting rite?
Bastian
Put the autoexec.bat file on the pc's c: drive and when the pc boots your bat will execute.
tiadagigi88
i will try it. smile.gif
tiadagigi88
nothing changing. :|
Juozas
Wery well, as I read it must be a script it must load early at boot. What OS you're trying to make use of?
If it's old good win9x or dos it's quite easy.
It's not so easy with later MS os since it isn't known if the loader loads the autoexec and anyway you'll dont see anything.
Third thing is that all loaders must reside on ether mbr or partition boot sector to get them working, but owerwritting ether might be harmful if something's done wrong.
On Windows XP the loader in partition boot sector first loads ntldr file whitch loads all the dependant files so XP boot begins.
On dos or win9x autoexec.bat can be executed on boot. And you can't use incompatible boot loaded since your pc might become unbootable.

For XP boot loader check http://en.wikipedia.org/wiki/NTLDR
For autoexec usage on DOS or Win9x, chekc http://en.wikipedia.org/wiki/IO.SYS and http://en.wikipedia.org/wiki/AUTOEXEC.BAT
jaclaz
autoexec.bat is ONLY executed automatically on DOS/9x systems.
NT have different autoloading mechanisms, anyway it DOES NOT process autoexec.bat automatically at startup.

One way is registry keys like Run, RunOnce.

Another one is Folder "Start".

http://ask-leo.com/auto_start_how_do_i_run...ows_starts.html

See:
http://technet.microsoft.com/en-us/sysinternals/bb963902
http://www.mlin.net/StartupCPL.shtml


There are more, a few listed here:
http://antivirus.about.com/od/windowsbasic...tostartkeys.htm
http://forum.thewindowsclub.com/windows-ti...rtup-paths.html

Leave the Winlogon one alone, it will probably happen before you have the possibility to load the Command interpreter, and anyway it is not a good idea to interfere with early booting phases.

Technically, your script (if under a NT system) should be have a .cmd extension (and NOT a .bat one), convention is:

  • Batch files under DOS/Win9x/Me = .bat
  • Batch files under NT = .cmd



jaclaz
tiadagigi88
QUOTE
What OS you're trying to make use of?

I try to implement it to windows 7.

TQ, Juozas. I will go through the link you share.
tiadagigi88
QUOTE
Technically, your script (if under a NT system) should be have a .cmd extension (and NOT a .bat one), convention is:

Batch files under DOS/Win9x/Me = .bat
Batch files under NT = .cmd

I will keep in mind.

TQ, jacklaz
Juozas
If you're trying to make stuff working on Win7 or Vista you nead to read how it boots and can be configured if avail. There's no big differences on booting between Vista and Win7 becouse they are kinda based on similar type boot loader. For Vista and upper check http://en.wikipedia.org/wiki/Windows_Vista_startup_process for more info.
tiadagigi88
tq Jouzas. smile.gif

rtie now i dont have much time to read. coz im busy with my proposal. ^^; wish me luck~
Ben_Mott
hello,

how to Boot Auto to A43 GUI file manager or your prog.exe or .cmd

http://www.911cd.net/forums//index.php?showtopic=18758
http://www.911cd.net/forums//index.php?sho...18758&st=20
mount wim image using WAIK(imagex.exe)or 2mount.bat(see first link)
drop A43.exe or your prg.exe or .cmd to system32 folder
open a file called startNet.CMD in system 32 in notepad(right click choose edit
it has one line
WPEinit
add another line
a43.exe(filemanager program)
or yourCommand.exe or .CMD

and save it
----
then skip 3and 4 go to
5unmount.bat
then
6makeiso.bat
then make cd from iso with imgBurn or nero
now when you boot it auto starts the A43 boot manager
jaclaz
QUOTE (Ben_Mott @ May 10 2011, 12:55 AM) *
....
it has one line
WPEinit
....

Wouldn't this ONLY apply to a PE 2.0 or 3.0? whistling.gif

cheers.gif
jaclaz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.