cdob

Install XP from a ISO file

136 posts in this topic

Don't you edit the ISO image anyway?

I do but you don't have to. I don't do anything major with the ISO but slipstream updates and add driver packs.

Read more sites and combine another approach.

Do you not like the method I listed above? Been getting allot of personal mail as to the how to of my method. I am thinking about making a YouTube video

so to sum it up , (i doubt if i am right , because all above details are giving me headache )

Let me sum it up a little. My menus.lst and method seems confusing because context is lost sometimes online. Just follows this

You can leave the paths default and name your ISO default and use this

timeout 15
color white/blue
write 0x8274 0x2001

title Boot From Hard Drive (Windows Vista/7 or Xp)\nBoot Into Main OS Drive
checkrange 0x80 read 0x8280 && map () (hd1)
checkrange 0x80 read 0x8280 && map (hd1) ()
checkrange 0x80 read 0x8280 && map --hook
rootnoverify (hd0,0)
chainloader +1 || chainloader /ntldr

title
root

title XP Home Install From ISO With 1 USB Boot\nWorks With Low Ram also
find --set-root /Inst/XP_RAM.ISO
map --mem (md)0x800+4 (99)
checkrange 0x80 read 0x8280 && map (hd1) (hd0)
checkrange 0x80 read 0x8280 && map (hd0) (hd1)
map /Inst/XP_RAM.ISO (222)
#map --mem /Inst/XP_INST.IMA (fd0)
#map--mem /Inst/XP_INST.IMA (fd1)
map /Inst/XP_INST.IMA (fd0)
map /Inst/XP_INST.IMA (fd1)
map --hook
write (99) [FiraDisk]\nStartOptions=cdrom,vmem=find:/Inst/XP_RAM.ISO;floppy,vmem=find:/Inst/XP_INST.IMA ;\n\0
rootnoverify (222)
chainloader (222)/I386/SETUPLDR.BIN

New approach uses new firadisk feature to search and mount the ISO file. That's one driver for textmode and gui mode.

If you don't use Imdisk to mount ISO at GUI, you will have to boot a second time to USB and use the second firadisk command is which I was trying to get away from

checkrange 0x80 read 0x8280 && map (hd0) (hd1)

checkrange 0x80 read 0x8280 && map (hd1) (hd0)

map --hook

write (99) [FiraDisk]\nStartOptions=cdrom,vmem=find:/XP/HOME.ISO;\n\0

root (hd0,0)

chainloader /ntldr

chainloader (hd0)+1

How do you write the ISO name to ISOimage.ini on the fly? Like this?

This is almost working for me. The error I am getting is can't find ISO \\XP\ISO\HOME.ISO backslash in front of the XP part. If I remove the double backslash I get XXP\

write --offset=0 (fd0)/setup/ISOimage.ini \\XP\\ISO\\%XPISO%\n;\n;\n;
write --offset=1 (fd1)/setup/ISOimage.ini \\XP\\ISO\\%XPISO%\n;\n;\n;

Post #53 - dorked links. Please correct. Method interests me greatly

Fixed

Edited by laddanator
0

Share this post


Link to post
Share on other sites
moreover , does cdob's USB to USB still valid with this trick ? i guess all imdisk will do , is search the iso and mount it again for windows setup to use .

Not sure haven't tested this

just like the win7 iso install trick ?

Again, not sure

please attach your modded .IMA file

I will work on this but would like for, cdob, to give me the ok

0

Share this post


Link to post
Share on other sites
Do you not like the method I listed above?
Don't you remember? I recommended this approach at reboot.pro. Yes, I like it.

I dislike the technical requirement of two different drivers. A one driver approach seems to be nicer.

I did this years ago to support a default ISO image.

It's a user personal choice:

Some users prefers default ISO file and a virtual floppy image.

Drawback, you can't use a USB floppy anymore to load F6 drivers.

Grub4dos and BIOS has to support this. The virtual floppy approach fails at some BIOS.

Other users prefers all drivers and addons inside the ISO file.

This can be done too.

There is no one size fit all solution.

If you don't use Imdisk to mount ISO at GUI, you will have to boot a second time to USB and use the second firadisk command is which I was trying to get away from

