nai22 Posted April 22, 2009 Posted April 22, 2009 for /f "tokens=3" %%i IN ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath" ^| findstr "REG_SZ"') do set SOURCE=%%iSET SOURCEPAUSEIF NOT DEFINED SOURCE ECHO "SOURCE variable is NOT defined"&PAUSE"%Source%I386\SVCPACK\IRFA.EXE""%Source%I386\SVCPACK\MP3D.exe""%Source%I386\SVCPACK\QIP.EXE""%Source%I386\SVCPACK\MPUI.EXE""%Source%I386\SVCPACK\Skype40.exe""%Source%I386\SVCPACK\GIMP.EXE""%Source%I386\SVCPACK\XNVF.EXE""%Source%I386\svcpack\OpenOffice.org3.0.1.exe""%Source%I386\SVCPACK\PAIN.EXE""%Source%I386\SVCPACK\AV9_Silent.exe""%Source%I386\SVCPACK\PDFC.EXE"PAUSEEXITi started this script manuallythis is the result:C:\WINDOWS\system32>for /F "tokens=3" %i IN ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath" | findstr "REG_SZ"') do set SOURCE=%iC:\WINDOWS\system32>set SOURCE=U:\$WIN_NT$.~LSC:\WINDOWS\system32>SET SOURCESOURCE=U:\$WIN_NT$.~LSC:\WINDOWS\system32>PAUSEDrücken Sie eine beliebige Taste . . .C:\WINDOWS\system32>IF NOT DEFINED SOURCE ECHO "SOURCE variable is NOT defined" & PAUSEC:\WINDOWS\system32>"U:\$WIN_NT$.~LSI386\SVCPACK\IRFA.EXE"Das System kann den angegebenen Pfad nicht finden.C:\WINDOWS\system32>"U:\$WIN_NT$.~LSI386\SVCPACK\MP3D.exe"Das System kann den angegebenen Pfad nicht finden.C:\WINDOWS\system32>"U:\$WIN_NT$.~LSI386\SVCPACK\QIP.EXE"Das System kann den angegebenen Pfad nicht finden.C:\WINDOWS\system32>"U:\$WIN_NT$.~LSI386\SVCPACK\MPUI.EXE"Das System kann den angegebenen Pfad nicht finden.C:\WINDOWS\system32>"U:\$WIN_NT$.~LSI386\SVCPACK\Skype40.exe"Das System kann den angegebenen Pfad nicht finden.C:\WINDOWS\system32>"U:\$WIN_NT$.~LSI386\SVCPACK\GIMP.EXE"Das System kann den angegebenen Pfad nicht finden.C:\WINDOWS\system32>"U:\$WIN_NT$.~LSI386\SVCPACK\XNVF.EXE"Das System kann den angegebenen Pfad nicht finden.C:\WINDOWS\system32>"U:\$WIN_NT$.~LSI386\svcpack\OpenOffice.org3.0.1.exe"Das System kann den angegebenen Pfad nicht finden.C:\WINDOWS\system32>"U:\$WIN_NT$.~LSI386\SVCPACK\PAIN.EXE"Das System kann den angegebenen Pfad nicht finden.C:\WINDOWS\system32>"U:\$WIN_NT$.~LSI386\SVCPACK\AV9_Silent.exe"Das System kann den angegebenen Pfad nicht finden.C:\WINDOWS\system32>"U:\$WIN_NT$.~LSI386\SVCPACK\PDFC.EXE"Das System kann den angegebenen Pfad nicht finden.C:\WINDOWS\system32>PAUSEDrücken Sie eine beliebige Taste . . .
jaclaz Posted April 23, 2009 Posted April 23, 2009 As expected. the .cmd runs allright, but it cannot find any file and closes without doing anything.A more suitable .cmd:for /f "tokens=3" %%i IN ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath" ^| findstr "REG_SZ"') do set SOURCE=%%i::Adjust following to your actual pathSET RelPath=\$OEM$\$1\INSTALL::Adjust the above to your actual path"%Source%%RelPath%\SVCPACK\IRFA.EXE" "%Source%%RelPath%\SVCPACK\MP3D.exe""%Source%%RelPath%\SVCPACK\QIP.EXE""%Source%%RelPath%\SVCPACK\MPUI.EXE""%Source%%RelPath%\SVCPACK\Skype40.exe""%Source%%RelPath%\SVCPACK\GIMP.EXE""%Source%%RelPath%\SVCPACK\XNVF.EXE""%Source%%RelPath%\svcpack\OpenOffice.org3.0.1.exe""%Source%%RelPath%\SVCPACK\PAIN.EXE""%Source%%RelPath%\SVCPACK\AV9_Silent.exe""%Source%%RelPath%\SVCPACK\PDFC.EXE"EXITjaclaz
nai22 Posted April 23, 2009 Posted April 23, 2009 dear ilko t, dear jaclaz,thank you so much for helping me, now all problems being solved.installation success with guirunonce optionsolution:winnt.sif[GuiRunOnce]Command0=%SystemRoot%\System32\nLite.cmd @ ilko t that is it !!!nlite.cmdfor /f "tokens=3" %%i IN ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath" ^| findstr "REG_SZ"') do set SOURCE=%%iSET SOURCE"%Source%\I386\SVCPACK\IRFA.EXE""%Source%\I386\SVCPACK\MP3D.exe""%Source%\I386\SVCPACK\QIP.EXE""%Source%\I386\SVCPACK\MPUI.EXE""%Source%\I386\SVCPACK\Skype40.exe""%Source%\I386\SVCPACK\GIMP.EXE""%Source%\I386\SVCPACK\XNVF.EXE""%Source%\I386\svcpack\OpenOffice.org3.0.1.exe""%Source%\I386\SVCPACK\PAIN.EXE""%Source%\I386\SVCPACK\AV9_Silent.exe""%Source%\I386\SVCPACK\PDFC.EXE"EXIT jaclaz code was near 100% , only 1 "\" between %Source% and I386 was missing, thats why the script coudnt find the files on the stickagain thank you so much, the combination of your two tips was the solution for my problem, jiiipiiicheers
Sergo Posted April 29, 2009 Posted April 29, 2009 (edited) Edit:Tried on another machine (first one was Lenovo X61, this one lenovo M57e)it seems to be working OK============Tried new version todaySeems ok, but for some reason,windows doesn't boot from hard driveno errors, just blinking cursor,booting from usb using grub4dos and starting ntldr from _hard drive_ using boot.ini from hard drive works ok,installing same image from CD - OK.Fixmbr,fixboot from recovery console does not help. winnt.sif unattended section is now FULLY supported, including custom directories and drivers pathsc.f. presetup.cmdIF EXIST %CDDRIVE%\$WIN_NT$.~LS\$OEM$\$Progs\nul xcopy %CDDRIVE%\$WIN_NT$.~LS\$OEM$\$Progs\*.* "%systemdrive%\Program Files\" /i /k /e /r /y /hI changed%systemdrive%\Program Files\to %programfiles%\seems working. Edited April 29, 2009 by Sergo
jaclaz Posted April 30, 2009 Posted April 30, 2009 Fixmbr,fixboot from recovery console does not help. Sure they don't work.A blinking cursor means something is wrong in either the MBR or the bootsector DATA.Both Fixmbr and Fixboot "fix" the MBR or bootsector CODE.Save the MBR (one sector) first sector of PhysicaldriveSave the bootsector (one sector if FAT16, 6 sectors if FAT32 and 16 sectors in NTFS) first sector(s) of logicaldriveWith HDhacker:http://dimio.altervista.org/eng/Compress them together in a .zip file and attach it to your next post.BEFORE that, check that the Partition has been set as Active in the MBR, by using Beeblebrox:http://students.cs.byu.edu/~codyb/or a similar utility, or directly grub4dos command line.http://diddy.boot-land.net/grub4dos/files/basics.htmhttp://diddy.boot-land.net/grub4dos/files/cli.htmhttp://diddy.boot-land.net/grub4dos/files/commands.htmhttp://diddy.boot-land.net/grub4dos/files/....htm#makeactiveTypically when booted grub4dos from USB stick and no drive re-mappings hooked:makeactive (hd1,0)(hd0,0) is first partition of the booted device (the USB stick)(hd1,0) is first partition of the second device (the internal hard disk)jaclaz
ilko_t Posted April 30, 2009 Author Posted April 30, 2009 ...I changed%systemdrive%\Program Files\to %programfiles%\seems working.Nice catch, thanks.
Sergo Posted April 30, 2009 Posted April 30, 2009 Seems ok, but for some reason,windows doesn't boot from hard driveI tried to reinstall from a usb key again today on the same machine (X61)works ok.Hopefully it was a random glitch
JustSeanV67 Posted May 4, 2009 Posted May 4, 2009 I used this software to install XP on brand new AMD/MSI combo. This was a HUGE timesaver and I really appreciate it!No more burning CDs/DVDs ever again!This was done right... The first time!Anybody ever say if this was a "Green" alternative, as this helps not to have to use energy to burn the platters? I'd say so!Sean
zZolaa Posted May 6, 2009 Posted May 6, 2009 (edited) Hi thanks for this great project.I have 4 questions.1)My USB stick just has 1 partition... can I safely store Backup files on this same same partition as WinSetupFromUSB setup files are?For example, I put them there in \Backup\ onto same partition as \$WIN_NT$.~BT\ etc?The setup procedure will not delete it?2)How can I keep setup from deleting some files so I have to "fix" the Key every time I use it?I want to use this key to install computers at a Lab I administer... I would like to just go from computer to computer and install each one from USB, without having to run WinSetupFromUSB 30 times, which ruins it, then I might as well use a CD...3)Is this program "portable" ?Does WinSetupFromUSB have to be in C:\WinSetupFromUSB\ ?Can I just make copy of folder then uninstall it and delete uninstall.exe?And then can I use it from E:\Apps\ ?4)I use nLite, will my final C:\Windows\ install be larger,because I had to keep "Operating System Options -> Manual Install and Upgrade" support? Edited May 6, 2009 by zZolaa
ilko_t Posted May 6, 2009 Author Posted May 6, 2009 I used this software to install XP on brand new AMD/MSI combo. This was a HUGE timesaver and I really appreciate it!No more burning CDs/DVDs ever again!This was done right... The first time!Anybody ever say if this was a "Green" alternative, as this helps not to have to use energy to burn the platters? I'd say so!SeanThanks for the kind words Hi thanks for this great project.I have 4 questions...1) You should be safe to do so, just do it AFTER formatting the USB stick and praparing it with WSFUSB. The reason is that some BIOSes won't find the boot files if they are placed beyond certain boundary.2) If you will be installing XP 32 bits SP2 or SP3 then there should be no files deleted. If it's XP x64, 2003 or 2000 then there is a quick workaround since you have 30 similar machines or all they have 1 internal hard disk and no card readers attached, just say if you need details.3) You should be safe to move it elsewhere as well as you can initially install it elsewhere, preferably in path without spaces in it, although this should be already fixed but not thoroughly tested.4) No, this would not grow your resulting Windows folder.
cochabambinito Posted May 7, 2009 Posted May 7, 2009 Is there a version supporting Windows 7 RC?When I Browse for providing the path of setup files (the DVD) it says "could not find DOSNET.INF".... no valid source, etc...
ilko_t Posted May 7, 2009 Author Posted May 7, 2009 Are you selecting I386 folder itself? Do not, select its parent folder, which contains I386.
cochabambinito Posted May 8, 2009 Posted May 8, 2009 Of course.. I've tried everything! the root folder, the ither folders... THERE IS NOT a I386 folder in Win7 installer...Are you selecting I386 folder itself? Do not, select its parent folder, which contains I386.
ilko_t Posted May 8, 2009 Author Posted May 8, 2009 Wait a second, you need to put Windows 7 on the USB stick, right? Then use the appropriate field, I guess you are using the one for 2000/XP/2003, do NOT. Use the appropriate field and select the root of the DVD:Initially I thought you run the program on Windows 7, not that you need to put 7 on USB stick.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now