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

#101
ilko_t

ilko_t

    MSFN Addict

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

Just one thing, The second part of XP setup in Grub, where is the file NTLDR loaded from? Doesnt it have to be loaded from USB drive which has it? So why does it matter if Grub can't see my sata drive as like first part setupldr.bin from USB did the rest...

grub4dos starts ntldr on the usb disk which fails. Error message is from the latter, which cannot see your esata disk.

You still have the option to install XP on the same disk, but using the USB interface, links were given above.

Edited by ilko_t, 11 October 2008 - 06:53 PM.

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



How to remove advertisement from MSFN

#102
Vially

Vially
  • Member
  • 7 posts
Hello guys and thank you for this great tool :)

I think I might have came across a bug. Whenever I start LiveXP from my stick prepared with this tool I only have two empty folders in the start menu, Administrative tools and Startup, and PENetwork does not start. This does not happen if I use PEtoUSB or the bootable ISO, so something must go wrong with the tool. I have attached the log file, maybe you can find out something interesting from it. Please let me know if I need to provide any useful info.

Thanks, Vially

P.S. The logfile is attached because I could not copy/paste it, the post becomes empty.

Attached Files


Edited by Vially, 16 October 2008 - 01:10 AM.


#103
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,705 posts
  • OS:none specified
  • Country: Country Flag
Thanks, bug indeed.

Quick fix- create in USB drive root winbom.ini:
[Factory]
WinBOMType=WinPE
Reseal=No
[WinPE]
Restart=No
[PnPDriverUpdate]
[PnPDrivers]
[NetCards]
[UpdateInis]
[FactoryRunOnce]
[Branding]
[AppPreInstall]
and delete winnt.sif in \minint.

BartPE/UBCD4Win/WinFLPC were tested and did not need winbom.ini. Seems WinBuilder does need it.

Will fix that asap, winbom.ini doesn't seem to interfere if Windows setup coexists in the same partition.

edit: Apparently forum software was updated, there was a post above yours, which disappeared magically while I was trying to log in and reply.

Edited by ilko_t, 16 October 2008 - 02:28 AM.

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


#104
Vially

Vially
  • Member
  • 7 posts
Wow, thanks for the quick answer :). Unfortunately, this doesn't seem to resolve the problem. I have deleted winnt.sif from the minint folder and created the ini in the USB drive root, but there's no change. I have attached my winbom.ini, just in case something's wrong with it.

If you think there's something wrong with my livexp folder, I can upload the iso on a ftp and you can take a look, maybe there's something special with it... ?

Attached Files


Edited by Vially, 16 October 2008 - 03:03 AM.


#105
Vially

Vially
  • Member
  • 7 posts
I must also ad that the tool is reported as being infected with Worm.Win32.Autorun.pze by Kaspersky Antivirus. I have submitted a support request asking that they either confirm it is infected (which I doubt) or fix the false alarm...

Edited by Vially, 16 October 2008 - 03:55 AM.


#106
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,705 posts
  • OS:none specified
  • Country: Country Flag
Antivirus software for some reason is sensitive to AutoIt scripts, there are always false alarms. To stay on the safe side you may cross-check on virusscan.jotti.org or virustotal.com.
winbom.ini looks file, need to investigate further what else it could be.

edit:
What's the exact version of WinBulder you used?

Edited by ilko_t, 16 October 2008 - 11:30 AM.

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


#107
Vially

Vially
  • Member
  • 7 posts
Kasersky support staff says it's ok, so no problems here :) I just thought they might solve the issue so that it doesn't show up as a false alarm.
Winbuilder used was the latest 0.75beta5, build l. I have just downloaded beta 5o and will try again. I needed the beta to test a vistape, that's why I'm using beta WB.

#108
Vially

Vially
  • Member
  • 7 posts
I have checked and cross-checked the iso and target folder of Winbuilder, and it is quite clear. Using the CD-ISO or PEtoUSB, everything is fine. Using WinSetupFromUSB I get a blank startmenu, no network... etc. Can anyone please confirm that the latest version of WinSetupFromUSB is properly installing LiveXP to an USB stick and you can run PE from it without problems ?

Thanks, Vially.

#109
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,705 posts
  • OS:none specified
  • Country: Country Flag
Please copy ModelRam.exe from liveXP folder to root of USB disk and let me know if that works. This was the only change I did, just tested 075 beta E and it worked, not using winbom.ini.

Edited by ilko_t, 16 October 2008 - 07:00 PM.

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


#110
Kaida

Kaida
  • Member
  • 5 posts
1st of all, i like to thank you for the great speedy tool for those not so computer inclined.

I have a little problem when using the program, i had just wanted a simple usb installation with sp3 and i used nlite to use a oem copy of xp pro to slipstream it to sp3. after which i had copy the iso to a cd and is using the winsetupfromusb to make the usb files.

