MSFN Forum: Automatically create multi-boot folders and files - MSFN Forum

Jump to content


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Automatically create multi-boot folders and files Rate Topic: ***** 1 Votes

#1 User is offline   geitonaki 

  • Newbie
  • Group: Members
  • Posts: 30
  • Joined: 17-September 05

Posted 17 October 2005 - 06:52 PM

Edit: New version.

You can automatically create the multi-boot folders and files using my batch file for any version of Windows 2000, XP, 2003. Everything needed is included in the file I have uploaded.

File attached so people don't need to wait for RapidShare's download ticket ~ Alanoll

Here I will post only the main batch file:
create_boot_folder.cmd
 
@echo off
if [%1] == [] goto :usage
if [%2] == [] goto :usage
if [%3] == [] goto :usage
if [%4] == [] goto :usage
if [%5] == [] goto :usage
if not [%6] == [] goto :usage
if not exist "%~f1" (
	echo Directory "%~f1" does not exist.
	goto :usage
)
if not exist "%~f2" (
	echo Directory "%~f2" does not exist.
	goto :usage
)
if exist "%~f2\%3" (
	echo "%~f2\%3" already exists so nothing to do, please delete it manually
	goto :end
)

set pth=%~f1
set aio=%~f2
call set pth=%%pth:%aio%=%%
if "%pth%" == "%~f1" (
	echo "%~f1" must be under "%~f2".
	goto :end
)

if exist "%1\I386\TXTSETUP.SIF" (
	set src_dir=%1\I386
	set dest_dir=%2\%3
	set archit=I386
) else if exist "%1\AMD64\TXTSETUP.SIF" (
	set src_dir=%1\AMD64
	set dest_dir=%2\%4
	set archit=AMD64
) else (
	echo Cannot find TXTSETUP.SIF in I386 or AMD64 in %1
)

type "%src_dir%\TXTSETUP.SIF" | findstr /r ",_[1-9] ,[1-9]_" | sed -e s/"=.*"/""/g -e s/" .*"/""/g > out.txt
type out.txt | sed -e s/".$"/"_"/g > out_.txt

mkdir "%dest_dir%"

for /f %%i in ('type out.txt') do copy "%src_dir%\%%i" "%dest_dir%" > nul 2>&1
for /f %%i in ('type out_.txt') do copy "%src_dir%\%%i" "%dest_dir%" > nul 2>&1

copy "%src_dir%\BOOTFONT.BIN" "%dest_dir%" > nul 2>&1
copy "%src_dir%\BOOTFONT.BIN" "%2" > nul 2>&1

mkdir "%dest_dir%\SYSTEM32"
copy "%src_dir%\system32\*.*" "%dest_dir%\SYSTEM32" > nul 2>&1

set pth=%pth:\=\\%
type "%src_dir%\TXTSETUP.SIF" | sed -e s/"SetupSourcePath = \""/"SetupSourcePath = \"%pth%"/g > "%dest_dir%\TXTSETUP.SIF"
unix2dos "%dest_dir%\TXTSETUP.SIF"

del "%dest_dir%\NTDLL.DLL" > nul 2>&1

if "%archit%" == "AMD64" (
	mkdir "%2\%3"
	copy "%1\I386\NTDETECT.COM" "%2\%3" > nul 2>&1
)

if "%5" == "1" (
	copy SETUPLDR.BIN "%2\%3" > nul 2>&1
) else (
	copy "%1\I386\SETUPLDR.BIN" "%2\%3" > nul 2>&1
)
start /w xvi32.exe "%2\%3\SETUPLDR.BIN" /S=replaceI386.xsc "%3"
if "%archit%" == "AMD64" (
	start /w xvi32.exe "%2\%3\SETUPLDR.BIN" /S=replaceAMD64.xsc "%4"
)

copy BOOT.BIN "%2\%3.bin" > nul 2>&1
start /w xvi32.exe "%2\%3.bin" /S=universalrepl.xsc "I386" "%3"

del OUT.txt > nul 2>&1
del OUT_.txt > nul 2>&1

copy "%1\CDROM*.*" "%2"\ > nul 2>&1
copy "%1\WIN51*.*" "%2"\ > nul 2>&1

goto :end

:usage
echo Usage: %~n0 setup_dir aio_dir boot_dir1 boot_dir2 flag_for_using_cracked_setupldr
goto :end

:end

 


Edit: New version so that you don't need to subst your aio-dvd dir anymore.

File attached ~ Alanoll

Attached File(s)


This post has been edited by Alanoll: 09 January 2006 - 12:49 AM



