• 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

How to install Windows from USB- WinSetupFromUSB with GUI

2,139 posts in this topic

I've gone through the thread, and read the FAQ, but please forgive me if I've missed the answer.

I got directed here after being dumped with a Tablet PC pre-installed with XP Pro (no pen/touch support, great huh?) and no Floppy/CD/DVD etc.

I downloaded the GUI, ran it to format the USB key and copy the XP Tablet files and plugged it into the Tablet ...

I can boot into USB fine, I can start Setup fine - but I get:

Q8: I got "Insert WinXP CD" Error, why?

A8: The correct value in WINNT.SIF is MsDosInitiated="1". This is done automatically by the script. You must have changed WINNT.SIF after prepared USB disk.

Well, I don't have a WINNT.SIF (apart from the Sample one) and I can't find a reference to MsDosInitiated in any of my files on the USB key.

I know I'm probably doing something fundamentally stupid ... but if anyone could tell me what it is, I'd be grateful!

0

Share this post


Link to post
Share on other sites

Sorry about the delayed responses, I am still on holiday and have a little break from computers :ph34r:

I have been playing around and I tried formating in NTFS the results are amazing I have gone from nearly 2 hours for the 1st section of the install to about 4 mins.

All is not well though on part3 of the install I get an error

Windows could not start because the following file was missing or currupt
<Windows Root>\system32\hal.dll
Please reinstall a copy of the above file

So I am going to try and find out why I get this message, but if anyone knows why please tell me

Good, NTFS really helps sometimes. For HAL.DLL error please check the FAQs.
So I was able to get BartPE to load up but as far as any of many linux dist.. nada... I get the following error. I'm running a 4GB formatted FAT32.

-----------------------------------------------------------------

Booting 'Start SysLinux bootsector from partition 0'

Filesystem type is fat, partition type 0cx

SYSLINUX 3.64 2008-04-10 EBIOS Copyright © 1994-2008 H. Peter Anvin

could not find kernal image: linux

boot:

------------------------------------------------------------------

Umm, you need you ammend your syslinux.cfg for the particular distro and check kernel parameters for USB boot. The program just adds syslinux bootsector, copy the contents to USB and loads syslinux, and from the message you have posted it seems that syslinux is loaded indeed.
I've gone through the thread, and read the FAQ, but please forgive me if I've missed the answer.

I got directed here after being dumped with a Tablet PC pre-installed with XP Pro (no pen/touch support, great huh?) and no Floppy/CD/DVD etc.

I downloaded the GUI, ran it to format the USB key and copy the XP Tablet files and plugged it into the Tablet ...

I can boot into USB fine, I can start Setup fine - but I get:

Q8: I got "Insert WinXP CD" Error, why?

A8: The correct value in WINNT.SIF is MsDosInitiated="1". This is done automatically by the script. You must have changed WINNT.SIF after prepared USB disk.

Well, I don't have a WINNT.SIF (apart from the Sample one) and I can't find a reference to MsDosInitiated in any of my files on the USB key.

I know I'm probably doing something fundamentally stupid ... but if anyone could tell me what it is, I'd be grateful!

It happens if your source is on CD, will be fixed very soon. Please use the file in post #36 it's fixed there, just extract it to WinSetupFromUSB folder and launch it instead of the other EXE.

When I get back from holiday will put all changes in new beta version.

Thanks for the feedbacks. :)

ilko

0

Share this post


Link to post
Share on other sites

Program updated to 0.1 Beta, please refer to first post for list of changes and download links.

0

Share this post


Link to post
Share on other sites

Me runes Win98, but me thinks this is a goood piece of software and deserves moar feedback.

Thanks to people, who put this together!

Greets!

:hello:

0

Share this post


Link to post
Share on other sites

Windows could not start because the following file was missing or currupt
<Windows Root>\system32\hal.dll
Please reinstall a copy of the above file

I'm getting this error all the time.

I've read the FAQ's and can't seem to understand what I'm doing wrong?

I'm trying to install to a notebook that has no problem with formating and reading the first set of files,

but when the computer restarts it just gives the error above.

