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
2120 replies to this topic

#276
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,718 posts
  • OS:none specified
  • Country: Country Flag

Check with old offically supported version of Gparted and UBCD4Win 3.22,
the menu.lst get messed up anyway.

I did try several times, couldn't manage to get it screwed. Can you zip all your program log files from \backups\ directory and attach them here or upload at www.datafilehost.com for example?

Does anybody know what 0x00030001 means (device attribute, removable?)

Comes from MkMigrateInf.cmd. Compare:
http://www.911cd.net...showtopic=19663

0x00030001 is a flag, but what exactly it means I cannot see:
http://msdn.microsof...y/ms794514.aspx

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



How to remove advertisement from MSFN

#277
Raboo

Raboo

    Newbie

  • Member
  • 17 posts
  • OS:Windows 7 x64
  • Country: Country Flag
hmm this thread has grown and your program has progressed, thats nice. But it seems that the new version doesn't work for me.
The old version from the quote below however works.

Heh, quotes were not expected there too :)
Here is a version, which should take care of them.
http://www.datafileh...d-4bf62239.html

BTW what version of nLite is that? It rather seems like nLite bug, I wonder if winnt32.exe would accept that syntax.


If you're wondering what doesn't work, after installation is done and I'm trying to boot without USB it says hal.dll is missing.
Get Hosted Exchange or virtual servers at LetIT.

#278
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,718 posts
  • OS:none specified
  • Country: Country Flag

hmm this thread has grown and your program has progressed, thats nice. But it seems that the new version doesn't work for me.
The old version from the quote below however works.

Heh, quotes were not expected there too :)
Here is a version, which should take care of them.
http://www.datafileh...d-4bf62239.html

BTW what version of nLite is that? It rather seems like nLite bug, I wonder if winnt32.exe would accept that syntax.


If you're wondering what doesn't work, after installation is done and I'm trying to boot without USB it says hal.dll is missing.

The problem you describe has nothing to do with the quoted messages, and in other hand, is not related to the program at all ;)

Do read the FAQs, look at this thread too:
http://www.msfn.org/...howtopic=128303

BTW did you miss the numerous topics and FAQs in this subforum about the very same problem?

Do read this post and below , just a couple of pages back:
http://www.msfn.org/...o...st&p=815523

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


#279
Lagerstars

Lagerstars

    Newbie

  • Member
  • 21 posts
Hi, im having an issue with the USB stick.
I've got a DVD setup and working perfectly doing the unattended setup in full for me.
However, when i use the source files for that disc with this tool, it no longer runs fully automatically. Its now prompting me to choose which partition to use and then do i want to format it etc.

Ive not altered the WINNT.SIF files at all after the tool has created the USB Stick and ive confirmed the [data] section has the Autopartition=1 and Unattended="Yes"

WINNT.SIF [DATA] section shown below

 
[Data]
AutoPartition=1
MsDosInitiated="1"
UnattendedInstall="Yes"
floppyless="1"
winntupgrade="no"
win9xupgrade="no"
EulaComplete="1"



Ive then answered the partition questions and allowed the process to continue and the rest of the installation appears to run unattended as intended.

I have read through here a couple of times but most times its been late so its possible ive glossed over the answer to my problem.
Any help would be appreicated though!

Thanks and keep up the good work, your work and this site as a whole has so far proven invaluable!

#280
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,718 posts
  • OS:none specified
  • Country: Country Flag

However, when i use the source files for that disc with this tool, it no longer runs fully automatically. Its now prompting me to choose which partition to use and then do i want to format it etc.


...unattended section is removed because even with an empty section Text mode setup will attempt to install windows where ~BT and ~LS folders are.

Did you get the idea?
Fully unattended Setup during Text mode is not possible using this method. Target disk by default is where our BT and LS folders are, on our USB stick/disk.

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


#281
Lagerstars

Lagerstars

    Newbie

  • Member
  • 21 posts
Ok thanks, I've searched some more after posting my question and thought that might be the case but wanted to check.
Thanks for a quick reply!

#282
Lagerstars

Lagerstars

    Newbie

  • Member
  • 21 posts
Hmmm it seems i spoke too soon.
It was prompting for partition info (as intended according the answer to my last question) when using my 1GB USB Stick.

However when i use my 8GB stick which then contains 1 additional folder within $OEM$\$$ that contains other application files for later installation its giving me an error saying its unable to create \Windows prior to trying to copy files to the hard drive at the start of the text based installation

Im guessing from reading other info, its working on the 1GB disk because it doesnt have enough room to install Windows and therefore prompts for another location to install and the 8GB has enough room so there is no prompting, which leads me to think that its trying to install on to the USB Stick when using the 8GB.