#2 User is offline   amd64lover 

  • Member
  • PipPip
  • Group: Members
  • Posts: 154
  • Joined: 08-October 05

Posted 17 October 2005 - 07:24 PM

how does it work? do we just put it in the root of the installation folder?

#3 User is offline   geitonaki 

  • Newbie
  • Group: Members
  • Posts: 30
  • Joined: 17-September 05

Posted 17 October 2005 - 08:06 PM

Download the self extracting rar file in the first post, execute it and it will ask where to install. Browse to your AIO-DVD folder. When finished it will create #TOOLS in there, open create_boot_folders.cmd which calls create_boot_folder.cmd, modify it in your needs and execute it.

It will create the boot folders, modify setupldr.bin, modify txtsetup.sif, create the boot sector and copy the tag files. Everything described in http://flyakite.msfnhosting.com/ for Windows 2000/XP/2003 is made automatically B). Doesn't this topic deserve to be sticky :)?

@amd64lover
please give us feedback for 64bit version of windows since I don't have an amd64 to test, but I am pretty sure that everything should be fine.

This post has been edited by geitonaki: 17 October 2005 - 08:07 PM


#4 User is offline   amd64lover 

  • Member
  • PipPip
  • Group: Members
  • Posts: 154
  • Joined: 08-October 05

Posted 17 October 2005 - 08:09 PM

@geitonaki
the 64bit installed PERFECTLY!!! i used your method to disable the checksum and created XP64 & PRO64 folders and everything worked great. i will try your batch file and see how it works. thanks

This post has been edited by amd64lover: 17 October 2005 - 08:18 PM


#5 User is offline   CptMurphy 

  • Just another techie
  • PipPipPipPip
  • Group: Members
  • Posts: 534
  • Joined: 15-October 05

Posted 17 October 2005 - 08:57 PM

Say, I don't suppose this'll work for Redhat would it? I'm gonna try it out anyway, just wanted to ask.

#6 User is offline   geitonaki 

  • Newbie
  • Group: Members
  • Posts: 30
  • Joined: 17-September 05

Posted 18 October 2005 - 12:09 PM

View Postm3n70r, on Oct 17 2005, 08:57 PM, said:

Say, I don't suppose this'll work for Redhat would it? I'm gonna try it out anyway, just wanted to ask.


No it won't. As I said it works for any version of Windows 2000, XP, 2003

#7 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 18 October 2005 - 12:27 PM

That's the second file of yours I've attached so people don't have to go to that dreadful site...

I'll try this later on...
But as for the sticky...I do believe a random suggestion in a post does nothing. Let alone one for your OWN topic. It's just not really polite in all honesty.

I'll unsticky the old thread, but there really isn't any need for this to be a sticky, or the other page. They're still on the first page of the forum, and a simple search should bring these up.

#8 User is offline   geitonaki 

  • Newbie
  • Group: Members
  • Posts: 30
  • Joined: 17-September 05

Posted 19 October 2005 - 08:39 AM

View PostAlanoll, on Oct 18 2005, 12:27 PM, said:

That's the second file of yours I've attached so people don't have to go to that dreadful site...


Having 150kb limit for each post how could I uploaded here? My only option was to upload to rapidshare.de

#9 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 19 October 2005 - 10:08 AM

View Postgeitonaki, on Oct 19 2005, 08:39 AM, said:

View PostAlanoll, on Oct 18 2005, 12:27 PM, said:

That's the second file of yours I've attached so people don't have to go to that dreadful site...


Having 150kb limit for each post how could I uploaded here? My only option was to upload to rapidshare.de

whoops, guess I should have adde the :P smiley so you know I wasn't trying to say you did something wrong. Next time though, if you need something attached, you could just send it to me and I'll upload and attach it to yourpost.

#10 User is offline   hardlocke 

  • Group: Members
  • Posts: 3
  • Joined: 18-October 04

Posted 16 November 2005 - 02:32 AM

the create_boot_folders.cmd code doesn't work for me...

return code:
Usage: create_boot_folder setup_dir boot_dir1 boot_dir2 flag_for_using_cracked_setupldr


#11 User is offline   geitonaki 

  • Newbie
  • Group: Members
  • Posts: 30
  • Joined: 17-September 05

Posted 20 November 2005 - 02:31 PM

Make sure you are running create_boot_folders.cmd and not create_boot_folder.cmd
Also read carefully the included help.

#12 User is offline   Totalled 

  • Group: Members
  • Posts: 2
  • Joined: 03-June 05

Posted 03 January 2006 - 01:34 PM

Just a quick question now. I have been looking through the posts and the files and had a play but i just can't seem to get my head around the coding in create_boot_folders.cmd

