• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
ilko_t

Install 2000/XP/2003 from RAM loaded small ISO

40 posts in this topic

In the past I tried creating a much better setup.exe based on pyrons method.
Thanks, a volunteer :whistle:

Can you forward the command line?

At fake setup: read the given command line and forward the command line to presetup.cmd?

XP 64: still no USB hard disk explanation.

Work arround updated: Boot driver settings enhanced at presetup.cmd.

Txtsetup.sif can be adjuted at [bootBusExtenders.Load] and at [inputDevicesSupport.Load].

This is not necessary.

1) If USB drive is available, just continue.

2) If USB drive is missing, set minimal USB driver settings and reboot.

PNP overwrite the settings later. After installation there are default USB settings.

3) If USB drive is missing still, set enhanced USB driver settings and reboot.

There are non default settings after full installation.

4) If USB drive is available still, no further trials, just continue and read the error.

At pyron's fake, 64 bit compiled

@echo off
setlocal EnableExtensions EnableDelayedExpansion

SET TAGFILE=\WIN_SETUP
FOR %%h IN (U C D E F G H I J K L M N O P Q R S T V W X Y) DO (
IF EXIST "%%h:%TAGFILE%" (
SET CDDRIVE=%%h:
goto :CDDRIVE_found
)
)

echo no %TAGFILE% drive found
echo no %TAGFILE% drive found >> winsetup.log

REM +=======================================================+
REM | prepare USB boot configuration |
REM |-------------------------------------------------------|
echo presetup fixBoot.USB
set reboot=

rem second trial: permanent USB changes
if exist reboot.1 if not exist reboot.2 (
set reboot=true
echo reboot ÚSB driver setting >reboot.2
echo prepare USB boot configuration %date% %time% - permanent changes >>winsetup.log
call :set_usb_boot_setting_full SYSTEM CurrentControlSet
reg.exe load HKLM\loaded_SYSTEM config\system.sav
call :set_usb_boot_setting_full loaded_SYSTEM ControlSet001
reg.exe unload HKLM\loaded_SYSTEM
)

rem first trial: minimal, no permanent changes
if not exist reboot.1 (
set reboot=true
echo reboot ÚSB driver setting >reboot.1
echo prepare USB boot configuration %date% %time% - minimal changes>>winsetup.log
call :set_usb_boot_setting SYSTEM CurrentControlSet
reg.exe load HKLM\loaded_SYSTEM config\system.sav
call :set_usb_boot_setting loaded_SYSTEM ControlSet001
reg.exe unload HKLM\loaded_SYSTEM
)

REM +=======================================================+
REM | reboot the machine once, avoid endless loop |
REM |-------------------------------------------------------|
if defined reboot (
(echo reboot %date% %time% &echo.)>> winsetup.log
goto :eof
)



:CDDRIVE_found ===============================================
set srcpath=\??\%CDDRIVE%%TAGFILE%\XP_X64\

echo CDDRIVE %CDDRIVE% - srcpath %srcpath%
echo CDDRIVE %CDDRIVE% - srcpath %srcpath% >> winsetup.log

if exist $winnt$.new del /f $winnt$.new
FOR /F "tokens=1* delims== " %%a in ($winnt$.inf) DO (
set line=%%a = %%b
if %%b.==. set line=%%a
rem requires a drive letter still
rem IF /I sourcepath.==%%a. set line=sourcepath = "\\?\GLOBALROOT\Device\Harddisk1\Partition1\WIN_SETUP\XP_X64"
IF /I sourcepath.==%%a. set line=sourcepath = "%srcpath%"
IF /I dospath.==%%a. set line=;
echo !line!>>$winnt$.new
)
if exist $winnt$.new (
ren $winnt$.inf $winnt$.0
if exist $winnt$.inf del /f $winnt$.inf
ren $winnt$.new $winnt$.inf
)

findstr.exe "sourcepath" $winnt$.inf
findstr.exe "sourcepath" $winnt$.inf >> winsetup.log

rem required at all?
rem start /min "USB keep mount work arround" pushd %CDDRIVE%


REM +=======================================================+
REM | Finally start the installation |
REM |-------------------------------------------------------|
if exist setupold.exe del /f setupold.exe >> winsetup.log
if exist setup.exe ren setup.exe setupold.exe
if exist setupORG.exe ren setupORG.exe setup.exe

