flashlaser Posted April 26, 2004 Share Posted April 26, 2004 Hi i'm making unattended xp setup for two computers, and i'm installing different programs on different compsi plan to load command.com and when it runs autoexec.bat it'll let me choose which computer's configuration to use when isntalling xp. Here' my autoexec.bat fileif EXIST a:\winnt.sif goto :FDD :SETUPclsecho.echo Please Select The Folloing Optionsecho. echo.echo 1. Install Windows XP For Athlonecho 2. Install Windows XP for AthlonXPecho 3. Install Windows XP Normalecho 4. Use Command Promptecho 5. Boot From HDDecho.getkeyd -k 12345 -n -l -p "Enter Your Choice: " -t 5,20 if errorlevel 255 goto :HDDif errorlevel 5 goto :HDDif errorlevel 4 goto :CMDif errorlevel 3 goto :XPif errorlevel 2 goto :AthlonXPif errorlevel 1 goto :Athlon :Hddc:\windows\goto :END :CMDgoto :END :XPi386\winnt.exegoto :END :AthlonXPXP-CD\i386\winnt.exe /u:XP-CD\i386\winntathlon.sif /s:XP-CD\i386\goto :END :AthlonXP-CD\i386\winnt.exe /u:XP-CD\i386\winntathlonxp.sif /s:XP-CD\i386\goto :END :FDDgetkeyd -l -p "Boot WINXP Settings from floopy? " -t n,20 if errorlevel 2 goto :SETUPXP-CD\i386\winnt.exe /u:a:\winnt.sifgoto :END :Endgetkeyd is an external program.Here's my winntathlon.sif file, i've only left the important bits on[GuiRunOnce]%systemdrive%\install\athlon.cmdHere's my winntathlonxp.sif file[GuiRunOnce]%systemdrive%\install\athlonxp.cmdhere's my athlon.cmd filerename %systemdrive%\Install\AthlonEx.cmd RunOnceEx.cmdand my athlonxp.cmd filerename %systemdrive%\Install\AthlonXPEX.cmd RunOnceEx.cmdyeh and all my programs to install and stuff are in the RunOnceEx filesfor those who cbf reading all that, basically autoexec.bat gives the user choices on wat xp install to use, then based on that runs winnt.exe using the answer file and that answer file runs the batch file for that setup which renames the batch file RunOnceEx so it gets called by cmdlines.txt.this is my file structurecommand.comautoexec.batio.sysmsdos.sysconfig.sysgetkeyd.exe[XP-CD]@@@@$OEM$etcmy problem is that when i burn the cd command.com doesn't load, i've read alot of tutorials on making boot cd's but it never works, i've wasted alot of cd tyrign to get it working. Can someone help me? Link to comment Share on other sites More sharing options...
killerbee Posted April 26, 2004 Share Posted April 26, 2004 hi,there is no command.com in WinXP you should try cmd.exe instead.hope this helps a bitcyaKiller Bee Link to comment Share on other sites More sharing options...
Alanoll Posted April 26, 2004 Share Posted April 26, 2004 i believe he's using like a Win98 disk(sorta of) to boot from and then start the install.....as for wasting CDs, use VirtualPC or VMWare workstation. Then it only takes the time it takes to recreate the ISO.i wonder why command.com doesn't load, UNLESS you either don't have your disk set in the path, or your not using a full path. Some forms of DOS are quite picky and just to be safe, it's always good to include drive letters Link to comment Share on other sites More sharing options...
RayOK Posted April 26, 2004 Share Posted April 26, 2004 How exactly are you trying to boot from your CD? Please list the programs and steps you are using to make it bootable. AFAIK, you can't just stick those DOS files in the root of the CD and expect it to boot like a floppy. You have to use a program like CDShell to get a CD to load a floppy image and then use that as your DOS environment. Link to comment Share on other sites More sharing options...
flashlaser Posted April 26, 2004 Author Share Posted April 26, 2004 can someone just tell me this how do i make a cd startup disk iso that will boot, it has to have command.com, io.sys, msdos.sys,autoexec.bat,config.sysusing anyprogram Link to comment Share on other sites More sharing options...
killerbee Posted April 26, 2004 Share Posted April 26, 2004 hi,u need to create a boot disk that boots as u like it. After that create a Image from this Floppy and burn a Bootable CD in Floppy-emulation mode with that Image.hope this helps a bitcyaKiller Bee Link to comment Share on other sites More sharing options...
RayOK Posted April 26, 2004 Share Posted April 26, 2004 If people would read the documentation on CDShell, you will find out you need at least 4 files to get a bootable CD that loads like a floppy. Download CDShell and take out CDSH.BIN and LOADER.BIN. Put them in a folder called Boot on the root of your CD. Next, edit CDSHELL.INI and stick that in the Boot folder too. Also, using a program like WinImage, create a floppy image with all your DOS stuff and put it in the Boot folder.. So your CD would look like this:CD ROOT|+-- BOOT| || | CDSH.BIN, LOADER.BIN, CDSHELL.INI, and your floppy image|+-- I386| || | All the XP Files|+-- $OEM$ | | All Unattended filesNow.. When you boot, Loader.bin will call CDSH.bin and execute your script (CDShell.ini), which will call your floppy image. The code below, is a minimum CDShell.ini, which will be sufficient just to call a floppy image named DOS.ima..boot:clsprint "\n"print "Press Enter to boot this freakin' CD... \n"getkey 3 boot 0x80if $lastKey == key[enter]; then goto main # When no key found...goto boot # Main Menumain: memdisk DOS.imaLastly, burn the CD/image using something like Nero. Use these specs:Boot image file: Make sure this points to loader.bin.Emulation type: Set this to "no emulation" or "custom".Load segment: 0x07C0 (or just 07C0)Number of sectors to load: 4That should do it. ALL of this information, plus a LOT more is on CDShell.org. I had to read it so be happy you got an explanation. Link to comment Share on other sites More sharing options...
Alanoll Posted April 26, 2004 Share Posted April 26, 2004 If people would read the documentation on CDShellNow if only you would read, and maybe do some research.IF you stick the bot sector of a FLOPPY as the boot of a CD, the CD thinks its a floppy and looks for the normal files. OR you COULD just use the image of a Floppy AS YOUR BOOT SECTOR as Killer-bee suggested. THere is NO NEED to add another program that justs boots the floppy image anyway. And besides if he DID do that, then he'd ahve to use ANOTHER program to find the CD drive letter. Link to comment Share on other sites More sharing options...
RayOK Posted April 26, 2004 Share Posted April 26, 2004 Well, you could do that if you wanted just 1 floppy emulation on a CD. But the point I was trying to make was about CDShell.. An awesome program that could load the floppy image of ur choice, to do things like a preinstall of XP, load HD tools, partition magic, PE, etc..Can go the limited route, or explain one thing that will lead to a lot more.. Sometimes it not the fact that people don't read, the hard part is understanding a lot of information in little posts that are spread out through the internet. Link to comment Share on other sites More sharing options...
[BM]Crusher Posted April 27, 2004 Share Posted April 27, 2004 I don't get why you would want such a CD anyway?why do you need different installation and go to all this trouble for each type of computer?why not make one disk that work first time everytime on every type of computer, with no annoying DOS loading bull-dung!Check out the WPI Pre-Install Wizard if you want to have a choice of what programs are installed by RunOnce on first boot, I use it and trust me it sounds a lot easier than this autoexec.bat menu style setup.... and as far as the drivers go, you can have every driver on your CD and have them all specified in the one winnt.sif WinXP will only install the correct drivers for each system using plug'n'play methods!also, why use an external program getkeyd when choice.com comes with win98 anyway (you are using a win98 boot disk yeah?) the way you are using getkeyd it looks like a clone of choice.com anyway! Link to comment Share on other sites More sharing options...
flashlaser Posted April 27, 2004 Author Share Posted April 27, 2004 Crusher,Apr 26 2004, 06:20 PM] I don't get why you would want such a CD anyway?why do you need different installation and go to all this trouble for each type of computer?why not make one disk that work first time everytime on every type of computer, with no annoying DOS loading bull-dung!Check out the WPI Pre-Install Wizard if you want to have a choice of what programs are installed by RunOnce on first boot, I use it and trust me it sounds a lot easier than this autoexec.bat menu style setup.... and as far as the drivers go, you can have every driver on your CD and have them all specified in the one winnt.sif WinXP will only install the correct drivers for each system using plug'n'play methods!also, why use an external program getkeyd when choice.com comes with win98 anyway (you are using a win98 boot disk yeah?) the way you are using getkeyd it looks like a clone of choice.com anyway!becos i have program i want to run on one computer but not the other Link to comment Share on other sites More sharing options...
flashlaser Posted April 27, 2004 Author Share Posted April 27, 2004 yay i got it workingood old documentationi needed the modules n stuff Link to comment Share on other sites More sharing options...
yourtech Posted April 27, 2004 Share Posted April 27, 2004 Flash, I don't have time to read this whole thread so i'll just say this...try loading smartdrv.exe at the end of your batchfile before unnattend.bat gets run that solved my problem (well at least one of them) with doing an lan unnattended via floppy boot I hope that helps/helped Link to comment Share on other sites More sharing options...
flashlaser Posted April 27, 2004 Author Share Posted April 27, 2004 ah i've stumpled onto the problem that somone mentioned in this thread, i need a script to detect the cd rom and since its a usb one i doubt it'll workif anyone has dos usb drive drivers and can send to me it would be good, hey why dont' i just search for them on google i think i might have to go the other method usign the chain dat file thingythanks for help guysand yourtech if i find usb drivers for cd i will add smartdrv to the batch Link to comment Share on other sites More sharing options...
yourtech Posted April 27, 2004 Share Posted April 27, 2004 (edited) you'll have to or it'll act like its not doing anything and take forever (almost) hehas for usb drivers...maybe a way around this would be to do a lan/network (unattended) install if you have another computer in the house. I did btw there are a cpl of threads i started on it,one of which i may turn into a guide eventually both of which i'll post in a bit (not so easy to find for some reason in this forum) hehUnattended XP by LAN: (not finished yet but a start)http://www.msfn.org/board/index.php?showtopic=18255&hl=Unattended XP Lan Boot Disks:http://www.msfn.org/board/index.php?act=ST...t=0#entry126267 Edited April 27, 2004 by yourtech Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now