Its probably worth noting that this machine does not require any F6 additional drivers to install and will happily proceed with installation with whatever is shipped on the CD as standard

How do i correct this issue?

Edited by Lagerstars, 28 January 2009 - 07:49 AM.


#283
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,718 posts
  • OS:none specified
  • Country: Country Flag
What are contents of that folder $OEM$\$$, what do you install through it?
Does the 8GB stick gives that error when using the source, used for the 1Gb stick?
Are the proper drivers integrated in both sources? Is the disk contreoller in AHCI/SATA mode?
Did you put back unattended section in winnt.sif, or did the program fail to remove it? Check winnt.sif.

Similar problem, reported as solved by integrating BTS mass storage drivers pack:
http://www.msfn.org/...howtopic=128718

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


#284
Lagerstars

Lagerstars

    Newbie

  • Member
  • 21 posts
As stated above, when performing the installation the $OEM$\$$ folders are identical on the 1GB and 8GB memory sticks. The only change is a subfolder under $oem$\$$ and the additional folder is titled Install and simply contains source files for other applications for the runonceex.cmd and the only reason thats not on the 1GB stick is due to its size.

The source files are the same files for both the 1Gb and 8Gb sticks with the one exception of that install folder due to size.

The $$ folder copies across wallpaper files, power scheme files, a theme, couple of tools to the system32 folder and the installation files for applications.

It does not have an AHCI/SATA controller or drives and as per above, it will install fine with the standard WinXP SP2 CD, however i have just tested with the base driver pack and mass storage inc textmode based drivers slipstreamed in

I have not touched the WINNT.SIF at all after running the tool and have checked that the [Unattended] section has been removed by the tool.

As i say though, on a DVD, the files work perfectly, but using your tool to create the USB stick install seems to trip up so i just need to work out where and why as this will help speed up my testing and adjustments considerably

Edited by Lagerstars, 28 January 2009 - 08:23 AM.


#285
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,718 posts
  • OS:none specified
  • Country: Country Flag
Hmm, I am puzzled.
A few ideas:
Does the machine have USB card readers or any other USB mass storage device, including USB printer with card reader, iPod, etc. etc.? It may "shift" USB disks numbering. Try disabling/removing everything, but the hard disk.
What type is the 8GB USB stick? Does it have CD-like part?
Try renaming migrate.inf to migrate.inf.bak in ~BT folder. Go only to the partitioning screen in Text mode. What drive letter each device/partition got? Which one is listed first? A picture of that screen may help you have camera around.
Try renaming $oem$ to $oem$.bak. Does setup continue?

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


#286
Lagerstars

Lagerstars

    Newbie

  • Member
  • 21 posts
Thanks, i'll try your suggestions.
Im just recreating my source files with original CD files and a very basic WINNT.SIF and will try again to see what happens and if that works i'll then attempt to build up further from there.

Incidently, no there are no other devices in the machine USB etc.

The 8gb stick is a Kingston DataTraveller DTI/8GB.

If this still fails after me cutting things back to the most basic and out of the box Unattended settings then i'll try your suggestion to see what else is happening with device partition lettering but im hoping the original files will work and i can build from there and narrow down the problem afterwards, will know in about half hour or so.

#287
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,718 posts
  • OS:none specified
  • Country: Country Flag
This is interesting problem, please keep us informed :)

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


#288
Lagerstars

Lagerstars

    Newbie

  • Member
  • 21 posts
Ok, I have just tested again.
With the orginal Volume License version of WinXP SP2 CD i have, this PC is able to install with no additional storage controller drivers.

I have copied this XP CD to my hard drive, path C:\XPCD and then run the setupmgr to create a new WINNT.SIF from scratch and copied this WINNT.SIF in to the i386 folder in that directory. I have not configured or added anything beyond anything put in by this program (I have obviously removed company specific info in the below code, entries in the SIF file are correct)

The WINNT.SIF is shown below:

;SetupMgrTag[Data]    AutoPartition=1    MsDosInitiated="1"    UnattendedInstall="Yes"floppyless="1"winntupgrade="no"win9xupgrade="no"EulaComplete="1"[GuiUnattended]    AdminPassword=*    EncryptedAdminPassword=NO    AutoLogon=Yes    AutoLogonCount=1    OEMSkipRegional=1    TimeZone=85    OemSkipWelcome=1[UserData]    ProductKey=Our Key here    FullName="Company here"    OrgName="Company here"    ComputerName=*[Display]    BitsPerPel=24    Xresolution=1024    YResolution=768    Vrefresh=60[TapiLocation]    CountryCode=44    Dialing=Tone    AreaCode=01895[RegionalSettings]    LanguageGroup=1    SystemLocale=00000809    UserLocale=00000809    InputLocale=0809:00000809[Branding]    BrandIEUsingUnattended=Yes[URL]    Home_Page=intranet here[Proxy]    Proxy_Enable=0    Use_Same_Proxy=1[Identification]    JoinWorkgroup=WORKGROUP[Networking]    InstallDefaultComponents=No[NetAdapters]    Adapter1=params.Adapter1[params.Adapter1]    INFID=*[NetClients]    MS_MSClient=params.MS_MSClient[NetServices]    MS_SERVER=params.MS_SERVER[NetProtocols]    MS_TCPIP=params.MS_TCPIP[params.MS_TCPIP]    DNS=Yes    UseDomainNameDevolution=No    EnableLMHosts=Yes    AdapterSections=params.MS_TCPIP.Adapter1[params.MS_TCPIP.Adapter1]    SpecificTo=Adapter1    DHCP=Yes    WINS=No    NetBIOSOptions=0    DNSDomain=domain here[GuiRunOnce]"undoren.cmd"[SetupParams]UserExecute="binifix4.cmd C:"

I have then used your tool to compile this set of files to the USB Key which i freshly formatted using the HP Tool and formatted it to NTFS and im still getting the following screen:

Setup Cannot Create the folder:\WINDOWSSetup cannot continue until the folder is createdTo retry press enterTo quite press F3


Im stumped now

Edited by Lagerstars, 28 January 2009 - 10:07 AM.


#289
Lagerstars

Lagerstars

    Newbie

  • Member
  • 21 posts
I just tried renaming the Migrate.INF file to try your other suggestion above but i get the same issue.

The error above is generated directly after it says its checking the C: drive, it doesnt show any partition information.

#290
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,718 posts
  • OS:none specified
  • Country: Country Flag
Comment out AutoPartition=1 in ~BT\WINNT.SIF and try again.

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


#291
Lagerstars

Lagerstars

    Newbie

  • Member
  • 21 posts
Here are the last 3 screen sequences i get...

Attached Files



#292
Lagerstars

Lagerstars

    Newbie

  • Member
  • 21 posts
Ok, commenting out that line gets me to the Partition prompt.
The hard drive is showing as Disk 0, ID 0, Bus 0 and is first to show
The USB Stick is showing as Disk on Disk [MBR] and is below the HDD.

The HDD is C:
The USB is D: - Shouldnt this be U: or is that a later stage?

Selecting the Hard drive then proceeds with copying the files in the text based part.
Im going to compile the USB stick again with my original files with that line commented out to see if it then works, i guess changing it to a zero would also have the same effect?

Edited by Lagerstars, 28 January 2009 - 10:35 AM.


#293
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,718 posts
  • OS:none specified
  • Country: Country Flag
Rename back migrate.inf, it's responsible for U: letter and write-protecting USB stick during Text mode.
You may need to rebuild the stick if you started file copy part. Some compressed files must have been deleted.
Or simply copy over I386 folder from c:\xpcd\i386 to ~LS\i386 skipping existing files.

The program will create autopartition=0 in the next version. Should have spotted that in your first winnt.sif posted :blushing:

Edited by ilko_t, 28 January 2009 - 10:37 AM.

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


#294
Lagerstars

Lagerstars

    Newbie

  • Member
  • 21 posts
Perfect, thanks for your help. Ive just formatted the disk again and the tool is running now using all my original files, i'll then manually change that line but that looks to be promising

:)

#295
Serge2

Serge2
  • Member
  • 7 posts
Got a perfect result! Within 30 minutes I can have a brand new WinXPsp3 on my desktop, installed from my USB-stick, completely updated, and even configured as I want it, and done while I did my laundry. :-) And everything I want to add and install, is already at hand on the inserted USB-stick. Breath taking! Nothing but compliments to the authors..

But some advice and remarks from this newbie.. (correct me if I’m wrong.)

1. Install WinSetupFromUSB in the default directory.

First I installed it under Program Files; That gave problems. The USB-stick I made could boot and install, but gave error messages in the first phase, saying files could not be copied. (I don’t know which files, but there were a lot.)

2. Better not partition the USB-stick?