rem often setup.exe -newsetup
FOR /F "tokens=1-2*" %%a IN ('reg.exe query "HKLM\SYSTEM\Setup" /v "CmdLine"') DO (
set CmdLine=%%c)
IF "%CmdLine:~-2%"=="\0" set CmdLine=%CmdLine:~0,-2%
(echo. &echo run setup CmdLine: %CmdLine% - %date% %time%)
(echo. &echo run setup CmdLine: %CmdLine% - %date% %time%) >> winsetup.log
start /WAIT %CmdLine%
REM +=======================================================+

EXIT
goto :eof =============================================================


:set_usb_boot_setting =================================================
set Services=HKLM\%1\%2\Services
echo on
reg.exe query "%Services%\usbohci" | findstr.exe /I "Start" && (
reg.exe add "%Services%\usbohci" /f /t REG_DWORD /v "Start" /d 0
reg.exe add "%Services%\usbohci" /f /v "Group" /d "Boot Bus Extender"
)
reg.exe query "%Services%\usbuhci" | findstr.exe /I "Start" && (
reg.exe add "%Services%\usbuhci" /f /t REG_DWORD /v "Start" /d 0
reg.exe add "%Services%\usbuhci" /f /v "Group" /d "Boot Bus Extender"
)
reg.exe query "%Services%\usbehci" | findstr.exe /I "Start" && (
reg.exe add "%Services%\usbehci" /f /t REG_DWORD /v "Start" /d 0
reg.exe add "%Services%\usbehci" /f /v "Group" /d "Boot Bus Extender"
)
reg.exe add "%Services%\usbhub" /f /t REG_DWORD /v "Start" /d 0
reg.exe add "%Services%\usbhub" /f /v "Group" /d "System Bus Extender"
reg.exe add "%Services%\usbstor" /f /t REG_DWORD /v "Start" /d 0
reg.exe add "%Services%\usbstor" /f /v "Group" /d "System Bus Extender"
@echo off
goto :eof === end set_usb_boot_setting ===============================


:set_usb_boot_setting_full ============================================
set CriticalDeviceDatabase=HKLM\%1\%2\Control\CriticalDeviceDatabase
set Services=HKLM\%1\%2\Services

echo on
reg.exe add "%CriticalDeviceDatabase%\PCI#CC_0C0300" /f /v "ClassGUID" /d "{36FC9E60-C465-11CF-8056-444553540000}"
reg.exe add "%CriticalDeviceDatabase%\PCI#CC_0C0300" /f /v "Service" /d "usbuhci"

reg.exe add "%CriticalDeviceDatabase%\PCI#CC_0C0310" /f /v "ClassGUID" /d "{36FC9E60-C465-11CF-8056-444553540000}"
reg.exe add "%CriticalDeviceDatabase%\PCI#CC_0C0310" /f /v "Service" /d "usbohci"

reg.exe add "%CriticalDeviceDatabase%\PCI#CC_0C0320" /f /v "ClassGUID" /d "{36FC9E60-C465-11CF-8056-444553540000}"
reg.exe add "%CriticalDeviceDatabase%\PCI#CC_0C0320" /f /v "Service" /d "usbehci"

reg.exe add "%CriticalDeviceDatabase%\USB#CLASS_08" /f /v "ClassGUID" /d "{36FC9E60-C465-11CF-8056-444553540000}"
reg.exe add "%CriticalDeviceDatabase%\USB#CLASS_08" /f /v "Service" /d "usbstor"

reg.exe add "%CriticalDeviceDatabase%\USB#CLASS_09" /f /v "ClassGUID" /d "{36FC9E60-C465-11CF-8056-444553540000}"
reg.exe add "%CriticalDeviceDatabase%\USB#CLASS_09" /f /v "Service" /d "usbhub"

reg.exe add "%CriticalDeviceDatabase%\USB#ROOT_HUB" /f /v "ClassGUID" /d "{36FC9E60-C465-11CF-8056-444553540000}"
reg.exe add "%CriticalDeviceDatabase%\USB#ROOT_HUB" /f /v "Service" /d "usbhub"

reg.exe add "%CriticalDeviceDatabase%\USB#ROOT_HUB20" /f /v "ClassGUID" /d "{36FC9E60-C465-11CF-8056-444553540000}"
reg.exe add "%CriticalDeviceDatabase%\USB#ROOT_HUB20" /f /v "Service" /d "usbhub"

reg.exe add "%Services%\usbohci" /f /v "Group" /d "Boot Bus Extender"
reg.exe add "%Services%\usbohci" /f /t REG_DWORD /v "Tag" /d 3
reg.exe add "%Services%\usbohci" /f /t REG_DWORD /v "ErrorControl" /d 1
reg.exe add "%Services%\usbohci" /f /t REG_DWORD /v "Start" /d 0
reg.exe add "%Services%\usbohci" /f /t REG_DWORD /v "Type" /d 1

