kenneth11zz Posted September 22, 2005 Share Posted September 22, 2005 (edited) Hi,I finally decided to upgrade to Windows XP SP2 and transfer all my unatended scripts from SP1 to SP2. Everything works smoothly except the RunOnceEx.cmd. Its works fine in SP1. I even tried to run RunOnceEx.cmd on a SP2 machine, I get an error message "Error: Invalid Parameter". Has this being change in SP2? Any helps is really appreciated.Here is a copy of the RunOnceEx.cmdcmdow @ /HID@Echo OffSET PP=%systemdrive%\Install\Programs\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Programs" /fREM ------------------------------------------------------------------REM InstallING WINDOW COMPONENTSREG ADD %KEY%\110 /VE /D ".NET Framework v1.1 SP1" /fREG ADD %KEY%\110 /V 1 /D "%systemdrive%\Install\Programs\netfx11sp1.exe" /fREG ADD %KEY%\120 /VE /D "Notepad2" /fREG ADD %KEY%\120 /V 1 /D "xcopy /y "%systemdrive%\Install\Programs\Notepad.exe" "%systemroot%" /fREG ADD %KEY%\120 /V 2 /D "xcopy /y "%systemdrive%\Install\Programs\Notepad.exe" "%systemroot%\system32" /fREG ADD %KEY%\120 /V 3 /D "REGEDIT /S %systemdrive%\Install\Programs\Notepad.reg" /fREG ADD %KEY%\125 /VE /D "Windows Media Player 10" /fREG ADD %KEY%\125 /V 1 /D "%systemdrive%\Install\Programs\MP10.cmd" /fREG ADD %KEY%\125 /V 2 /D "%systemdrive%\Install\Programs\MP10Setup.exe /q:A /c:\"setup_wm.exe /Q /R:N\"" /fREG ADD %KEY%\125 /V 3 /D "REGEDIT /S %systemdrive%\Install\Programs\MP10Setup.reg" /fREM REG ADD %KEY%\140 /VE /D "Windows SP1 Hotfixes 2005.02" /fREM REG ADD %KEY%\140 /V 1 /D "%systemdrive%\Install\Scripts\Hotfixes_SP2.cmd" /fREM ------------------------------------------------------------------REM APPLICATIONSREG ADD %KEY%\310 /VE /D "Acrobat Reader 7.03" /fREG ADD %KEY%\310 /V 1 /D "%systemdrive%\Install\Programs\acroread703.exe" /fREG ADD %KEY%\310 /V 2 /D "REGEDIT /S %systemdrive%\Install\Programs\Acrobat_Reader_7.0.reg" /fREM ------------------------------------------------------------------REM IMPORTING REGISTRY TWEAKSREG ADD %KEY%\800 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\800 /V 1 /D "REGEDIT /S %systemdrive%\Install\Scripts\T12.Tweaks_XP_SP2.reg" /fREM Disable search in zip filesREM Disable show zip files as folders in Windows ExplorerREG ADD %KEY%\810 /VE /D "Disable Zip Search and Display Feature" /fREG ADD %KEY%\810 /V 1 /D "regsvr32 /u /s %windir%\system32\zipfldr.dll" /fREG ADD %KEY%\810 /V 2 /D "regsvr32 /u /s %windir%\system32\cabview.dll" /fREM REG ADD %KEY%\820 /VE /D "Change display resolution" /fREM REG ADD %KEY%\820 /V 1 /D "1365VidChng.exe 1024x768x32@85 -q" /fREM ------------------------------------------------------------------REM CLEANUP AND SHUTDOWNREG ADD %KEY%\900 /VE /D "CLEANUP AND SHUTDOWN" /fREG ADD %KEY%\900 /V 1 /D "%systemdrive%\Install\scripts\cleanup.cmd" /fREG ADD %KEY%\900 /V 2 /D "%systemdrive%\Install\scripts\shutdown.cmd" /fEXITHERE IS A COPY OF WINNT.SIF;Save this file to the I386 folder.;;SetupMgrTag[Data] AutoPartition=0 MsDosInitiated="0" UnattendedInstall="Yes"[Unattended] AutoActivate=No ;CrashDumpSetting="0" ;DisableDynamicUpdates=Yes DriverSigningPolicy="Ignore" ;FileSystem=LeaveAlone ;Hibernation=No NoWaitAfterTextMode=1 NoWaitAfterGUIMode=1 OemSigningPolicy=Ignore OemSkipEula=Yes OemFilesPath="..\$OEM$" ;Location of $OEM$ folder OemPreinstall=Yes ;Checks if the cmdlines.txt file exist in the $OEM$ folder or not. ;OemPnPDriversPath="path1;path2;path3 ...etc." Repartition=No TargetPath=\WINDOWS UnattendMode=FullUnattended UnattendSwitch="Yes" ;Skip the Welcome Setup Screen WaitForReboot="No"[SystemFileProtection] SFCQuota=0 ;SFCDisable=2[GuiUnattended] AdminPassword=* ;Default Adminstrator EncryptedAdminPassword=No;Default Adminstrator OEMSkipRegional=1 TimeZone=4 OemSkipWelcome=1 ;AutoLogon=No ;AutoLogonCount=1 ;ProfilesDir="%systemdrive%\Documents and Settings\"[UserData] ;ProductID=xxxx-xxxx-xxxx-xxxx-xxxxx FullName="Blue" OrgName="Home" ComputerName=BLUEE;[Display] ;BitsPerPel=16 ;Xresolution=1024 ;YResolution=768 ;Vrefresh=70;[Regional Settings] ;LanguageGroup=15,7,8,10,1[Identification] ;JoinWorkgroup="Home"[Networking] InstallDefaultComponents=Yes[TapiLocation] CountryCode=1 Dialing=Tone ;AreaCode=415 ;LongDistanceAccess="1"[Branding] BrandIEUsingUnattended=Yes[URL] Home_Page=about:blank[Components] ;MAIN Fax=off indexsrv_system=off msmsgs=off msnexplr=off ;ACCESSORIES Clipbook=off templates=off MousePoint=off ;GAMES Freecell=off Hearts=off Minesweeper=off Pinball=off Solitaire=off Spider=off ZoneGames=off ;OTHERS AutoUpdate=off Chat=off deskpaper=off Dialer=off FP_Extensions=off Fp_vdir_deploy=off HyperTrm=off media_clips=off OEAccess=off rec=off[Shell] DefaultStartPanelOff=No DefaultThemesOff=No ;CustomDefaultThemeFile="%systemroot%\Resources\Themes\Win2K Classic.Theme"[GuiRunOnce] Edited September 22, 2005 by kenneth11zz Link to comment Share on other sites More sharing options...
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