Firadisk read settings from registry too. The other approach uses hivesys.inf

;search ISO image

HKLM,"SYSTEM\CurrentControlSet\Control\FiraDisk","StartOptions",0x0,"cdrom,vmem=find:\images\winsetup.iso"

Firadisk read registry and search \images\winsetup.iso.

No need for a second boot to USB.

How do you write the ISO name to ISOimage.ini on the fly?
Seems to be a grub4dos error. Try remove %XPISO%, use a fixed name at menu.lst.
I will work on this but would like for, cdob, to give me the ok
Thanks for asking. Give me this weekend to validate the newer setup.cmd again.

Automatic usb drivers load is nice for the pubilic at troublesome BIOS.

And I dislike the requirement to edit setup.cmd. All user settings should be at menu.list or a ini file.

Of course you may setup.cmd in addition, but default should be to keep it.

Do you use a approach at work?

Do you remove firadisk and imdisk at end of installation?

Do you need default USB settings at end of installation?

The CriticalDeviceDatabase approach changes default behaviour. Do you restrict end users at USB usage, disallow USB storage?

If you set relating permissions, it may be a good idea to remove USB CriticalDeviceDatabase at end of installation.

0

Share this post


Link to post
Share on other sites
Seems to be a grub4dos error. Try remove %XPISO%, use a fixed name at menu.lst.

Actually got this to work. Had an invisible space before the first backslash (invisible script killer..as I like to call it)

write --offset=0 (fd0)/setup/ISOimage.ini \\XP\\ISO\\%XPISO%\n;\n;\n;
write --offset=0 (fd1)/setup/ISOimage.ini \\XP\\ISO\\%XPISO%\n;\n;\n;

Will work with variable but should both offset=0 for fd0 and fd1?

Both should be offset=0

Firadisk read registry and search \images\winsetup.iso.

No need for a second boot to USB.

I will give this a try.

And I dislike the requirement to edit setup.cmd. All user settings should be at menu.list or a ini file.

I agree. Did a new method last night that I just added your newer setup.cmd to the IMA and didn't change anything else and just wrote the ISO name and path on the fly in the ISOimage.ini and XP installed fine (if you don't map the IMA file to memory, the write change will be permanent) . So pretty much everything was done from the menu.lst. If folks are confused about editing the IMA, then I will not post a "write up" on the registry method but will post if it worked for me or not

Of course you may setup.cmd in addition, but default should be to keep it.

Again agree...will post my new findings later with no setup.cmd editing and all done on the fly

Do you use a approach at work?

I do but not testing on customer computer. We have crap tons of computer from HP to Dell and so on laying around I test on.

Do you remove firadisk and imdisk at end of installation?

Do you think it's a good idea too?

Do you need default USB settings at end of installation?

No, that I have found so far. I tested all USB ports with different USB HD and USB JumpDrive

The CriticalDeviceDatabase approach changes default behavior. Do you restrict end users at USB usage, disallow USB storage?

Like I said, not tested on customers computer as of yet. Wanted to make sure all is good before I do.

If you set relating permissions, it may be a good idea to remove USB CriticalDeviceDatabase at end of installation.

What would you suggest to do this?

Thanks for asking. Give me this weekend to validate the newer setup.cmd again.

Automatic usb drivers load is nice for the public at troublesome BIOS.

No problem. I installed an XP Home on my Asus M4A88TD-M/USB3 last night with the newer setup.cmd from your later post and on the fly write of the ISOimage.ini and all went well. Look forward to any new stuff and thanks, cdob

Edited by laddanator
0

Share this post


Link to post
Share on other sites
;search ISO image

HKLM,"SYSTEM\CurrentControlSet\Control\FiraDisk","StartOptions",0x0,"cdrom,vmem=find:\images\winsetup.iso"

Couldn't firadisk driver be added to the XP source and then add the registry stuff?

Also since firadisk is copied to the system from txtseup.oem maybe the

HKLM,"SYSTEM\CurrentControlSet\Control\FiraDisk","StartOptions",0x0,"cdrom,vmem=find:\images\winsetup.iso"

could be written to the setup.cmd on the fly?

Edited by laddanator
0

Share this post


