Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

How to install Windows from USB- WinSetupFromUSB with GUI


  • Please log in to reply
2121 replies to this topic

#201
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag

Sorry if this has already been answered, but I can run WinSetupFromUSB multiple times to get multiple XP editions on 1 USB drive, correct?


Yep-

What it can be used for adding to your USB stick/disk:

- multiple Windows XP/2kX sources in the same partition (up to 10). They have to be in the first partition of the disk! Existing folders ~BT and ~LS and TXTSETUP.SIF will be renamed, and SETUPLDR.BIN and SETUPDD.SYS patched against the new names. Checksum checks are also corrected. BTS OEM folders are supported and renamed accordingly


Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB



How to remove advertisement from MSFN

#202
unknown12

unknown12
  • Member
  • 6 posts
  • Joined 02-March 05
Is it the same with vista? I want to have 32bit and 64bit vista on 1 drive, along with multiple XP.

#203
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag

Is it the same with vista? I want to have 32bit and 64bit vista on 1 drive, along with multiple XP.


From the same post:

- Vista setup to different primary partitions. Multiple Vista sources in the SAME partition are NOT supported. Place your second Vista setup in another partition. It can be placed on any primary partition.


Alternative way, to place them on the same partition:
http://www.msfn.org/...howtopic=114543

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#204
unknown12

unknown12
  • Member
  • 6 posts
  • Joined 02-March 05
Ah, thanks. So I should do the steps mentioned in that post for vista, then run WinSetupFromUSB.

#205
HKCU

HKCU
  • Member
  • 5 posts
  • Joined 22-January 08
First of all thank you for this great project.

One question: Now more and more notebook manufacturers use a hidden partition at the beginning of the hard disk for system recovery files or other stuff.

Is it possible that the GUI part during setup doesn't start, because the original boot.ini refers to this partition? Error: hal.dll not found.

[Boot Loader]
Timeout=5
Default=multi(0)disk(0)rdisk(1)partition(1)\WINDOWS
[Operating Systems]
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Second part of XP Home Edition setup from hd 0 part 1" /FASTDETECT

If i don't want to format the whole hard disk and want to keep this hidden partition, how is the workaround?
Can i make boot.ini adjustments and tell WinSetupFromUSB, that Windows will be installed on disk 0, partition 2?

Thanks for any help in advance.

#206
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
HKCU, a few pictures should explain it better:

Posted Image
First partition is hidden, second is our target:

You may add a second entry in BOOT.INI as shown, or make the first one, which is default partition 2 and the second- partition 1, entirely up to you:
Posted Image

This will produce this BOOT.INI on the root of USB disk, you can make it such manually:
[Boot Loader]
Timeout=5
Default=multi(0)disk(0)rdisk(1)partition(1)\WINDOWS
[Operating Systems]
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Second part of XP Home Edition setup from hd 0 part 1" /FASTDETECT
multi(0)disk(0)rdisk(1)partition(2)\WINDOWS="Second part of XP Home Edition setup from hd 0 part 2" /FASTDETECT
The part you are playing with is partition(N), which should be the same as on the first screenshot, displaying where Windows is installed in- C: Partition2.

Further details:
http://www.msfn.org/...howtopic=116766
Q4/A4

Edited by ilko_t, 02 December 2008 - 12:22 AM.

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#207
HKCU

HKCU
  • Member
  • 5 posts
  • Joined 22-January 08

Further details:
http://www.msfn.org/...howtopic=116766
Q4/A4


Uuuh! Should have read this post first...

But thank you for your quick and detailed help.

#208
enok

enok
  • Member
  • 1 posts
  • Joined 03-December 08
Hello...

I have a bug to report, might be a possible bug... I'll let U decide!
As soon as i start it i get this error message:
Posted Image

It might be that i am running TinyXP.
What do U think?

#209
niwa_kun

niwa_kun
  • Member
  • 2 posts
  • Joined 29-November 08