I noticed that when i install the windows from the usb drive, the session somehow became unattended and there was a preassign code to it. did i do something wrong in the setup? not sure if its a nlite prob or the winsetupfromusb. but all i did from nlite was to install sp3 and make bootable disk.

#111
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,705 posts
  • OS:none specified
  • Country: Country Flag
@Kaida- check if in your source you have unattended.txt. It's used as answer file if winnt.sif is not present.
As far as I know behavior when installing from a CD is the same- it looks for unattended.txt and uses it if winnt.sif is not present.

If you don't want to use these setting you can rename that file to anything else.

Make sure your source is on a hard disk, 0.1 A and B fail to change a few lines if source is on a CD. Fixed in the next version, which I am currently testing before publishing.

Edited by ilko_t, 16 October 2008 - 07:31 PM.

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


#112
Kaida

Kaida
  • Member
  • 5 posts

@Kaida- check if in your source you have unattended.txt. It's used as answer file if winnt.sif is not present.
As far as I know behavior when installing from a CD is the same- it looks for unattended.txt and uses it if winnt.sif is not present.

If you don't want to use these setting you can rename that file to anything else.

Make sure your source is on a hard disk, 0.1 A and B fail to change a few lines if source is on a CD. Fixed in the next version, which I am currently testing before publishing.


Hi Ilko, funny thing is that I tried installing from the CD and it was a normal attended session but when I use that CD to make the USB, I get the unattended. Is the file for the unattended.txt or winnt.sif you are mentioning about in the USB or on the CD source? which directory should i be looking for it at?

Noted that the source should be on the hard disk. will try to do the xcopy and make the usb again. i'm definately looking forward to your new release. great work out there.

Edited by Kaida, 16 October 2008 - 10:50 PM.


#113
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,705 posts
  • OS:none specified
  • Country: Country Flag
Just copy your XP source on the hard disk (drag&drop from Explorer would work too) and rename unattended.txt in I386 folder.
Next launch the program and continue.

Getting rid of this option, thanks for reporting :)

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


#114
Vially

Vially
  • Member
  • 7 posts
I am happy to report that copying modelram.exe into the usb flash root is working, everything loads fine in PE. Thank you soooo much :). And since I am here I would also like to express my point of view regarding WinSetupFromUSB:

I have read some posts earlier, and I saw that you are a little bit reluctant into adding advanced options in this tool because you want it to be easy for new users to use it. While I definitely agree that it should be straightforward for them, i also feel a little bit left out as a more advanced user. I strongly believe that having an option not to copy win9x and lang folders and to make the distribution unattended should be mandatory for this tool. Even if these options are command-line activated or hidden for regular users, they should definitely exist. You have to be aware that a regular user (the ones that you thing you are targeting) is not playing with livexp, parted and so on. It is much more likely that advanced users use this tool at least in the beginning. Please add an option to make the sources unattended and to remove the w9xupgrade and lang folders (like that command line tool has).

#115
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,705 posts
  • OS:none specified
  • Country: Country Flag
Version 0.1 uploaded, please look at first post for download links and list of changes.
In the next version - 0.2, which is almost ready the major change is, that all changes are made during GUI mode, thus user can unlpug the USB disk or start from internal disk right after GUI mode. Jaclaz is adding some functionality to binifix.cmd, which will be executed from presetup.cmd.

@wimb- if we edit $winnt$.inf in system32 before start of GUI mode and make msdosinitiated=0, at T-1 setup will not wipe out the temp folders, allowing to get rid of 2 scripts and perform everything during GUI part. This is what binifix going to perform since now presetup.cmd is always executed, no matter if BTS DP is present or not. I have tested with x64 and it works too.
I am using presetup.cmd to launch spdrvscn.exe from Vernalex (has 32 and 64 bit version), as per this thread:
http://www.msfn.org/...howtopic=123023

Basically unattended section is almost fully covered, besides, presetup.cmd gives many other opportunities.

@Vially- thanks for the report, I think that's the only issue and it's fixed now.
As for the unattended part- why not using SetupMgr.exe for example? I put in Docs\Useful_Links.txt link to it and guide for using it, if not already in \SUPPORT\TOOLS\Deploy.cab. It creates answer file in seconds.
Lang&win9x folders- if you never use them why just not delete them from the hard disk, just curious. I am considering completely different GUI, still working on it as much as time allows. It will have tabs for each multiboot option added, thus interface will not be overloaded and I can add more checkboxes/options, however, this will not be out in a week or month, just spare time does not allow.

edit: how about a button "advanced", which opens up another GUI with advanced settings?

Edited by ilko_t, 17 October 2008 - 02:44 AM.

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


#116
Vially

Vially
  • Member
  • 7 posts
Yes, you are right about deleting the folders, this can be done manually, but of course if you will add an advanced button, then you can also add an option there for that. I actually believe that having a separate small button and window for advanced options would be a good idea for the moment, or you can just add line in an XML settings file, like

Advanced options=1

and if it is 0 the user will be prompted about not removing the stick... etc and he will see no advanced options, but if it is set as 1 (or boolean YES - your call) all advanced options will available but all prompts like the one advising not to remove the usb stick will not be displayed (an advanced user is supposed to know that)

And last, from my experience at working with program GUI design, I know that the most important thing is to have a clear idea about what buttons and options you want, and then design the GUI. If you don't have a clear idea about these (like in our case, where the functionality is developed along with the GUI), the best option is to go with a tabbed design. This way, you can always rearrange the different options on different tabs without too much hassle, you can add or remove tabs, but the interface will be clean and easy to use. If you will stick to single windows, you will either have too many buttons to open them, or you will have too many or too few buttons on them, as you add/remove functionality.

Hope it helps,
Vially

Edited by Vially, 17 October 2008 - 03:07 AM.


#117
Kaida

Kaida
  • Member
  • 5 posts

Just copy your XP source on the hard disk (drag&drop from Explorer would work too) and rename unattended.txt in I386 folder.
Next launch the program and continue.

Getting rid of this option, thanks for reporting :)


Hi ilko, I had noticed that there is a unattended.txt in the E:\$WIN_NT$.~LS\I386 too. can i just rename or delete from there? previously when you said there is some problem using the source from the CD. could you elaborate on that?

#118
jaclaz

jaclaz

    The Finder

  • Developer
  • 13,985 posts
  • OS:none specified
  • Country: Country Flag
@Vially
All suggestions are welcome, but the idea of this GUI was to have something SIMPLER than the already existing batches.

You may want to re-read the first posts of this thread:
http://www.msfn.org/...S...4.html&st=4
up to:
http://www.msfn.org/...S....html&st=10

For the "Advanced" user's the way to go is undoubtedly the wimb's batches as they offer more choices and are much more "customizable".

The GUI tool was an attempt to simplify life to the less "computer savy" people.

I don't think that making two "complex" tools basically with the same "engine under the hood" but with different "look" is useful. :unsure:

Everything should be made as simple as possible, but not simpler.


Simplicity is the ultimate sophistication.


jaclaz

#119
wimb

wimb

    Senior Member

  • Developer
  • 676 posts

@wimb- if we edit $winnt$.inf in system32 before start of GUI mode and make msdosinitiated=0, at T-1 setup will not wipe out the temp folders, allowing to get rid of 2 scripts and perform everything during GUI part.

Hi ilko,

Very good idea :)

Thanks for providing the AutoIt3 Source code. It is quite an impressive peace of work.
I have just finished and Uploaded my first AutoIt3 GUI module for USB_XP_Setup.
It is a GUI for Display and Edit of the winnt.sif file for providing the XP Setup parameters
to be used in $WIN_NT$.~BT folder. It makes live again easier :)

I am sure your source code will help me a lot in programming USB_XP_Setup completely with AutoIt3.

wimb

Edited by wimb, 17 October 2008 - 10:09 AM.


#120
ilko_t

ilko_t

    MSFN Addict

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

Yes, you are right about deleting the folders, this can be done manually, but of course if you will add an advanced button, then you can also add an option there for that. I actually believe that having a separate small button and window for advanced options would be a good idea for the moment, or you can just add line in an XML settings file, like

Advanced options=1

and if it is 0 the user will be prompted about not removing the stick... etc and he will see no advanced options, but if it is set as 1 (or boolean YES - your call) all advanced options will available but all prompts like the one advising not to remove the usb stick will not be displayed (an advanced user is supposed to know that)

And last, from my experience at working with program GUI design, I know that the most important thing is to have a clear idea about what buttons and options you want, and then design the GUI. If you don't have a clear idea about these (like in our case, where the functionality is developed along with the GUI), the best option is to go with a tabbed design. This way, you can always rearrange the different options on different tabs without too much hassle, you can add or remove tabs, but the interface will be clean and easy to use. If you will stick to single windows, you will either have too many buttons to open them, or you will have too many or too few buttons on them, as you add/remove functionality.

Hope it helps,
Vially

Thanks for the suggestions and sharing your experience, will have that in mind :)



Just copy your XP source on the hard disk (drag&drop from Explorer would work too) and rename unattended.txt in I386 folder.
Next launch the program and continue.

Getting rid of this option, thanks for reporting :)


Hi ilko, I had noticed that there is a unattended.txt in the E:\$WIN_NT$.~LS\I386 too. can i just rename or delete from there? previously when you said there is some problem using the source from the CD. could you elaborate on that?