First tool I found to format my 8 GB A-data stick, that really worked was UT165_UFDUtility_v3.2.4.0.exe.
That could partition the stick in a Public part and a Secure (password protected) partition.
So I created a public part less than 2 GB, assuming (wrongly) I had to format it FAT.
Later I installed WinSetupFromUSB, and formatted that public part FAT again, using PEtoUSB.
But while installing XP the USB-stick I made gave error messages; it could not copy Bootfont.bin, ntldr and NTdetect.com. (but it did copy all the rest)
So I used the same utility again to make the whole stick public, resulting in one partition of 8 GB.
Then I used WinSetupFromUSB, and formatted the stick NTFS with the HP Format Tool in that. No errors anymore, when installing XP.

3. Hal.dll Error: Watch closely what you boot!

The automatic startup choice may fail. Immediately after booting from the stick, a window appears, telling there is a “first part” and a “second part” in the boot process. And after a few seconds it will start the selected part.
If there is nothing on the HDD yet, it will automatically select- and boot the first part. And after files are copied in the install process, the system will reboot, and in the window it will automatically select- and boot the second part (from the HDD).
But this can fail, especially when something went wrong before, and you are trying again. Then it may boot the second part, while there is (almost) nothing on the disk. This results in a Hal.dll error. Just reboot, and when the message “first part” appears on screen, press Enter.

Someone did a great job, making sure, the PC starts from the HDD and not from the stick, once XP is installed.

4. Copy additional files and folders Afterwards to the stick.

Once the stick is ready, you can simply copy/paste files and folders to it in Explorer, or remove them. So you can add manuals, Activation data, and installation programs.
And what’s even better: you can edit (update) those added files, because the stick simply is a HDD. This is a big advantage compared to a CD, that cannot (easily) be edited. Aaahh.. too good to be true!..

Warning: If you added extra files to your source-folder with your XP-install files, these will NOT be copied to the stick by WinSetupFromUSB. Add them manually afterwards.
So if you used Nlite to update the install files in the source folder, and you added your own files and folders there (to let Nlite create a XP-install ISO), and you use the same folder now to make the bootable USB-stick, the added files and folders will NOT be copied to the stick. Add them afterwards in Explorer.

5. Use Nlite first, to create the newest XP files. (for newbies: )

If you create an USB-XP-installstick, you want the newest updated XP-version, right? That takes some time, but is fun and useful..
WinSetupFromUSB needs a folder with all XP-files. So you copy everything from your XPsp1 or XPsp2 CD to that folder.
But then, first use Nlite to update that folder by slipstreaming the newest files into that. You can even pre-configure the new XP-look and choose options. And you can do an unattended installation, is you fill in all the questions at the XP-installation in advance. Nlite is fantastic!

OK, it takes some time to do it.. First you have to download:
- Service Pack 3 for your XP-type and language.
- Nlite.
- .Net Framework 2.0 or higher. Nlite needs it to be installed..
- Windows Updates Downloader, to download all essential XP-updates after SP3 at once.
- Use WUD to download all these updates.

Nlite operates as a Wizard. First you specify the folder with the XP-files, that will be changed. Second, it gives 8 options for slipstreaming and configuring. To avoid errors, I used Nlite 4 times.
a. Only select Service Pack in Nlite. Slipstream SP3. Start Nlite again and..
b. Only select Hotfixes.. in Nlite. Slipstream Internet Explorer 7. (1 file, found with WUD) Start Nlite again and..
c. Only select Hotfixes in Nlite. (be sure IE7 is not in the folder) Slipstream all essential Updates (Hotfixes).

Now better make a copy of the folder first, because during the next step many things may go wrong, especially forgetting to fill in a field for an unattended installation. I don’t trust Nlite to do it all well in several sessions, and I saw the advice here often, to do it all at once. So if something goes wrong at the later XP-installation, delete everything in the folder, paste the copied files back, and start again.

d. Select everything you want in Nlite (except SP and Hotfixes.) Click Next. For every selected category you’ll get many options to choose. When done with the last category, be sure to Save what you chose; Below, click Preset > Save Name: X.
If you are not satisfied with the XP-installation later, run Nlite again, and load that preset in the third Nlite window; Select the shown preset X, and below press Load. And after making the last change; again press Preset below > Save to X.
Still not good? Replace all files in the source folder, and start Nlite again, and load Preset X.

Nlite, at the end, will make a bootable ISO, or CD-Image. But you don’t have to. You can use the same source folder in WinSetupFromUSB to make a bootable USB-stick for XP-install.
Don’t forget to add your own files and folders to that stick, after making that.

6. Kiss..
Man!.. Who do I have to kiss for all this?!.. I offer a sheep to Odin or something.. But to keep everyone satisfied, a donation might be the best..