Link to post
Share on other sites
write --offset=0 (fd0)/setup/ISOimage.ini \\XP\\ISO\\%XPISO%\n;\n;\n;
write --offset=0 (fd1)/setup/ISOimage.ini \\XP\\ISO\\%XPISO%\n;\n;\n;

Will work with variable

That's nice.
I just added your newer setup.cmd to the IMA and didn't change anything else and just wrote the ISO name and path on the fly in the ISOimage.ini and XP installed fine (if you don't map the IMA file to memory, the write change will be permanent) . So pretty much everything was done from the menu.lst.
Thanks for report.

Yes, flat file mapped IMA writes to hardware. This require a friendly BIOS too. Don't rely on that.

I will not post a "write up" on the registry method but will post if it worked for me or not

Be aware, that's under construction still. Most likely I'll change the approach.

What would you suggest to do this?
Call "setup.cmd -cleanup" late at [GuiUnattended]. This restores default registry settings.

Can you accept one more reboot at setup.cmd approach?

Add registry setting inside setup.cmd and reboot. ImDisk is obsolete that way.

Couldn't firadisk driver be added to the XP source and then add the registry stuff?
Yes, that's possible.
Next step would be include firadisk in ISO image.

However this would require to edit a ISO file. Do you like to edit a iso file?

There are different approaches to add registry settings.

0

Share this post


Link to post
Share on other sites
This require a friendly BIOS too. Don't rely on that.

Actually working on something or a different type of mapping that doesn't require mapping to virtual type floppy (fd0) or (fd1)

Call "setup.cmd -cleanup" late at [GuiUnattended]. This restores default registry settings.

Is the cleanup, the line below? (Already in the newer setup.cmd)

:cleanup ======================================================
set SYSTEM=HKLM\SYSTEM
set CriticalDeviceDatabase=%SYSTEM%\CurrentControlSet\Control\CriticalDeviceDatabase
set Services=%SYSTEM%\CurrentControlSet\Services

REM +=======================================================+
REM | restore default USB settings |
REM |-------------------------------------------------------|
reg.exe delete "%CriticalDeviceDatabase%\PCI#CC_0C0300" /f
reg.exe delete "%CriticalDeviceDatabase%\PCI#CC_0C0310" /f
reg.exe delete "%CriticalDeviceDatabase%\PCI#CC_0C0320" /f
reg.exe delete "%CriticalDeviceDatabase%\USB#CLASS_08" /f
reg.exe delete "%CriticalDeviceDatabase%\USB#CLASS_09" /f
reg.exe delete "%CriticalDeviceDatabase%\USB#ROOT_HUB" /f
reg.exe delete "%CriticalDeviceDatabase%\USB#ROOT_HUB20" /f
reg.exe add "%Services%\usbohci" /f /t REG_DWORD /v "Start" /d 3
reg.exe add "%Services%\usbuhci" /f /t REG_DWORD /v "Start" /d 3
reg.exe add "%Services%\usbehci" /f /t REG_DWORD /v "Start" /d 3
reg.exe add "%Services%\usbhub" /f /t REG_DWORD /v "Start" /d 3
reg.exe add "%Services%\usbstor" /f /t REG_DWORD /v "Start" /d 3

rem net.exe stop imdisk
rem sc.exe delete ImDisk
rem delete drivers\imdisk.sys
REM +=======================================================+
goto :eof === cleanup ======================================

If so I run a ProgramInstaller.cmd in runonce at first login, I could just add the line to that cmd?

However this would require to edit a ISO file. Do you like to edit a iso file?

There are different approaches to add registry settings.

No, that's why I was wondering if writing the reg entries to the setup.cmd along with the other entries on the fly would work?

Add registry setting inside setup.cmd and reboot. ImDisk is obsolete that way

Are you referring to this?

HKLM,"SYSTEM\CurrentControlSet\Control\FiraDisk","StartOptions",0x0,"cdrom,vmem=find:\images\winsetup.iso"

and why would this cause another reboot

Can you accept one more reboot at setup.cmd approach?

And can the reg command be added like this

write --offset=251 (fd0)/setup/setup.cmd reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\FiraDisk","StartOptions",0x0,"cdrom,vmem=find:\XP\ISO\HOME.ISO