I just seem to get the same message as hardlocke did.

Could someone please post a working copy so i can get a better handle on it.

Much appriciated.

#13 User is offline   hazard_abio 

  • Newbie
  • Group: Members
  • Posts: 41
  • Joined: 21-February 05

  Posted 03 January 2006 - 02:35 PM

View Postgeitonaki, on Oct 19 2005, 09:39 AM, said:

View PostAlanoll, on Oct 18 2005, 12:27 PM, said:

That's the second file of yours I've attached so people don't have to go to that dreadful site...


Having 150kb limit for each post how could I uploaded here? My only option was to upload to rapidshare.de



Rapidshare.de actually changed their method of downloading, you just gotta type in the Verify code, and you get the download now. :thumbup

#14 User is offline   geitonaki 

  • Newbie
  • Group: Members
  • Posts: 30
  • Joined: 17-September 05

Posted 06 January 2006 - 05:17 AM

View PostTotalled, on Jan 3 2006, 01:34 PM, said:

Just a quick question now. I have been looking through the posts and the files and had a play but i just can't seem to get my head around the coding in create_boot_folders.cmd

I just seem to get the same message as hardlocke did.

Could someone please post a working copy so i can get a better handle on it.

Much appriciated.

I have uploaded a new version, check it out and post how it worked for you, the syntax is now:
Usage: create_boot_folder setup_dir aio_dir boot_dir1 boot_dir2 flag_for_using_cracked_setupldr

You have to open create_boot_folders.cmd with notepad, modify the included examples and then run it by double clicking the file

#15 User is offline   CptMurphy 

  • Just another techie
  • PipPipPipPip
  • Group: Members
  • Posts: 534
  • Joined: 15-October 05

Posted 13 January 2006 - 02:40 AM

All righty man. I just did a basic test of your multi-boot dvd prog. It created the the boot stuff perfectly. Since I don't have an x64 rig, I can only test out the cracked setupldr.bin via server2003. I'll post results later. So far so good man. You've done an awesome job!

#16 User is offline   zuma 

  • Group: Members
  • Posts: 1
  • Joined: 06-February 06

Posted 23 February 2006 - 03:13 AM

i addthis


copy "%src_dir%\WINNT.SIF" "%dest_dir%" > nul 2>&1

This post has been edited by zuma: 01 March 2006 - 03:47 PM


#17 User is offline   andyd 

  • Junior
  • Pip
  • Group: Members
  • Posts: 59
  • Joined: 29-March 05

Posted 18 March 2006 - 01:11 PM

Will this work with 2k3 r2?

#18 User is offline   geitonaki 

  • Newbie
  • Group: Members
  • Posts: 30
  • Joined: 17-September 05

Posted 20 March 2006 - 05:46 AM

View Postandyd, on Mar 18 2006, 01:11 PM, said:

Will this work with 2k3 r2?


yes

#19 User is offline   twig123 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 325
  • Joined: 02-October 05

Posted 05 May 2006 - 12:55 AM

First of all I'd like to say 'Great Job!' with the coding for this! :)

I also wanted to bring up that I have been having some issues trying to get this to work with BTS's Driver Packs. When I select my boot source after Text setup the system reboots & tries to load BTS files, but fails because it can't find the \OEM\BIN folder (not $OEM$). If I copy the entire OEM folder to the root of the AIO disk it works with no issues. The only drawback is that I am doing an AIO with each containing different files from BTS packs. (ex: 1 w/ LAN, 1 w/LAN, SATA and so on).
Ex. DIR Structure:
***non-working***
$OEM$
Setup
-English
----WINXP
--------Original
------------I386
------------OEM

***Working*** (moved OEM to root)
$OEM$
Setup
OEM
-English
----WINXP
--------Original
------------I386
------------OEM


can anyone help me to make my AIO point eich to their respective OEM folder, instead of only looking for OEM in the root of the drive?

Thanks

#20 User is offline   geitonaki 

  • Newbie
  • Group: Members
  • Posts: 30
  • Joined: 17-September 05

Posted 08 May 2006 - 12:07 AM

View Postdiscountpc, on May 5 2006, 12:55 AM, said:

can anyone help me to make my AIO point eich to their respective OEM folder, instead of only looking for OEM in the root of the drive?

Thanks


You need to modify all BTS scripts that use the directory OEM. (e.g. in I386\PRESETUP.CMD change OEM to anything you want)

This post has been edited by geitonaki: 08 May 2006 - 12:11 AM


Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

4 User(s) are reading this topic
0 members, 4 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy