Hi, 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 softwares
2) 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
==================
Quote
cmdow @ /HID
@echo off
IF 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\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /f
REG ADD %KEY%\002 /VE /D "MSN Messenger 6.2" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\MSN\MsnMsgs.msi /qn" /f
REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /f
REG 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" /f
EXIT
@echo off
IF 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\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /f
REG ADD %KEY%\002 /VE /D "MSN Messenger 6.2" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\MSN\MsnMsgs.msi /qn" /f
REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /f
REG 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" /f
EXIT
$OEM$\CMDLINES.TXT
==================
Quote
[COMMANDS]
"RunOnceEx.cmd"
"RunOnceEx.cmd"
==================
$OEM$\$1\Install\prepare.cmd
==================
Quote
cmdow @ /HID
REM --- 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
REM --- 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
==================
Quote
@echo off
ECHO.
ECHO Installing Q823718 - MDAC
start /wait %systemdrive%\install\hotfixes\Q823718.exe /C:"dahotfix.exe /q /n" /q
ECHO.
ECHO Installing Q817778 - Advanced Networking Pack
start /wait %systemdrive%\install\hotfixes\Q817778.exe /Q /O /N /Z
ECHO.
ECHO Installing WMFSDK - Windows Media Component Setup Application
start /wait %systemdrive%\install\hotfixes\WMFSDK.exe /Q:A /R:N
ECHO.
ECHO Installing Q831240 - HighMAT CD Writing Wizarde Setup
start /wait %systemdrive%\install\hotfixes\Q831240.exe
ECHO.
ECHO Installing Q820291...
start /wait %systemdrive%\install\Hotfixes\Q820291.exe /Q /M /Z
ECHO.
ECHO Installing .NET Framework v1.1
ECHO Please wait...
start /wait %systemdrive%\install\NetFramework\netfx.msi /qb
ECHO Installing .NET Framework v1.1 SP1
ECHO Please wait...
start /wait %systemdrive%\install\NetFramework\NDP1.1sp1-KB867460-X86.exe /Q
ECHO.
ECHO Installing Windows Media Player 10
ECHO Please wait...
start /wait %systemdrive%\install\WMP10\MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"
ECHO.
ECHO Installing WinRAR 3.20
ECHO Please wait...
start /wait %systemdrive%\install\WinRAR\wrar342.exe /s
ECHO.
ECHO Registering Flashget 1.65...
COPY %systemdrive%\install\WinRAR\rarreg.key %systemdrive%\PCArtSoft Files\WinRAR
ECHO.
ECHO Installing Flashget 1.65
ECHO Please wait...
start /wait %systemdrive%\install\flashget\fg165.exe /S
ECHO.
ECHO Registering Flashget 1.65...
REGEDIT /S %systemdrive%\install\flashget\register.reg
ECHO.
ECHO Installing ACDSee PowerPack v7.0
ECHO Please wait...
start /wait %systemdrive%\Install\ACDSee\ACDSee.msi /QB PIDKEY=4X7DFK-BYFFN-3YMRBM-4Z657ST LICENSE_MODEL=Full
ECHO.
ECHO Deleting Shortcuts and Applying Tweaks
del "%AllUsersProfile%\Desktop\ACD FotoSlate 3.1.lnk"
del "%AllUsersProfile%\Desktop\ACD Photo Editor 3.1.lnk"
REGEDIT /S %systemdrive%\Install\ACDSee\register.reg
EXIT
ECHO.
ECHO Installing Q823718 - MDAC
start /wait %systemdrive%\install\hotfixes\Q823718.exe /C:"dahotfix.exe /q /n" /q
ECHO.
ECHO Installing Q817778 - Advanced Networking Pack
start /wait %systemdrive%\install\hotfixes\Q817778.exe /Q /O /N /Z
ECHO.
ECHO Installing WMFSDK - Windows Media Component Setup Application
start /wait %systemdrive%\install\hotfixes\WMFSDK.exe /Q:A /R:N
ECHO.
ECHO Installing Q831240 - HighMAT CD Writing Wizarde Setup
start /wait %systemdrive%\install\hotfixes\Q831240.exe
ECHO.
ECHO Installing Q820291...
start /wait %systemdrive%\install\Hotfixes\Q820291.exe /Q /M /Z
ECHO.
ECHO Installing .NET Framework v1.1
ECHO Please wait...
start /wait %systemdrive%\install\NetFramework\netfx.msi /qb
ECHO Installing .NET Framework v1.1 SP1
ECHO Please wait...
start /wait %systemdrive%\install\NetFramework\NDP1.1sp1-KB867460-X86.exe /Q
ECHO.
ECHO Installing Windows Media Player 10
ECHO Please wait...
start /wait %systemdrive%\install\WMP10\MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"
ECHO.
ECHO Installing WinRAR 3.20
ECHO Please wait...
start /wait %systemdrive%\install\WinRAR\wrar342.exe /s
ECHO.
ECHO Registering Flashget 1.65...
COPY %systemdrive%\install\WinRAR\rarreg.key %systemdrive%\PCArtSoft Files\WinRAR
ECHO.
ECHO Installing Flashget 1.65
ECHO Please wait...
start /wait %systemdrive%\install\flashget\fg165.exe /S
ECHO.
ECHO Registering Flashget 1.65...
REGEDIT /S %systemdrive%\install\flashget\register.reg
ECHO.
ECHO Installing ACDSee PowerPack v7.0
ECHO Please wait...
start /wait %systemdrive%\Install\ACDSee\ACDSee.msi /QB PIDKEY=4X7DFK-BYFFN-3YMRBM-4Z657ST LICENSE_MODEL=Full
ECHO.
ECHO Deleting Shortcuts and Applying Tweaks
del "%AllUsersProfile%\Desktop\ACD FotoSlate 3.1.lnk"
del "%AllUsersProfile%\Desktop\ACD Photo Editor 3.1.lnk"
REGEDIT /S %systemdrive%\Install\ACDSee\register.reg
EXIT
==================
i386\WINNT.SIF
==================
Quote
[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"
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



Help
Back to top