write --offset=251 (fd1)/setup/setup.cmd reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\FiraDisk","StartOptions",0x0,"cdrom,vmem=find:\XP\ISO\HOME.ISO

This was added to registry from setup.cmd and after DP finishes...Global cant find CD Rom error popped up

reg add HKLM\SYSTEM\CurrentControlSet\Control\FiraDisk /v StartOptions /t REG_SZ /d "cdrom,file=%CDDRIVE%\XP\ISO\HOME.ISO" 

And this failed also.

reg add HKLM\SYSTEM\CurrentControlSet\Control\FiraDisk /v StartOptions /t REG_SZ /d "StartOptions"="cdrom,vmem=find:/XP/ISO/HOME.ISO"

I know this was added because after load is finished (had to use part two of the firadisk method for this test to finish install)...the command is in the registry

Also added this to my ProgramInstaller.cmd that runs on first log in after install finishes (runonce)

:cleanup ======================================================
set SYSTEM=HKLM\SYSTEM
set CriticalDeviceDatabase=%SYSTEM%\CurrentControlSet\Control\CriticalDeviceDatabase
set Services=%SYSTEM%\CurrentControlSet\Services

REM +=======================================================+
REM | restore default USB settings |
REM |-------------------------------------------------------|
reg.exe delete "%CriticalDeviceDatabase%\PCI#CC_0C0300" /f
reg.exe delete "%CriticalDeviceDatabase%\PCI#CC_0C0310" /f
reg.exe delete "%CriticalDeviceDatabase%\PCI#CC_0C0320" /f
reg.exe delete "%CriticalDeviceDatabase%\USB#CLASS_08" /f
reg.exe delete "%CriticalDeviceDatabase%\USB#CLASS_09" /f
reg.exe delete "%CriticalDeviceDatabase%\USB#ROOT_HUB" /f
reg.exe delete "%CriticalDeviceDatabase%\USB#ROOT_HUB20" /f
reg.exe add "%Services%\usbohci" /f /t REG_DWORD /v "Start" /d 3
reg.exe add "%Services%\usbuhci" /f /t REG_DWORD /v "Start" /d 3
reg.exe add "%Services%\usbehci" /f /t REG_DWORD /v "Start" /d 3
reg.exe add "%Services%\usbhub" /f /t REG_DWORD /v "Start" /d 3
reg.exe add "%Services%\usbstor" /f /t REG_DWORD /v "Start" /d 3

rem net.exe stop imdisk
rem sc.exe delete ImDisk
rem delete drivers\imdisk.sys
REM +=======================================================+
goto :eof === cleanup ======================================

The first 7 delete commands give can't find registry entry command

The 5 add complete successfully

By the way, the rebooting I don't mind,,,its the rebooting to grub4dos to run a second menu.lst command is what I try to avoid

Edited by laddanator
0

Share this post


Link to post
Share on other sites

cdob, should I be posting here about added firadisk to registry and skipping imdisk mount during install or would it be better to post in the XP from RAM post?

0

Share this post


Link to post
Share on other sites

can you make a clear tutorial .. maybe with a vidéo..

because i didn't understand any think

0

Share this post


Link to post
Share on other sites

I would like to make a video tutorial (would be my first) for winsetupfromusb and this method. Just need to get permission from ilko_t and cdob

It's easy for me to say but this method is really simple. Sometimes I can't find the words to make since of the details but maybe in video would clear things up.

Edited by laddanator
0

Share this post


Link to post
Share on other sites

I would like to make a video tutorial (would be my first) for winsetupfromusb and this method. Just need to get permission from ilko_t and cdob

It's easy for me to say but this method is really simple. Sometimes I can't find the works to make since of the details but maybe in video would clear things up.

Should you want my opinion (completely UNasked for :ph34r: ) there is nothing as UNuseful as a video tutorial for such complex things WITHOUT a proper, clear, textual tutorial (and the possibility to copy/paste, etc.).

A video may be a nice addition, not a replacement, IMNSHO.

jaclaz

0

Share this post