#296
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,718 posts
  • OS:none specified
  • Country: Country Flag
Wow! Nice review and thanks for the kind words :)

A few notes:

1. Install WinSetupFromUSB in the default directory.

This is fixed in 0.2, which is ready, but I'd have no test rig around for a few weeks.

Warning: If you added extra files to your source-folder with your XP-install files, these will NOT be copied to the stick by WinSetupFromUSB.

It copies everything in I386 folder to ~LS\I386 + some additional folders (PRINTERS etc.) from Windows CD. ReadMe.txt describes exactly what is copied.

5. Use Nlite first, to create the newest XP files.

Be careful and do NOT select Manual Install and Upgrade for removal. This is critical part.
And better off manually slipstream SP3 if needed. It seems some nLite versions break WMI when integrating SP3.thoro

Who do I have to kiss for all this

To mention a few:
http://www.msfn.org/...howtopic=111401
http://www.msfn.org/...o...st&p=780004

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


#297
jezza333

jezza333

    Newbie

  • Member
  • 22 posts
G'day everyone :)

This installer does not copy the XP setup files correctly when installing using Windows 7. I tried it in XP and it works fine...

OS: Windows 7 Beta 1 [Build 7000]
Target OS: Windows XP SP3 [pre-slipped]
Log: It's massive... but attached anyway.

The USB is recognised as bootable when I just copy the boot files [errors out though] and when I copy all of the files it boots straight from the HDD.

EDIT: Also, under XP, I cannot select the Winbuilder VistaPE folder. It has the 'Programs' folder, but is still rejected.

Thx :D

Attached Files


Edited by jezza333, 04 February 2009 - 07:34 PM.


#298
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,718 posts
  • OS:none specified
  • Country: Country Flag
Windows 7 would be supported when all other programs used fully support it- AutoIt, grub4dos installer etc. etc.

As for the VistaPE- can you create an empty folder SOURCES if doesn't exist, next to folder BOOT. Does it accept it now?
Did you use Vista Setup/PE/Recovery ISO field or BartPE/UBCD4Win...? You should use the former one.

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


#299
Serge2

Serge2
  • Member
  • 7 posts

Wow! Nice review and thanks for the kind words :)


Thanks for all your work, and your reply ilko!

Ever since Bart started with the subject Bootable, I find the atmosphere and the quality among people who work on that really great. Now and then I look at it, and discover very useful products and manuals. USB sticks? Multiboot? Of cóurse sysadmins are looking for that! And these experiments are really fun.. I was VERY satisfied with my first USB-stick, that did the ultimate job in 30 minutes! Okay, let there be some bugs.. not really my problem (yet), being just a customer. And I look forward to multiboot-sticks and multiboot installations on one partition. Just for fun, if I have the time.

But I am thinking about you.. It's fun to start all this, but as with anything, there come the bugs and the nags, the exceptions and the fixes you have to find fot everything. That is the hard work. I hope you survive all that, and that the whole business will keep on giving you pleasure. It is really useful what you do.. :-)

Be careful and do NOT select Manual Install and Upgrade for removal. This is critical part.


I do not even see that option in Nlite 1.4.9.1, so there can't be to many people getting into trouble by that.. Where is it?..

And better off manually slipstream SP3 if needed. .

How can you do that manually? Do you mean unpacking SP3, and copy everything into i386 or so, overwriting all existing files?

It seems some nLite versions break WMI when integrating SP3.thoro.

What is MPI? Not Windows Media Player? What do I have to look out for?..

Just answer, if you have any time.. I am sure, you do all you can, and I'll wait for updates.. I know all about being too busy. :-) I just hope you like what you do.. :-)

Edited by Serge2, 05 February 2009 - 10:57 AM.


#300
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,718 posts
  • OS:none specified
  • Country: Country Flag

I do not even see that option in Nlite 1.4.9.1, so there can't be to many people getting into trouble by that.. Where is it?..

Look at the FAQs, Q2/A2:
http://www.msfn.org/...howtopic=116766

Is it still present in nLite?

How can you do that manually?

http://www.howtohave...ce-pack-3.shtml

C:\Downloads\XPSP3.exe /integrate:C:\XPSETUPCD


What is MPI?

WMI*:
http://en.wikipedia....Instrumentation
http://msdn.microsof...y/aa394582.aspx

Some programs, VBS scripts etc. make use of WMI, WinSetupFromUSB as well, in order to obtain USB drive properties ;)

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





16 user(s) are reading this topic

1 members, 15 guests, 0 anonymous users


    onlyrasel


How to remove advertisement from MSFN