Now when I'm trying to install with another USB-stick with other settings it doesn't allow me to format anymore. It keeps giving me this hal.dll error.

What can be wrong?

Thx!

0

Share this post


Link to post
Share on other sites

jonsa79- what partition are you installing windows to? First, second...?

What folder name you gave for Windows, is it the default Windows?

Doe the laptop have a hidden first partition?

Please post your BOOT.INI on the root of the USB stick too. There must be a mismatch between BOOT.INI parameters and the location you install Windows to.

tonich- thanks :)

0

Share this post


Link to post
Share on other sites

$OEM$

Presetup.cmd

Would you please add support to copy the $Docs and $Progs folders inside the $OEM$ folder in the Presetup.cmd

Thanks

0

Share this post


Link to post
Share on other sites

@ilko_t

Nice work and pls. receive my congratulations for it ! :thumbup

I have test it today and it is working OK from a 2GB USB Stick (formated as NTFS) and installed from it a winxp sp3 profesional VLK on my notebook but there is "small problem". The setup it seems not ask to select your Name and Organization and also skip the selection for time zone :(. Can you fix that because not all of us are live in US :blushing: . Thank you in advance !

Edited by onepic
0

Share this post


Link to post
Share on other sites
$OEM$

Presetup.cmd

Would you please add support to copy the $Docs and $Progs folders inside the $OEM$ folder in the Presetup.cmd

Thanks

The next version will support everything as if installing from a CD. Hence no hacks or modifications will be needed to to accomplish such tasks.

Currently working on it, should be ready very shortly.

@ilko_t

Nice work and pls. receive my congratulations for it ! :thumbup

I have test it today and it is working OK from a 2GB USB Stick (formated as NTFS) and installed from it a winxp sp3 profesional VLK on my notebook but there is "small problem". The setup it seems not ask to select your Name and Organization and also skip the selection for time zone :(. Can you fix that because not all of us are live in US :blushing: . Thank you in advance !

The program is not messing with these settings. You most likely have a file unattended.txt in your source, which if found is copied and used as winnt.sif. This replicates what normal Setup would do.

If that's the case- have a look in \I386 in your Windows source and rename unattended.txt to anything else BEFORE you use the program if you don't want to use it.

Thanks for the feedbacks :)

Edited by ilko_t
0

Share this post


Link to post
Share on other sites

I have renamed unattended.txt into unattended.tx_ and i have rebuild the setup and now all ok and it run like from original CD. Th'x for the tip !

btw... tested today on a 16GB usb stick and is working OK from there too.

0

Share this post


Link to post
Share on other sites

Great app and thanks! A couple of roadblocks for me:

At first I could not get the graphical install to go... Then I realized I had a 30MB partition stopping the whol thing.

Next issue - got the full install done, but could not boot without the USB key in the laptop. After reading the help, I realized that the binifix4.cmd file did not run (I even got an error telling me so during the first desktop launch.) I looked for the file but could not find it. Finally, I went back to the install of the WinSetupFromUSB and found the file in the install.

Is this the normal process? Did I do something wrong during the setup of the USB that caused the file not to be copied over?

Any help would be appreciated... I want to create a new USB - just in case, but want it to run the first time.

Thanks,

B

0

Share this post


Link to post
Share on other sites

Was your XP source on a CD?

Can you copy it to a hard disk, use that as a source and report if that resolved the problem. I guess TXTSETUP.SIF editing fails when source is on a CD, because of the read-only attributes.

Thanks for the feedback.

edit: Couldn't understand this part, can you explain further?

At first I could not get the graphical install to go... Then I realized I had a 30MB partition stopping the whol thing.
Edited by ilko_t
0

Share this post


Link to post
Share on other sites

Thanks for this wonderful tool! :thumbup

0

Share this post


Link to post
Share on other sites
Was your XP source on a CD?

Can you copy it to a hard disk, use that as a source and report if that resolved the problem. I guess TXTSETUP.SIF editing fails when source is on a CD, because of the read-only attributes.

Thanks for the feedback.

edit: Couldn't understand this part, can you explain further?

At first I could not get the graphical install to go... Then I realized I had a 30MB partition stopping the whol thing.

I should have been more clear. I got through the text setup the first time, but could not get the GUI to run on reboot. After several bad attempts, I actually paid attention when I got to the partitioning screen. Since I set up the USB for Disk 0 Parition 1, it was trying to boot from a little 30MB partition that was built into the MINI 9. I deleted that partition, reformatted and low and behold it booted the GUI no problem...

Thanks again!

0

Share this post


Link to post
Share on other sites

@lieblingsbesuch- Working on that, but real life also has it's own opinion how time should be distributed, actively negotiating with it ;)

@latteslave- does that mean you succeeded when source was used from a HD?

0

Share this post


Link to post
Share on other sites

Gparted is not working well for me...it loads ..take a lot of time...lot of verbose comments..then ask for my keyboards..ask for my language and then finally finish into a terminal type shell...i thought gparted had a graphic GUI (well i am sure it has one because i have it on ubuntu)..i tried all the various options (load in mem, safe etc)

why so? any ideas? it is probably possible to use it like this too but too complicate for me...

only thing i myabe should add i also have ubuntu live in the same partition (and bartpe, and winxp install), but in a different folder off course (casper)

matteo

0

Share this post


Link to post
Share on other sites
Gparted is not working well for me...it loads ..take a lot of time...lot of verbose comments..then ask for my keyboards..ask for my language and then finally finish into a terminal type shell...i thought gparted had a graphic GUI (well i am sure it has one because i have it on ubuntu)..i tried all the various options (load in mem, safe etc)

why so? any ideas? it is probably possible to use it like this too but too complicate for me...

only thing i myabe should add i also have ubuntu live in the same partition (and bartpe, and winxp install), but in a different folder off course (casper)

matteo

What version of GParted you tried? Both 0.3.6-7 and 0.3.4-8 worked right away in my tests on 3 different computers.

For 0.3.6-7 if it doesn't start GUI try waiting a few seconds, it should auto start depending on the options you choose, [0] beginner etc.

Try "sudo startx" too.

Ubuntu most likely will be included in the next version, matter of a few weeks.

0

Share this post


Link to post
Share on other sites

yes i tried with gparted 0.3.6-7 and its working...strange because it wasnt with the newer version...

matteo

0

Share this post


Link to post
Share on other sites

There is a dangerous error. I had my USB disk connected as Disk 11. It did write the GRUB for DOS boot code to the MBR of the Disk 1 (not 11, but 1).

0

Share this post


Link to post
Share on other sites

Dangerous indeed, can you attach your WinSetupFromUSB.log file? If not present in program directory look in BACKUPS folder, there are also backups of the MBRs and bootsectors in case you need to revert the original one.

Did you have a card reader, how did you get 12 hard disks?

Thanks for reporting :)