Deleting from ~LS folder won't help, you need to delete or rename it in the source folder, before running the program. However, this is no longer required for 0.1 version, it will not use unattend.txt as an answer file when winnt.sif is not present

If source is on a CD read-only attributes are preserved while copying files. In this case AutoIt fails to edit the files we amend- txtsetup.sif, winnt.sif, presetup.cmd... The latter 2 were fixed in beta, but not the first. In 0.1 this has been taken care of, and source should be fine to be used from a CD.


@wimb- if we edit $winnt$.inf in system32 before start of GUI mode and make msdosinitiated=0, at T-1 setup will not wipe out the temp folders, allowing to get rid of 2 scripts and perform everything during GUI part.

Hi ilko,

Very good idea :)

Thanks for providing the AutoIt3 Source code. It is quite an impressive peace of work.
I have just finished and Uploaded my first AutoIt3 GUI module for USB_XP_Setup.
It is a GUI for Display and Edit of the winnt.sif file for providing the XP Setup parameters
to be used in $WIN_NT$.~BT folder. It makes live again easier :)

I am sure your source code will help me a lot in programming USB_XP_Setup completely with AutoIt3.

wimb

Hope it helps you :)
Mind you, don;t rely completely on what I wrote, there is a lot to be improved in terms of error checking etc. It just happens to work, sometimes.. lol

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


#121
Kaida

Kaida
  • Member
  • 5 posts
ilko you are the best! :thumbup im redoing my source from cd on 0.1 now :)

in future if i need to do go deeper for unattended session, i will just need to have a winnt.sif & unattend.txt inside the i.386 right? or i could also use the beta and just have the txt file probably heh

#122
ilko_t

ilko_t

    MSFN Addict

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

in future if i need to do go deeper for unattended session, i will just need to have a winnt.sif & unattend.txt inside the i.386 right? or i could also use the beta and just have the txt file probably heh

You need to have WINNT.SIF inside XpSource\I386 folder, that would be only file used as answer file.

Edited by ilko_t, 17 October 2008 - 07:30 PM.

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


#123
Kaida

Kaida
  • Member
  • 5 posts
0.1 tested working :)

1 thing i like to ask though, when windows boot up, it goes into a F8 bootmenu that ask if you want to boot to windows or the usb recovery tools. is there a way to disable that and boot right into windows?

#124
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,705 posts
  • OS:none specified
  • Country: Country Flag
Good, knowing who wrote it I am surprised that it worked ;)

As for the repair entry:

\DOCS\HOW-TOs.txt:

12. Program adds additional entry in BOOT.INI on the internal disk for USB repair, which is displayed during boot. Without it you cannot perform Windows repair installation from USB disk.
If this entry bothers you, right click on My Computer, select Properties-->Advanced-->Startup and Recovery group Settings and
either decrease "Time to display list of operating system" to 5-10 seconds, or press Edit, remove the line for USB repair and save the file.


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


#125
Macster

Macster

    Newbie

  • Member
  • 26 posts
Well I tried it with XP SP 1 install files that were saved to the HD from the Install CD; they worked flawlessly. Great Work!!! :thumbup

I seem to have stumbled upon something after I had slipstreamed SPs 2 and 3 to the install files.
So here is what I have in my notes:

Well things did not go so well. I got an error saying that:

"Booting 'First part of Windows XP Professional setup'

Filesystem type is fat, partition type 0x0E
chainloader (hd0,0)/$WIN_NT$.~BT/SETUPLDR.BIN

Error 15: File not found.

Press any key to continue..." (BTW: where is the <any> key anyway? :P )

Upon investigation, I found that indeed setupldr.bin was not in the $WIN_NT$.~BT directory and that it was in the $WIN_NT$.~LS/I386 directory. So hmm, I guess no cookie tonite. Awe, bummer! I have to report this and look for a response in the morning. (Edited for grammatical errors.)


So anyways not sure where to go from here, but I thought you should know. Great work though! REALLY!!!

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

Okay, I found out why this didn't work. Leave it to me to find this one (of all the things!). WinSetupFromUSB 0.1 doesn't like commas any where in the path name. Cause when I took the commas out of the path name and recreated the install on the USB with the WinSetupFromUSB 0.1 program, everything was there in the $WIN_NT$.~BT. So the moral of this story - no commas is a good commas... LOL! (At least when it comes to folder names AND WinSetupFromUSB 0.1.) :wacko:

Boy ilko_t, aren't you glad I found this one? We would be going around at this for days... LOL!

Edited by Macster, 19 October 2008 - 03:46 AM.





5 user(s) are reading this topic

0 members, 5 guests, 0 anonymous users



How to remove advertisement from MSFN