Now for another matter, is there some way to add a user developed script to the WinSetupFromUSB program so as to include other files and folders outside of the usual &OEM&, COMPONENTS, I386, etc., etc; that the program (WinSetupFromUSB) uses to make the bootable USB? Because I am having a problem of knowing when the $WIN_NT$.~LS renames to WIN_NT.LS and back again. This tends to make for messy scripts to try to compensate and impossible in certain conditions like when I have multiple reboots to install drivers and access scripts from the USB, during the GUI (user account phase, I don't know what this is called but it would be during the RunOnceEx phase). Cause I have noticed that this folder ($WIN_NT$.~LS) changes at certain times during the install and has broken my scripts on a number of occasions. Anyway the only cure I see is being able to add this user generated script so that other folders and/or files can be added to the bootable USB on an alternate directory that is outside of the usual directories (like $WIN_NT$.~LS and $WIN_NT$.~BS) that is created on the bootable USB.

Hi,

Have a look at this post, it's a summary what actually is happening:
http://www.msfn.org/...o...st&p=797585

~BT and ~LS folders are renamed at T-9, the last possible place before end of GUI mode. They are renamed back upon first login.
You can put any script, using the various options you have BEFORE SetupParams (T-9), when ~LS/~BT names are intact. You may also add your script or launch it by ren_fold.cmd, before the renaming occurs. Or use presetup.cmd if that early stage suits you.
If you need to launch a script during first logon, you can add it to undoren.cmd or make it launch by the same, after the renaming part in it.
In all scripts USB drive letter is already found for you.

http://unattended.ms...xp/view/web/13/

If I add our stuff, the timeline would look like:

»Text-mode Setup

1. Loads Drivers
2. Copies files required for Setup to the Hard Disk
3. Copies the contents of your $OEM$ folders to the Hard Disk <--- this is done by presetup.cmd because we have to remove unattended section in winnt.sif
4. Reboots the PC...

» GUI-mode Setup

0. Presetup.cmd is launched

1. DetachedProgram executes from winnt.sif at T-39 stage
2. Installs Devices
3. Installs Network
4. Installs Start Menu Items
5. Registers Components
6. svcpack.inf executes at T-13 minute stage
7. cmdlines.txt executes at T-12 minute stage
8. SetupParams executes from winnt.sif at T-9 minute stage <----ren_fold.cmd is launched renaming ~BT and ~LS in order to avoid 10.
9. Saves Settings
10. Deletes temporary files then reboots...

» First Logon

1. Windows logs you in and loads personal settings
2. Both GUIRunOnce from winnt.sif and RunOnceEX executes at the same time <----undoren.cmd is launched to rename back ~BT and ~LS folders
3. Desktop and Taskbar loads

Note: What presetup.cmd does:
1) merges the removed unattended section from winnt.sif to \windows\system32\$winnt$.inf
2) If oempreinstall=1 is found in winnt.sif, copies $oem$ folders
3) If OemPnPDriversPath is found spdrvscn32/64.exe is launched to add those paths in registry, details
4) launches binifix.cmd to fix boot.ini on the target hard disk from rdisk(Z) to rdisk(Z-1)

In vers. 0.2, which is nearly ready, ~BT and ~LS folders will not be renamed anymore, instead, $winnt$.inf is changed by binifix.cmd to msdosinitiated=0 thus at T-1 Setup does not delete ~LS and ~BT folders and we do not need to rename them to avoid that.
0.2 was delayed until figure out how to amend $winnt$.inf on x64 windows from 32bit environment, but luckily this is now resolved with the help of this excellent info:
http://blogs.sepago....on-windows-x64/

I hope knowing more how all this works, will let you add whatever you want to the USB stick.

Hi. I made boot-able my transcend 8gb usb pen drive. I formatted it as FAT32. I tried to install my windows xp professional service pack2, but it works only at the first step. It doesn’t permit me to complete the installation with the 2nd and 3d step. I choose 2nd and 3d step when it boots from the usb pen drive, but it begin the installation again. Some suggest pls.
Thanks!

Can you post your menu.lst and winsetup.lst in root of the USB disk?
As I get it you select Second part of setup, but actually the first part (Text mode) is launched instead, right?


This guide is really cool... :D

though i made some changes on it..... like i edited the WINNT.sif

[Data]
MsDosInitiated=1
floppyless=1

[GuiRunOnce]
"binifix4.cmd c:"
"undoren.cmd"
sc config rdummy start= disabled

[SetupParams]
UserExecute = "ren_fold.cmd"
i deleted most all of of the unattended configurations ..cause it bypass some steps of installations... and also deleted the $OEM$ cause the configuration is not good.. so i decide to not include it....

and one more thing....

why in my boot.ini show 4 OS menus:

[Boot Loader]
timeout=0
Default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[Operating Systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="USB Repair NOT to Start Microsoft Windows XP Professional" /noexecute=optin /fastdetect

maybe there's something wrong on. binifix4.cmd

The program does not add anything extra to winnt.sif, except a few required lines. If you used the earlier versions- they use unattended.txt if found in your I386 folder AND if winnt.sif was not found.
The program does not add anything to $OEM$ as well, it's copied unmodified from your source.
As for the boot.ini- if you do a few installations one after another, Setup reads the existing boot.ini and add it's contents to the new boot.ini, hence the duplicate lines.
The last line is to be able to perform repair install from USB or Recovery console if started from USB to be able to see your installation. Without it neither will happen.

i know now why it causes to list multiple menus on boot up... maybe you need to add a script on your command cause once the setup restarts... i know i restarted my setup cause of power interruption(2 time) ..

i just replaced binifix4.cmd wuth my cutom binfix4.cmd so it wont listed again as the setup restarts

#210
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag

Hello...

I have a bug to report, might be a possible bug...

Your WMI is broken, that's why. It's been discussed a few posts above, along with possible fixes for WMI, please look at the last couple of pages in this thread for WMI.


... maybe you need to add a script on your command cause once the setup restarts... i know i restarted my setup cause of power interruption(2 time) ..

i just replaced binifix4.cmd wuth my cutom binfix4.cmd so it wont listed again as the setup restarts

Please do now quote such lengthy posts just to add an answer, there are FAST REPLY and ADD REPLY buttons ;)

I did not get what to add where. I believe the entries were added by Windows setup itself, so why would we have to fix them by binifix.cmd? This is a rare case, besides, less interventions=>less troubles.

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#211
Macster

Macster

    Newbie

  • Member
  • 26 posts
  • Joined 28-September 08
Sorry, I thought niwa_kun was responding to my message. OOPS! Leave it to me to feed my own foot into my mouth! LOL! :blushing: Is there someway to remove an idoit post lift by myself? ACK!


Thanks,

Craig

Edited by Macster, 04 December 2008 - 02:51 AM.


#212
unknown12

unknown12
  • Member
  • 6 posts
  • Joined 02-March 05
Are multiple WinPE's supported? I had a look at this, but it doesn't explain what to do with the "programs" folder WinSetupFromUSB creates.

#213
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag

Are multiple WinPE's supported? I had a look at this, but it doesn't explain what to do with the "programs" folder WinSetupFromUSB creates.


Well, that's the third answer coming by quoting the first post in this thread:

- BartPE/WinBulder/UBCD4Win/WinFLPC (NOT ramdisk versions) to any primary partition. Multiple BartPE for example, in the SAME partition are NOT supported. Neither is the mix of them on a single partition.


Would you mind opening that post and read what it says? :)

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#214
unknown12

unknown12
  • Member
  • 6 posts
  • Joined 02-March 05
Sorry :) I searched after I posted and found that I should beable to rename the "minint" folder, then add another using WinSetupFromUSB, while keeping the same "Programs" folder and using a different nu2menu for each PE.

#215
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
With manual modifications anything is possible, but I'm lazy, would rather create another partition and place second Vista/PE/whatever can't coexist easily there.

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#216
Yoshii

Yoshii

    Newbie

  • Member
  • 11 posts
  • Joined 06-December 08
First off I'd like to thank the OP for a great program.

I've been having issues with my desktop rebuild (long story short; old dvd writer wont work with ide cable; sata hard drives DO work)

Anyways using your program I was able to complete the text setup but as soon as I start the GUI install it gives me an error saying:

There is no disk in the drive

\Device\HardDisk3\DR7


I followed everything and scanned through the whole thread and didn't find an error quite like mine.

Hopefully it can be solved soon. I should have posted this a couple days ago but forgot...

Thanks in advance :).

Also noted I have 2 internal SATA Drives. The first is a brand new Seagate which is blank. The 2nd was removed from the old system and has a windows installation on it, but bluescreens and reboots before loading. So I'd like to keep that one safe while I do this and hope I can recover my downloads from it once I get windows loaded on the seagate.

Edited by Yoshii, 06 December 2008 - 06:41 PM.


#217
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
I've never seen that error. A few random ideas:
- disconnect all unnecessary hardware- USB card readers, CD/DVD, the second hard disk etc.
- add this switch to BOOT.INI on the USB stick /SOS and start GUI mode again

....
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional 0 1" /fastdetect /sos