0

Share this post


Link to post
Share on other sites

I'd kinda like to add a little feature request... a tiny one, but a feature request :)

I use WinSetupFromUSB GUI to prepare "solo flight" installations on hard drives. I've found it an incredible and groundbreaking new way to get installations done FAST - by first preparing the drive (and boot sector) with Windows' Disk Manager, then use WSFU to "prepare" the drive to install. The drive boots to Windows setup, and happily installs right to itself at blazing speed. I can then delete the source files and enjoy Windows.

There's a small problem though, with bypassing the USB part. The Windows install is tweaked to run an extra "post-setup" routine of changing the boot.ini file, that, on the first boot, hangs at a window saying "do you really want me to set it to -1?" or something like that (it appears behind the welcome screen until it times out, or you Ctrl+Alt+Del it out of the way). I can press a key and it continues OK with no problems, but it's annoying none the less. Also, a second entry gets added to boot.ini, because a boot.ini file (unnecessary with the Grub4DOS loader) already existed in the root of C:.

So, the solution is simply to make an option that skips certain preparations, like the boot.ini in the root, and adding that first-login boot.ini changer. Those two changes would make WSFU even more useful for more than just USB! :D

0

Share this post


Link to post
Share on other sites
Can you attach your WinSetupFromUSB.log file?

