MSFN Forum: How to install Windows from USB- WinSetupFromUSB with GUI - MSFN Forum

Jump to content


  • 100 Pages +
  • « First
  • 9
  • 10
  • 11
  • 12
  • 13
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

How to install Windows from USB- WinSetupFromUSB with GUI Lets make it easy

#201 User is offline   ilko_t 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,605
  • Joined: 06-December 06
  • OS:none specified
  • Country: Country Flag

Posted 30 November 2008 - 12:44 PM

View Postunknown12, on Nov 30 2008, 05:17 AM, said:

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-

View Postilko_t, on Jul 11 2008, 12:31 PM, said:

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



#202 User is offline   unknown12 

  • Group: Members
  • Posts: 6
  • Joined: 02-March 05

Posted 30 November 2008 - 01:10 PM

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

#203 User is offline   ilko_t 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,605
  • Joined: 06-December 06
  • OS:none specified
  • Country: Country Flag

Posted 30 November 2008 - 01:51 PM

View Postunknown12, on Nov 30 2008, 11:10 AM, said:

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:

View Postilko_t, on Jul 11 2008, 12:31 PM, said:

- 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

#204 User is offline   unknown12 

  • Group: Members
  • Posts: 6
  • Joined: 02-March 05

Posted 30 November 2008 - 01:54 PM

Ah, thanks. So I should do the steps mentioned in that post for vista, then run WinSetupFromUSB.

#205 User is offline   HKCU 

  • Group: Members
  • Posts: 5
  • Joined: 22-January 08

Posted 01 December 2008 - 11:59 PM

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 User is offline   ilko_t 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,605
  • Joined: 06-December 06
  • OS:none specified
  • Country: Country Flag

Posted 02 December 2008 - 12:20 AM

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

This post has been edited by ilko_t: 02 December 2008 - 12:22 AM


#207 User is offline   HKCU 

  • Group: Members
  • Posts: 5
  • Joined: 22-January 08

Posted 02 December 2008 - 12:37 AM

View Postilko_t, on Dec 2 2008, 08:20 AM, said:



Uuuh! Should have read this post first...

But thank you for your quick and detailed help.

#208 User is offline   enok 

  • Group: Members
  • Posts: 1
  • Joined: 03-December 08

Posted 03 December 2008 - 01:18 PM

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 User is offline   niwa_kun 

  • Group: Members
  • Posts: 2
  • Joined: 29-November 08

Posted 03 December 2008 - 05:01 PM

View Postilko_t, on Nov 29 2008, 03:11 PM, said:

View PostMacster, on Nov 28 2008, 11:05 PM, said:

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/board/index.php?showto...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.de/nicholas/2008/03/13...on-windows-x64/

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

View Postyahoogle, on Nov 29 2008, 02:35 AM, said:

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?


View Postniwa_kun, on Nov 29 2008, 09:18 AM, said:

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 User is offline   ilko_t 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,605
  • Joined: 06-December 06
  • OS:none specified
  • Country: Country Flag

Posted 03 December 2008 - 06:47 PM

View Postenok, on Dec 3 2008, 11:18 AM, said:

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.


View Postniwa_kun, on Dec 3 2008, 03:01 PM, said:

... 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.

#211 User is offline   Macster 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 28-September 08

Posted 04 December 2008 - 02:13 AM

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

This post has been edited by Macster: 04 December 2008 - 02:51 AM


#212 User is offline   unknown12 

  • Group: Members
  • Posts: 6
  • Joined: 02-March 05

Posted 05 December 2008 - 04:46 PM

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 User is offline   ilko_t 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,605
  • Joined: 06-December 06
  • OS:none specified
  • Country: Country Flag

Posted 05 December 2008 - 05:08 PM

View Postunknown12, on Dec 5 2008, 02:46 PM, said:

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:

View Postilko_t, on Jul 11 2008, 12:31 PM, said:

- 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? :)

#214 User is offline   unknown12 

  • Group: Members
  • Posts: 6
  • Joined: 02-March 05

Posted 05 December 2008 - 05:13 PM

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 User is offline   ilko_t 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,605
  • Joined: 06-December 06
  • OS:none specified
  • Country: Country Flag

Posted 05 December 2008 - 05:52 PM

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.

#216 User is offline   Yoshii 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 06-December 08

Posted 06 December 2008 - 06:37 PM

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:

Quote

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.

This post has been edited by Yoshii: 06 December 2008 - 06:41 PM


#217 User is offline   ilko_t 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,605
  • Joined: 06-December 06
  • OS:none specified
  • Country: Country Flag

Posted 06 December 2008 - 07:27 PM

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?

#218 User is offline   Yoshii 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 06-December 08

Posted 06 December 2008 - 09:11 PM

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 User is offline   ilko_t 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,605
  • Joined: 06-December 06
  • OS:none specified
  • Country: Country Flag

Posted 06 December 2008 - 09:20 PM

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?

Quote

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.

#220 User is offline   Yoshii 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 06-December 08

Posted 06 December 2008 - 09:44 PM

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:


Quote

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?

Share this topic:


  • 100 Pages +
  • « First
  • 9
  • 10
  • 11
  • 12
  • 13
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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



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