How far does it go? What is the last output on screen you can see?

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#218
Yoshii

Yoshii

    Newbie

  • Member
  • 11 posts
  • Joined 06-December 08
When I add the SOS to the boot ini...it loads all the drivers and doesnt show grub...just quick loads to a screen that says all drives are clear and restarts the install back to the pale blue screen where the old error pops up. After that error if I cancel the "DR7" changes to "DR8" and locks up.

Weird error indeed. But every time it locks up with this one error which I've never heard of.

#219
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
grub4dos loads NTLDR, which loades boot.ini for boot options. After that grub4dos has nothing to do with installation or whatever.

On the error box you are getting, is there IGNORE button? Did you try it?
Do you have card readers? Did you unplug them?

and restarts the install

You don't mean PC restarts, but setup continues to a blue screen/backgroung (not BSOD), which throws you that error, right?
Find presetup.cmd in ~LS\I386 folder on USB stick. Open it up and remove all lines, but last one- EXIT.
Go through Text mode again, then tell what happens during GUI mode.

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#220
Yoshii

Yoshii

    Newbie

  • Member
  • 11 posts
  • Joined 06-December 08
Yeah I hit ignore and it locks up...

Yeah that's what i mean by restarting...it just says setup is restarting and than it loads the pale blue screen not BSOD.

When im in the presetup folder do i remove all the lines created by the program or all the lines in general...this is what has in the file:


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

REM ===========Added by WinSetupFromUSB============
IF EXIST %systemroot%\system32\setupold.exe DEL /F %systemroot%\system32\setupold.exe
IF EXIST c:\boot.003 DEL /F c:\boot.003
REM ====================END=======================
EXIT


So just remove the REM part?

#221
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
You may leave just this:

REM ===========Added by WinSetupFromUSB============
IF EXIST %systemroot%\system32\setupold.exe DEL /F %systemroot%\system32\setupold.exe
IF EXIST c:\boot.003 DEL /F c:\boot.003
REM ====================END=======================
EXIT

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#222
Yoshii

Yoshii

    Newbie

  • Member
  • 11 posts
  • Joined 06-December 08
Same error pops up. Incredibly annoying and I can't figure out why. Could it be my copy of windows straight from my cd?

The machine im creating the flash drive is vista basic if that changes anything.

#223
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag

Could it be my copy of windows straight from my cd?

You could try another XP.

The machine im creating the flash drive is vista basic if that changes anything.

Nope.

You did not answer if you have USB card readers and did you unplug all unnecessary hardware, mass storage devices to be specific. Empty card readers or printers with such DOES matter.
During Text mode how many disks did you see on the partitioning screen?

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#224
Yoshii

Yoshii

    Newbie

  • Member
  • 11 posts
  • Joined 06-December 08

You did not answer if you have USB card readers and did you unplug all unnecessary hardware, mass storage devices to be specific. Empty card readers or printers with such DOES matter.
During Text mode how many disks did you see on the partitioning screen?


Sorry it doesn't have anything plugged in other than my usb key. It has a front usb card reader but that is plugged into the motherboard, nothing external.

Also it sees the old HP Drive from the old machine with windows and a restore partition. And the new hdd, which was RAW at the time I did the format/install. The 1st drive that shows up is the correct one not the HP.

***EDIT***

Also I noticed that when I hit ignore on the error its not the system that locks up but my keyboard turns off for some reason...and it has a light on even when the system is off so that's an odd thing to happen.

***EDIT***

I also noticed that when I format the usb flash drive with NTFS that's where the black screen and drivers load pops up (almost like safemode). But when I format to FAT 32 I get the boot loader asking what I want to do. Is that common?

Edited by Yoshii, 07 December 2008 - 06:15 AM.


#225
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,593 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag
@Yoshi

It has a front usb card reader but that is plugged into the motherboard, nothing external.


Hmmm, AFAIK in English all does not mean "external" :whistle: :

- disconnect all unnecessary hardware- USB card readers, CD/DVD, the second hard disk etc.



Please get dd for windows here:
http://www.chrysocome.net/dd

Open a Command Prompt in the directory where you unzipped it and type:

If the DR7 and DR8 correspond to entries starting with "DP(1)0-0+" they are devices of your card reader and they are probably getting in the way.

jaclaz




5 user(s) are reading this topic

0 members, 5 guests, 0 anonymous users