2008/10/04 22:12:36- Getting USB drives information
2008/10/04 22:12:36- Found USB Physical Disk: Generic MMC/SD USB Device -- \\.\PHYSICALDRIVE7
2008/10/04 22:12:36- Found USB Physical Disk: Generic CF USB Device -- \\.\PHYSICALDRIVE5
2008/10/04 22:12:36- Found USB Physical Disk: Generic MS USB Device -- \\.\PHYSICALDRIVE6
2008/10/04 22:12:37- Found USB Physical Disk: Generic SM USB Device -- \\.\PHYSICALDRIVE8
2008/10/04 22:12:37- Found USB Physical Disk: MCBOE32G 8APR USB Device -- \\.\PHYSICALDRIVE11
2008/10/04 22:12:37- Found USB Disk Partition: Disk #11, Partition #0
2008/10/04 22:12:37- Found USB Logical Disk: L: File system: FAT32 Bootable: -1
2008/10/04 22:12:37- Found USB Physical Disk: MXI PRIVATE USB Device -- \\.\PHYSICALDRIVE9
2008/10/04 22:12:37- Found USB Physical Disk: MXI READ ONLY USB Device -- \\.\PHYSICALDRIVE10
2008/10/04 22:12:37- Target drive selected- L:
2008/10/04 22:12:37- Drive letter of the active partition in selected disk- L:
2008/10/04 22:12:37- Total target size avialable- 31217 MB
2008/10/04 22:12:37- Checking sizes...
2008/10/04 22:12:37- Total source size- 0 MB
2008/10/04 22:12:37- Target space available- 31217 MB
2008/10/04 22:13:40- Checking sizes...
2008/10/04 22:13:41- Total source size- 533.3 MB
2008/10/04 22:13:41- Target space available- 31217 MB
2008/10/04 22:13:41- Section SetupParams was not found
2008/10/04 22:13:41- Windows source selected- G:
2008/10/04 22:13:41- Source version- Syst‚m Windows XP Professional
2008/10/04 22:13:41- Service Pack- Disk aktualizace Service Pack 3 syst‚mu Windows XP Professional
2008/10/04 22:13:41- AMD64 flag- 0
2008/10/04 22:17:45- Removing TEMP folder
2008/10/04 22:17:45- Backing up MBR of disk #1
2008/10/04 22:17:45- Backed up MBR of disk #1
2008/10/04 22:17:45- Backing up BootSector of disk #1 partition #0
2008/10/04 22:17:45- Backed up BootSector of disk #1 partition #0
2008/10/04 22:17:45- Installing grub4dos bootsector to (hd1,0)
2008/10/04 22:17:45- C:\WinSetupFromUSB\files\grub4dos\grubinst.exe (hd1,0)
2008/10/04 22:17:49- grub4dos installed

Edited by jaclaz
0

Share this post


Link to post
Share on other sites
I'd kinda like to add a little feature request... a tiny one, but a feature request :)...
As I got it you are not installing from USB, right? You just use the program as replacement of WINNT32.EXE.

Is there any reason you don't want to use the latter?

winnt32.exe /noreboot /makelocalsource /syspart:X: /tempdrive:X:

You may want to use /makelocalsource:all and /unattend:winnt.sif (/unattend:unattend.txt) in case you do MCE/tablet and use answer file.

It will prepare drive X: with the installation files, boot.ini will be prepared at end of TXT part, having one entry only.

If you want to use WSFU, you may just delete boot.ini in root folder and comment out or delete in \$WIN_NT$.~BT\WINNT.SIF GuiRunOnce section

"binifix4.cmd c:"

to

;"binifix4.cmd c:"

If you want ~BT and ~LS folders to be deleted at the end of GUI part (T -1) comment out or delete in SetupParams section

UserExecute = ren_fold.cmd

to

;UserExecute = ren_fold.cmd

@devictoria

Thanks, it's fixed in the program now.

In addition grubinst.exe, which installs the grub4dos bootsector, refuses to work with hd10, hd11 etc. Reported to the authors:

http://www.boot-land.net/forums/index.php?showtopic=5897

Will include a fixed version of it as soon as they fix it.

Thanks again for reporting.

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.