J-Boy Posted July 3, 2006 Posted July 3, 2006 (edited) Hi everybody..I made my very first Unattended windows xp yesterday.I used the great MSFN guide about it.But i have some problems.First the things which installed succesful:Windows XP HomeSP2All hotfixesI learned to input files on the computer, two apps in program files folder, which did not need any registration, så i just used the $Progs.But all the other i would have installed by RunOnceEx, failed.also my CleanUp.cmd did not do the job well. It removed all the backgrounds, but not the screensavers ?And it did not remove the start menu icons, but the install dir & the driver dir.I hope someone can & will help me.runonceex.cmd:cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Office 2003" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\o2k3\PRO11.msi /qb" /fREG ADD %KEY%\005 /VE /D "FrontPage 2003" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\o2k3\FP11.msi /qb" /fREG ADD %KEY%\005 /VE /D "Codecs" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\codecs2.6.exe /qb" /fREG ADD %KEY%\005 /VE /D "Winamp 5" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\winamp521.msi INI=%systemdrive%\install\winamp5.ini /qn" /fREG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fEXITcleanup.cmd:cmdow @ /HIDshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."net user aspnet /deleteDEL "%systemroot%\*.bmp"DEL "%systemroot%\Web\Wallpaper\*.jpg"DEL "%systemroot%\system32\dllcache\*.scr"DEL "%systemroot%\system32\*.scr"DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"RD /S /Q %systemdrive%\drivers\RD /S /Q %systemdrive%\install\EXITIf you need more for helping me just say.Thanks Edited July 3, 2006 by J-Boy
T D Posted July 3, 2006 Posted July 3, 2006 Of course it won't work, look @ this:REG ADD %KEY%\005 /VE /D "Office 2003" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\o2k3\PRO11.msi /qb" /fREG ADD %KEY%\005 /VE /D "FrontPage 2003" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\o2k3\FP11.msi /qb" /fREG ADD %KEY%\005 /VE /D "Codecs" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\codecs2.6.exe /qb" /fREG ADD %KEY%\005 /VE /D "Winamp 5" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\winamp521.msi INI=%systemdrive%\install\winamp5.ini /qn" /fYou've got the same number, 005.1st, the office 2003 key gets written.Then, frontpage overwrites it.Codecs overwrite that.Winamp overwrites that leaving only Winamp installed.A more suitable one could be: cmdow @ /HID@echo off@clsSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Office 2003" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\o2k3\PRO11.msi /qb" /fREG ADD %KEY%\010 /VE /D "FrontPage 2003" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\o2k3\FP11.msi /qb" /fREG ADD %KEY%\015 /VE /D "Codecs" /fREG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\codecs2.6.exe /qb" /fREG ADD %KEY%\020 /VE /D "Winamp 5" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\winamp521.msi INI=%systemdrive%\install\winamp5.ini /qn" /fREG ADD %KEY%\555 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\555 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fEXITNothing wrong w/cleanup.cmdHope this helped
J-Boy Posted July 3, 2006 Author Posted July 3, 2006 Thanks T D.I'll try that, and come back.But not even winamp was installed ?Well.. I'll try your code Thanks by Johnny
J-Boy Posted July 4, 2006 Author Posted July 4, 2006 Hi again T D.I have tried you code, and it was more correct this time.I saw det box, where it trys to install the apps, but it still don't install anything :sCan you or someone else explain why ?Thanks by J-Boy
bledd Posted July 4, 2006 Posted July 4, 2006 in the SAME folder as your I386 folder, you should have $OEM$\$1\Install folder..
T D Posted July 4, 2006 Posted July 4, 2006 Structure:XPCDdirs in XPCD: i386, $OEM$, (optional) SUPPORT, VALUEADD and DOCS (maybe CMPNTS?)FIles in XPCD: WIN51, WIN51IP(or IC on Home Edition), AUTORUN.INF (I deleted mine) and SETUP.EXE (that's crap, I never install in GUI mode anyway).
J-Boy Posted July 4, 2006 Author Posted July 4, 2006 Hi again..T D:XPCD Structure:dirs in XPCD: FIles in XPCD: WIN51, WIN51IC, AUTORUN.INF, SETUP.EXE, BOOTFONT.BIN, WIN51IC.SP1, win51ic.SP2 and 3 htm-files.Do i need both SP1 & SP2 ?bleed:-i386-SUPPORT-VALUEADD-DOCS-DOTNETFIX+$OEM$ -$Docs -$Progs -$$ +$1 -Drivers -Install <-- That one, right ?Thanks..
Takeshi Posted July 5, 2006 Posted July 5, 2006 WIN51IC.SP1, win51ic.SP2You only need SP2.The htm files aren't necessary.
blinkdt Posted July 5, 2006 Posted July 5, 2006 (edited) -Install <-- That one, right ?You need to ensure that the "Install" directory is inside the $OEM$ directory, per bledd. The purpose of the $OEM$ directory and OemPreinstall=Yes in WINNT.SIF's [unattended] section is to copy the contents of $OEM$ to the local hard drive. No copy, no worky. You could run the install from CD, but it's a tad more problematic.More HERE. Follow it to the letter and you should be OK.$OEM$\$1\Install\Your Stuff Here Edited July 7, 2006 by blinkdt
J-Boy Posted July 5, 2006 Author Posted July 5, 2006 (edited) Hi again..I have made a new try..Now i get M$ Office installed..But not Winamp and the MSFN Codecs.. runonceex.cmd:cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Office 2003" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\programmer\Office 2003\PRO11.msi /qb" /fREG ADD %KEY%\010 /VE /D "FrontPage 2003" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\programmer\Frontpage\FP11.msi /qb" /fREG ADD %KEY%\015 /VE /D "Codecs" /fREG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\codecs\codecs2.6.exe /qb" /fREG ADD %KEY%\020 /VE /D "Winamp 5" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\programmer\winamp521.msi INI=%systemdrive%\install\programmer\winamp5.ini /qn" /fREG ADD %KEY%\555 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\555 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fEXITcleanup.cmd:cmdow @ /HIDshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."net user aspnet /deleteDEL "%systemroot%\*.bmp"DEL "%systemroot%\Web\Wallpaper\*.jpg"DEL "%systemroot%\system32\dllcache\*.scr"DEL "%systemroot%\system32\*.scr"DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"DEL "%AllUsersProfile%.WINDOWS\Start Menu\Windows Update.lnk"DEL "%AllUsersProfile%.WINDOWS\Start Menu\Set Program Access and Defaults.lnk"DEL "%AllUsersProfile%.WINDOWS\Start Menu\Windows Catalog.lnk"RD /S /Q %systemdrive%\drivers\RD /S /Q %systemdrive%\install\EXITWhen i delete the *.scr-files, they are just replaced in same second as they are removed Thanks Edited July 5, 2006 by J-Boy
T D Posted July 5, 2006 Posted July 5, 2006 (edited) You need setup.htm if you install via upgrade mode. So if you run winnt32.exe basically.Listen to blinkdt...Structure of "Install" folder:<Path_to_xp_source>\$OEM$\$1\Install\Put O2k3, winamp5.exe etc in here. Edited July 5, 2006 by T D
J-Boy Posted July 5, 2006 Author Posted July 5, 2006 You need setup.htm if you install via upgrade mode. So if you run winnt32.exe basically.I did not have a setup.htm, but its not a upgrade cd i have.Listen to blinkdt...Structure of "Install" folder:<Path_to_xp_source>\$OEM$\$1\Install\Put O2k3, winamp5.exe etc in here.Okay, my folder/file structure is like this:C:\-XPCDSP2 (= <Path_to_xp_source> right?)--$OEM$---$1----Drivers (still empty)----Install-----Codecs------codecs2.6.exe-----Programmer------Frontpage (FP11.MSI and all other files for FP)------Office2003 (PRO11.MSI and all other files for Office 2003)------Winamp5.ini------Winamp521.msi-----cleanup.cmd---$$----System32-----cmdow.exe---$Docs---$Progs---cmdlines.txt---runonceex.cmd--DOCS (2 files = txt & gif)--DOTNETFX (25 files)--I386 (6538 files & 163 folders)--VALUEADD (65 files & 20 folders)--BOOTFONT.BIN--WIN51--WIN51IC--WIN51IC.SP2
J-Boy Posted July 6, 2006 Author Posted July 6, 2006 (edited) Looks good to me But Winamp and the msfn codec pack, are still not installed :sI don't see the reason :s Have you any ideas..Thanks by J-Boy Edited July 6, 2006 by J-Boy
muiz Posted July 6, 2006 Posted July 6, 2006 (edited) REG ADD %KEY%\015 /VE /D "Codecs" /fREG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\codecs\codecs2.6.exe /qb" /fREG ADD %KEY%\020 /VE /D "Winamp 5" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\programmer\winamp521.msi INI=%systemdrive%\install\programmer\winamp5.ini /qn" /fIf im right the codecs pack hasnt got any switches , so no need for the /qbAnd as for winamp i see that you use an very old version.There is a switchless installer for the latest version of Winamp AudioPlayer ver. v5.2.4.703 :http://www.msfn.org/board/index.php?showtopic=68232&hl=winampGood luck... Edited July 6, 2006 by muiz
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