tester444 Posted January 25, 2005 Posted January 25, 2005 GreetingsHi, i'm new here but i always read threads from time to time, and i always find the answers that helpme doing what ever i needed to do.. But i codn't solve this problem after days of trying till i giveup!!.. anyway..My problem here is that:After installing windows XP Home SP2 from an unattend installation CD i made the Batch file for application preinstallation doesn't work and the "Install" folder is not copied to the HardDisk...!Keys:1) I make an WinXP Home SP1 and i didn't have any problem in preinstallated softwares.2) I used with SP2 CD the same batch/sif files and Directory structure i used with SP1 CD.3) After installing from my SP1 CD i find a directory named "Install" in the HD which have my preinstalled softwares (Note: i didn't make any cleanup files) but with SP2 CD that directory in not been copied to the HD!4) Files in folder "$$" are copied to hard disk but folder "$1" which have the "Install" folder NO.Note:1) I don't won't to use RunOnceEX.CMD to preinstall softwares2) I'm using hotfixes.CMD to install software and hotfixes and it's worked fine with My SP1 CD.3) I don't wish to change my folder structure unless its neccesary for SP2.My Files:==================$OEM$\RunOnceEX.CMD==================cmdow @ /HID@echo offIF EXIST D:\CD.txt set CDROM=D:IF EXIST E:\CD.txt set CDROM=E:IF EXIST F:\CD.txt set CDROM=F:IF EXIST G:\CD.txt set CDROM=G:IF EXIST H:\CD.txt set CDROM=H:IF EXIST I:\CD.txt set CDROM=I:IF EXIST J:\CD.txt set CDROM=J:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D "Preparing Installation..." /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /fREG ADD %KEY%\002 /VE /D "MSN Messenger 6.2" /fREG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\MSN\MsnMsgs.msi /qn" /fREG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\install\Reg\regtweaks.reg" /f;REG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /f;REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fEXIT==================$OEM$\CMDLINES.TXT==================[COMMANDS]"RunOnceEx.cmd"==================$OEM$\$1\Install\prepare.cmd==================cmdow @ /HIDREM --- REMOVE CURRENT USER STARTMENU \ PROGRAMS SHORTCUTS ---DEL "%UserProfile%\Start Menu\Programs\Remote Assistance.lnk"DEL "%UserProfile%\Start Menu\Programs\Accessories\Program Compatibility Wizard.lnk"DEL "%UserProfile%\Start Menu\Programs\Accessories\Tour Windows XP.lnk"DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"EXIT==================$OEM$\$1\Install\hotfixes\hotfixes.cmd==================@echo off ECHO.ECHO Installing Q823718 - MDACstart /wait %systemdrive%\install\hotfixes\Q823718.exe /C:"dahotfix.exe /q /n" /qECHO.ECHO Installing Q817778 - Advanced Networking Packstart /wait %systemdrive%\install\hotfixes\Q817778.exe /Q /O /N /ZECHO.ECHO Installing WMFSDK - Windows Media Component Setup Applicationstart /wait %systemdrive%\install\hotfixes\WMFSDK.exe /Q:A /R:NECHO.ECHO Installing Q831240 - HighMAT CD Writing Wizarde Setupstart /wait %systemdrive%\install\hotfixes\Q831240.exeECHO.ECHO Installing Q820291...start /wait %systemdrive%\install\Hotfixes\Q820291.exe /Q /M /ZECHO.ECHO Installing .NET Framework v1.1ECHO Please wait...start /wait %systemdrive%\install\NetFramework\netfx.msi /qbECHO Installing .NET Framework v1.1 SP1ECHO Please wait...start /wait %systemdrive%\install\NetFramework\NDP1.1sp1-KB867460-X86.exe /QECHO.ECHO Installing Windows Media Player 10ECHO Please wait...start /wait %systemdrive%\install\WMP10\MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"ECHO.ECHO Installing WinRAR 3.20ECHO Please wait...start /wait %systemdrive%\install\WinRAR\wrar342.exe /sECHO.ECHO Registering Flashget 1.65...COPY %systemdrive%\install\WinRAR\rarreg.key %systemdrive%\PCArtSoft Files\WinRARECHO.ECHO Installing Flashget 1.65ECHO Please wait...start /wait %systemdrive%\install\flashget\fg165.exe /SECHO.ECHO Registering Flashget 1.65...REGEDIT /S %systemdrive%\install\flashget\register.regECHO.ECHO Installing ACDSee PowerPack v7.0ECHO Please wait...start /wait %systemdrive%\Install\ACDSee\ACDSee.msi /QB PIDKEY=4X7DFK-BYFFN-3YMRBM-4Z657ST LICENSE_MODEL=FullECHO.ECHO Deleting Shortcuts and Applying Tweaksdel "%AllUsersProfile%\Desktop\ACD FotoSlate 3.1.lnk"del "%AllUsersProfile%\Desktop\ACD Photo Editor 3.1.lnk"REGEDIT /S %systemdrive%\Install\ACDSee\register.regEXIT==================i386\WINNT.SIF==================[Data] AutoPartition=0 MsDosInitiated=0 UnattendedInstall=Yes[unattended] DriverSigningPolicy=Ignore UnattendMode=ProvideDefault OemSkipEula=Yes OemPreinstall=Yes ProgramFilesDir="C:\PCArtSoft Files" CommonProgramFilesDir="C:\PCArtSoft Files\Common Files" TargetPath=\WINDOWS FileSystem=* WaitForReboot=No[GuiUnattended] AdminPassword=pcarts TimeZone=150 ProfilesDir="C:\User Documents" OemSkipWelcome=1 OEMSkipRegional=1 AutoLogon=Yes[userData] FullName="Owner" ComputerName=PCArts_Code_000001[Display] Xresolution=800 Yresolution=600 BitsPerPel=16[TapiLocation] CountryCode=966 Dialing=Tone AreaCode=02[RegionalSettings] LanguageGroup=13 SystemLocale=00000401 UserLocale=00000401 InputLocale=0409:00000409[identification] JoinWorkgroup=PCArt_Group[Networking] InstallDefaultComponents=Yes[Components] AccessOpt=Off fax=On hypertrm=Off media_utopia=On WMAccess=Off WMPOCM=Off zonegames=Off MousePoint=On Vol=On msmsgs=Off[shell] DefaultStartPanelOff=Yes CustomDefaultThemeFile="%SYSTEMROOT%\Resources\Themes\ForeverBlue.Theme"[GuiRunOnce] Command0="%systemdrive%\Install\hotfixes\hotfixes.cmd"----------------------Thank you for your time...Best Regards
Astalavista Posted January 25, 2005 Posted January 25, 2005 Rule #0 Post in the correct forum. This should be in the Unattended section, reported and will be move laterRule #1dont post your serialRule #2dont post code that long. place it in a text file and attach it.[GuiRunOnce]Command0="%systemdrive%\Install\hotfixes\hotfixes.cmd"that is an outdated method of installing hotfixesa simpler method of doing this.hotfix.exe /integrate:x:\xp-cd\is your install folder located in xp-cd\$oem$\$1\Install ?why would u want to copy your files to your hard disk?why not leave the software on your CD or DVD?in runonceEX.cmd all u need to do is replace%systemdrive% with %cdrom%and add to the top of RunonceEX.cmd for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\WIN51 set CDROM=%%i:
tester444 Posted January 25, 2005 Author Posted January 25, 2005 First:Thanks for your quick responceAbout Rules:Rule #0I was thinking which forum to post it's an unattend question but it's about Preinstalled Applications, so i decide wrong apparently.. Rule #1Done Editied and deletedRule #2Excuse me but it's my first Post, but considered done.. (Next time)-----About your question:1) The new hotfix install method: hotfix.exe /integrate:x:\xp-cd\I need more information about the line:a- In which file i put this line?b- What is the perpuse of the switch "/integrate"?c- What is letter "x" how do i preffer to a CD drive which is changed from computer to another?d- I'm not installaing from a network to use a folder like "xp-cd"2) Is your install folder located in \$oem$\$1\Install ?a- Yes, it is.3) why would u want to copy your files to your hard disk?a- It's not what i wont i saw what my SP1_CD made, i saw the "install" directory copied from the CD: "$oem$\$1\Install" to HD: "Install"b- remember in my "winnt.sif" file i have a refrence:[GuiRunOnce]Command0="%systemdrive%\Install\hotfixes\hotfixes.cmd"* since i use %systemdrive% term it will lead to the my HD.* i read from yours unattend site "http://unattended.msfn.org/" that the files will automatically copied to the HD intalled drive!!!4) why not leave the software on your CD or DVD? in runonceEX.cmd all u need to do is replace %systemdrive% with %cdrom%a- sorry but now i'm totally LOST!.. i have read a topic in this forum that says there is no term such as "%cdrom%" because of that we need to have the directories beening copied which is automatically done.b- If i put the lines u said in the "runonceEX.cmd" file, what about the command in the "winnt.sif" file, is this the way i should right it:[GuiRunOnce]Command0="%cdrom%\Install\hotfixes\hotfixes.cmd"but in the "runonceEX.cmd" the term %cdrom% will be define, but in the "winnt.sif" how it will work??5) pls read this link ... it will do u goodhttp://www.msfn.org/board/index.php?showtopic=37499 a- i'm reading some pages, but i need to tell u i can't use some premerged hotfixes files because i'm not using English Interface..Thanks a lot again, hope u can help me...
Astalavista Posted January 25, 2005 Posted January 25, 2005 1) The new hotfix install method: hotfix.exe /integrate:x:\xp-cd\I need more information about the line:a- In which file i put this line?b- What is the perpuse of the switch "/integrate"?c- What is letter "x" how do i preffer to a CD drive which is changed from computer to another?d- I'm not installaing from a network to use a folder like "xp-cd"use the seach several topics exist on this.Step 2: [ Integrating Hotfixes and Patches ]Method 1: RyanVM XP Post - SP2 Update Pack http://www.ryanvm.net/msfn/updatepack.htmlMethod 2: Manual Install - http://rapidshare.de/files-en/426277/SP2_patches.rar.html4) why not leave the software on your CD or DVD? in runonceEX.cmd all u need to do is replace %systemdrive% with %cdrom%a- sorry but now i'm totally LOST!.. i have read a topic in this forum that says there is no term such as "%cdrom%" because of that we need to have theREAD link belowhttp://unattended.msfn.org/xp/runonceex_cd.htm
tester444 Posted January 25, 2005 Author Posted January 25, 2005 ok.. u know i tried to find the topic that said there is no "%cdrom%" term, but i didn't find it maybe in other forum..!.. anyway..I will try the new steps u gave me tomorrow i want to sleep .. thanks in advance..I still wondering: why it's worked for SP1? why the "Install" folder copied to HD in SP1 not SP2?Note: i cann't use the premerged files like "RyanVM XP" because i Don't use English Interface..See u tomorrow..
tester444 Posted January 26, 2005 Author Posted January 26, 2005 OK, i'm back.. I used some of the advises Mr. astalavista gave me and almost everything is looking goood..1) In Winnt.sif file i tried this:a- I used the code:[GuiRunOnce]Command0="%cdrom%\Install\hotfixes\hotfixes.cmd"It didn't worked at all, because as i said before the term %cdrom% isn't defined how the system will excute the file!b- i defined the term %cdrom% in the RunonceEX.cmd file and put the defined term in the winnt.sif file, the same problem it didn't worked..c- Finally i just removed the part [GuiRunOnce] from the winnt.sif completely.. i figured out that i don't needed at all in SP2Note: The [GuiRunOnce] section contains commands to execute the first time an end user logs on to the computer after GUI-mode Setup completes... but the RunonceEX.cmd could do this maybe this is worked only in SP2.. i think..2) In RunOnceEX.cmd file:a- I put the code astalavista gave me to define the cdrom for the setup which is:for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\WIN51 set CDROM=%%i:and i put it in the begaining of the file, after that i put the line:SET SOFTWARE=%CDROM%\Installwhich define the folder "install" in the cdrom to the term %software%b- Now i added the following lines to run the batch (named hotfixes) i made to excute my preinstalled softwares from within the RunOnceEX.cmd file:REG ADD %KEY%\005 /VE /D "Software Installation..." /fREG ADD %KEY%\005 /V 1 /D "%software%\hotfixes\hotfixes.cmd" /fit's worked fine .3) In hotfixes.cmd file (Note: Just a name i choosed for my batch file): a- i re-enter the cdrom definition codes as i putted in the RunOnceEX.cmd:FOR %%a IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%a:\WIN51 SET CDROM=%%a:SET SOFTWARE=%CDROM%\Installit didn't worked without reputing them!!.. i put them in the start of the batch file.b- i used the term %software% i just defined in the start of the patch before the software switch.. example:@echo off FOR %%a IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%a:\WIN51 SET CDROM=%%a:SET SOFTWARE=%CDROM%\InstallECHO.ECHO Installing Q817778 - Advanced Networking Packstart /wait %software%\hotfixes\Q817778.exe /Q /O /N /ZECHO.ECHO Installing .NET Framework v1.1ECHO Please wait...start /wait %software%\NetFramework\netfx.msi /qbECHO Installing .NET Framework v1.1 SP1ECHO Please wait...start /wait %software%\NetFramework\NDP1.1sp1-KB867460-X86.exe /QECHO.ECHO Installing Windows Media Player 10ECHO Please wait...start /wait %software%\WMP10\MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"======Now every thing is good thanks Mr. astalavista..But...I still have one more question about .NET Framework, i used the switch u just seen above, but it asked to Insert .NET Disk!!!!... how could i solve that???Thanks..Note: I do a search and i found some who get the same problem with .NET, this is the link: http://www.msfn.org/board/index.php?showto...74&hl=frameworkyou know what was the answer "ryanvm" excuse me but i like to know and learn not to just use...Best Regards
Astalavista Posted January 26, 2005 Posted January 26, 2005 1. Thank you for the compliments.2. Your Really hard headed aren't you. regarding the hotfixes.i told u to use the integrate command but u wont listen. u need to download all this hotfixes if u already patch with sp2KB834707.exeKB873339.exeKB884020.exeKB885222.exeKB885626.exeKB885835.exeKB885836.exeKB886185.exeKB886677.exeKB887797.exeKB888240.exeKB890175.exedownload them in your language when u hv finish PM me.I will write a batch for you.tell me where is your XP cd located.example c:\xpcd or d:\xpcd or e:\xpcdEdit your first post to reflect what u hv now. it is very confusing
tester444 Posted January 26, 2005 Author Posted January 26, 2005 ok Mr. astalavista considered done..and yes i Really hard headed with this and sometimes get sooo ... but i love to learn i love to fail and then try and then win... .. it's feel greate.. thanks again
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