reg.exe add "%Services%\usbuhci" /f /v "Group" /d "Boot Bus Extender"
reg.exe add "%Services%\usbuhci" /f /t REG_DWORD /v "Tag" /d 3
reg.exe add "%Services%\usbuhci" /f /t REG_DWORD /v "ErrorControl" /d 1
reg.exe add "%Services%\usbuhci" /f /t REG_DWORD /v "Start" /d 0
reg.exe add "%Services%\usbuhci" /f /t REG_DWORD /v "Type" /d 1

reg.exe add "%Services%\usbehci" /f /v "Group" /d "Boot Bus Extender"
reg.exe add "%Services%\usbehci" /f /t REG_DWORD /v "Tag" /d 3
reg.exe add "%Services%\usbehci" /f /t REG_DWORD /v "ErrorControl" /d 1
reg.exe add "%Services%\usbehci" /f /t REG_DWORD /v "Start" /d 0
reg.exe add "%Services%\usbehci" /f /t REG_DWORD /v "Type" /d 1

reg.exe add "%Services%\usbhub" /f /v "Group" /d "System Bus Extender"
reg.exe add "%Services%\usbhub" /f /t REG_DWORD /v "Tag" /d 2
reg.exe add "%Services%\usbhub" /f /t REG_DWORD /v "ErrorControl" /d 1
reg.exe add "%Services%\usbhub" /f /t REG_DWORD /v "Start" /d 0
reg.exe add "%Services%\usbhub" /f /t REG_DWORD /v "Type" /d 1

reg.exe add "%Services%\usbstor" /f /v "Group" /d "System Bus Extender"
reg.exe add "%Services%\usbstor" /f /t REG_DWORD /v "Tag" /d 7
reg.exe add "%Services%\usbstor" /f /t REG_DWORD /v "ErrorControl" /d 1
reg.exe add "%Services%\usbstor" /f /t REG_DWORD /v "Start" /d 0
reg.exe add "%Services%\usbstor" /f /t REG_DWORD /v "Type" /d 1
@echo off
goto :eof === end set_usb_boot_setting_full ============================

0

Share this post


Link to post
Share on other sites

Thanks cdob.

Run a few tests on real hardware with the same USB hard disk, using USB-IDE adapter. Added changes to txtsetup.sif for starting usb group earlier. Left changes to USB at start of GUI as a backup.

None of the tested versions (2000-XP-2003 32 and 64 bit) required reboot at start of GUI and installed right to the end.

Why did you give up on changing txtsetup.sif? Did you encounter any troubles using it only?

0

Share this post


Link to post
Share on other sites

Txtsetup.sif amended and usb group starts earlier, thus in case of USB hard disk it's detected and a drive letters given at start of GUI.

The rest is as per cdob's last post.

0

Share this post


Link to post
Share on other sites

I think I've found another workaround for the missing drive letters at start of GUI:

Add to setup.cmd, right above

echo no %TAGFILE% drive found

FOR /L %%G IN (0,1,20) DO (
mnt.exe Y: \device\harddisk%%G\partition1
dir Y:%TAGFILE% > nul 2>&1 && set CDDRIVE=Y:
if defined CDDRIVE goto :CDDRIVE_found
)

http://www.uwe-sieber.de/files/unmnt10.zip

Only mnt.exe is needed. In case of x64 place it in SysWow64 folder and change mnt.exe to %systemroot%\SysWow64\mnt.exe in setup.cmd.

txtsetup.sif:

32 bit:

mnt.exe=1,,,,,,,2,0,0

64 bit:

mnt.exe=55,,,,,,,82,0,0

Worked in XP 32 bit and 2003 64 bit, haven't checked 2000 yet, for the tests USB entries in txtsetup.sif were not modified, left them as in the original.

No silly warnings because of the empty USB card reader slots too.

0

Share this post


Link to post
Share on other sites

I have tried to format my laptop with windows xp sp3 from a bootable usb because my cd-drive doesn't work at all and this message keeps showing up:

"C:\windows\system32\presetup.cmd file not found

C:\windows\system32\setuporg.exe file not found

cause

Presetup.cmd not in i386 uxpcd
setuporg.exe no in i386 uxpcd

check txtsetup.sif in i386 folder"

abort installation and then restarts by itself and then again the same message and this goes on and on...

I have read everything you post in this topic but still i haven't understand what i have to do...

could someone please explain maybe a bit more simple for someone that is not expert in computers. Please is a little urgent.

Thank you in advance, i am awaiting a reply.

0

Share this post