Link to post
Share on other sites
Should you want my opinion (completely UNasked for :ph34r: ) there is nothing as UNuseful as a video tutorial for such complex things WITHOUT a proper, clear, textual tutorial (and the possibility to copy/paste, etc.).

A video may be a nice addition, not a replacement, IMNSHO.

You been around here along time so your opinion is always welcome. I been doing this awhile but never really had to explain how I came to a point or my methods to others. I need to remember that instead of posted advance menu.lst and so on, that the simple basic will work also so people who are new to this can start with the basic and change things to fit their needs as they get more comfortable.

0

Share this post


Link to post
Share on other sites
setup.cmd -cleanup

is the -cleanup like a switch to the cmd file?

0

Share this post


Link to post
Share on other sites
setup.cmd -cleanup

is the -cleanup like a switch to the cmd file?

it will simply call the cleanup part of the batch file.

try this floppy image of friadisk , made by my chinese friend Sratif (moderator of Wuyou forums )

http://db.tt/Bl77RtUG

study batch file included and inf file too.

@ cdob

did you face any error while testing server 2003 sp2 32bit using iso install method ?

after formatting partition, when windows start to copy files, it gives me error

" firadisk,sys not found , make sure cd is stil in cdrom and bla bla "

and all the other files which are in XP_RAM.IMA 0.5

title XP Home Install From ISO With 1 USB Boot\nWorks With Low Ram also

find --set-root /Inst/XP_RAM.ISO

map --mem (md)0x800+4 (99)

checkrange 0x80 read 0x8280 && map (hd1) (hd0)

checkrange 0x80 read 0x8280 && map (hd0) (hd1)

map /Inst/XP_RAM.ISO (222)

#map --mem /Inst/XP_INST.IMA (fd0)

#map --mem /Inst/XP_INST.IMA (fd1)

map /Inst/XP_INST.IMA (fd0)

map /Inst/XP_INST.IMA (fd1)

map --hook

write (99) [FiraDisk]\nStartOptions=cdrom,vmem=find:/Inst/XP_RAM.ISO;floppy,vmem=find:/Inst/XP_INST.IMA ;\n\0

rootnoverify (222)

chainloader (222)/I386/SETUPLDR.BIN

title XP Home Install From ISO With 1 USB Boot\nWorks With Low Ram also

find --set-root /Inst/XP_RAM.ISO

map --mem (md)0x800+4 (99)

checkrange 0x80 read 0x8280 && map (hd1) (hd0)

checkrange 0x80 read 0x8280 && map (hd0) (hd1)

map /Inst/XP_RAM.ISO (222)

map --mem /Inst/XP_INST.IMA (fd0)

map --mem /Inst/XP_INST.IMA (fd1)

map --hook

write (99) [FiraDisk]\nStartOptions=cdrom,vmem=find:/Inst/XP_RAM.ISO;floppy,vmem=find:/Inst/XP_INST.IMA ;\n\0

rootnoverify (222)

chainloader (222)/I386/SETUPLDR.BIN

mapping XP_INST.IMA to memory , and direct map , both result with same error , required files not found , after setup format partition .

just wondering why this is happening for server2003 only . ??

by the way , above entries work OK on xp iso.

Edited by maanu
0

Share this post


Link to post
Share on other sites
mapping XP_INST.IMA to memory , and direct map , both result with same error , required files not found , after setup format partition .

just wondering why this is happening for server2003 only . ??

by the way , above entries work OK on xp iso.

Cant answer for sure but I don't think Server2003 is supported by cdob can answer that better

it will simply call the cleanup part of the batch file.

Seems it is not set to run at default so thought maybe some kinda switch -cleanup

if /I %1.==-cleanup. (call :cleanup &goto :eof)

if /I %1.==-usb_boot. (

call :set_usb_boot_setting SYSTEM CurrentControlSet

bootcfg.exe /TIMEOUT 8

goto :eof

makes me think this is a switch.

Ok, is a switch. Just ran setup -cleanup from a test.cmd and the cleanup process ran only. Cool

try this floppy image of friadisk , made by my chinese friend Sratif (moderator of Wuyou forums )

http://db.tt/Bl77RtUG

study batch file included and inf file too.

Will do. What does this do exactly?

Edited by laddanator
0

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.