Link to post
Share on other sites

I have tried to format my laptop with windows xp sp3 from a bootable usb because my cd-drive doesn't work at all and this message keeps showing up:

Point here is HOW EXACTLY the specific bootable usb device was prepared/made.

Why didn't you use one of the more common automated tools, most of which are stickies in the Forum:

http://www.msfn.org/board/forum/157-install-windows-from-usb/

Like:

http://www.msfn.org/board/topic/120444-how-to-install-windows-from-usb-winsetupfromusb-with-gui/

http://www.winsetupfromusb.com/

However, your issue should be the same as this one, simply add the needed files:

http://www.msfn.org/board/topic/46129-cwindowssystem32presetupcmd-file-not-found/

jaclaz

0

Share this post


Link to post
Share on other sites

I have already made my usb bootable by winsetupusb, and tried to install windows xp with it but then this happened and now i can't even make my laptop start. I already read this topic http://www.msfn.org/board/topic/46129-cwindowssystem32presetupcmd-file-not-found/ but still i did not understand what i am suppose to do. Could you please explain to me step by step what i have to do? I would be more than grateful. Thank you

0

Share this post


Link to post
Share on other sites

I have already made my usb bootable by winsetupusb, and tried to install windows xp with it but then this happened and now i can't even make my laptop start. I already read this topic http://www.msfn.org/board/topic/46129-cwindowssystem32presetupcmd-file-not-found/ but still i did not understand what i am suppose to do. Could you please explain to me step by step what i have to do? I would be more than grateful. Thank you

No.

You need to stop panicking :w00t: and start again from scratch using a known to be working approach with some calm and attention.

Which is your original source (the original Windows XP CD you use as source)?

I mean is it "untouched"? Something like 90% of the issues when installing from USB are due to "bad" sources, i.e. something that has been (badly) nlited or with "queer" modifications/additions/integrated drivers and what not.

Which SP it is?

Which specific hardware are you trying to install it to?

Are you sure (in the sense that have you tested it with RMPREPUSB testing features) that the USB stick is OK?

Are you sure you used the latest Winsetupfromusb program version AND that you followed to the letter the instructions?

Under which OS have you run Winsetupfromusb?

Essentially what the WinsetupfromUSB program does is to make a bootable USB stick (that boots to grub4dos) and to prepare on it a suitable install source.

If you set aside the install XP part for a moment your USB stick remains a bootable USB stick to grub4dos, if now you cannot start your PC from it (and get at least to the grub4dos) it means that somehow the stick got corrupted or that you are having hardware issues on the PC or that you haven't properly set the BIOS to boot from USB.

jaclaz

0

Share this post


Link to post
Share on other sites

I downloaded Windows XP Professional SP3 Nov 2013 + SATA Drivers, i originally had windows xp on the laptop but i cannot install original because of cd-driver not working.

I used winsetupfromusb 1-1 version and i auto-format FBinst (NTFS format), i have tried with multiple usb sticks but with all the same result.

I did not understant the question with OS (sorry i am not very good)

0

Share this post


Link to post
Share on other sites

Sorry i forgot to answer that my BIOS is set first from Usb hard drive

My laptop is HP Compaq nx 7400 (intel Centrino Duo)

0

Share this post


Link to post
Share on other sites

I downloaded Windows XP Professional SP3 Nov 2013 + SATA Drivers

Which presumably is a non-original, heavily modified XP source, (please read as WAREZ) :ph34r:. :(

READ, this time ATTENTIVELY, MSFN Etiquette:

http://www.msfn.org/board/index.php?app=forums&module=extras&section=boardrules

Particularly point #1.a:

» No Illegal/Copyrighted Software Discussion

1.a This is not a warez site! Links/Requests to warez and/or illegal material (e.g., cracks, serials, etc.) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/license restrictions, use of keygens, or any other illegal activity, including, but not limited to, requests for help where pirated software is being used or being discussed, will also not be tolerated. Offenders may be banned on first violation.

You won' t have support on this board for using that.

jaclaz

0

Share this post


Link to post
Share on other sites

sorry but i have original windows XP which i cannot use because my cd-drive is not working. I have my original product key under my laptop but i cannot use it. What else can i do then?

0

Share this post


Link to post
Share on other sites

sorry but i have original windows XP which i cannot use because my cd-drive is not working. I have my original product key under my laptop but i cannot use it. What else can i do then?

Prepare the USB stick from your original CD on someone else's computer with a working CD/DVD drive.

Find a friend or relative that has a working PC and use it to prepare the USB stick, or at least to make a .iso of the original CD.

jaclaz

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.