dorguy Posted August 20, 2004 Posted August 20, 2004 HiI make a Unattended Windows XP CD but when it logon for the first time, it wont run my RunOnceEx.cmd..Here is my winnt.sif;SetupMgrTag[Data] AutoPartition=1 MsDosInitiated="0" UnattendedInstall="Yes" AutomaticUpdates=yes[unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes DriverSigningPolicy = Ignore OemPnPDriversPath = "Drivers\000_l;Drivers\001_Radeon\2KXP_INF;Drivers\003_s;" TargetPath=\WINDOWS Repartition = Yes[GuiUnattended] AdminPassword=* EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=35 OemSkipWelcome=1[userData] ProductKey=none FullName=none OrgName=none ComputerName=none[Display] BitsPerPel=32 Xresolution=1024 YResolution=768 Vrefresh=85[TapiLocation] CountryCode=107 Dialing=Tone AreaCode=450[RegionalSettings] LanguageGroup=1 SystemLocale=00001009 UserLocale=00001009 InputLocale=1009:00000409[GuiRunOnce] Command0=" %systemdrive%\install\RunOnceEx.cmd"[identification] JoinWorkgroup=none[Networking] InstallDefaultComponents=Yes[Components] chat = Off freecell = Off hearts = off media_utopia = Off minesweeper = Off msnexplr = Off mswordpad = Off paint = Off pinball = Off solitaire = Off spider = Off WMAccess = Off zonegames = Off And here is my RunOnceEx.cmd@Echo Offrem PP=%systemdrive%\install\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Windows XP SP2 - Installation by =Vengeance=" /fREG ADD %KEY%\000 /VE /D "Install Norton Antivirus 2003 Pro" /fREG ADD %KEY%\000 /V 1 /D "%systemdrive%\install\Applications\NAV2003\NAV\NAV.msi /Q" /fREG ADD %KEY%\001 /VE /D "Install MSN Messenger 6.2" /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\MSN\MsnMsgs.msi /qb" /fREG ADD %KEY%\002 /VE /D "Install WinRAR 3.30" /fREG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\Applications\WinRAR\wrar330.exe /s" /fREG ADD %KEY%\003 /VE /D "Install .NET Framework v1.1" /fREG ADD %KEY%\003 /V 1 /D "%systemdrive%\install\NetFramework\netfx.msi /qb" /fREG ADD %KEY%\004 /VE /D "Install Adobe Reader 6" /fREG ADD %KEY%\004 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_basic.exe -p\"-s /v\"/qn\"\"" /fREG ADD %KEY%\005 /VE /D "Installation de Sun Java VM 1.4.2" /fREG ADD %KEY%\005 /V 1 /D "j2re-1_4_2_05-windows-i586-p.exe /s /v/qn" /fREG ADD %KEY%\006 /VE /D "Install Ad Aware SE 1.03" /fREG ADD %KEY%\006 /V 1 /D "%systemdrive%\install\Applications\AdAware\aawsepersonal103.exe /s" /fIF EXIST %systemroot%\system32\atiddc.dll REG ADD %KEY%\010 /VE /D "ATI Control Panel 4.8 w/ SmartGART" /fIF EXIST %systemroot%\system32\atiddc.dll REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Drivers\001_Radeon\Setup.exe -s -f1 setup.iss" /fIF EXIST %systemroot%\system32\atiddc.dll REG ADD %KEY%\010 /V 2 /D "%systemdrive%\Install\ATI_CPanel\Setup.exe -s -f1 setup.iss" /fEXITIs something wrong in that?? Please help
jrzycrim Posted August 20, 2004 Posted August 20, 2004 I bet it will run on the second logon the way you have it now. All the runonceex.cmd does is enter values into the registry to run applications at the next startup. Since they are being entered at first logon they won't execute until the next.I'd remove your [GuiRunOnce] section from your winnt.sif and do this:1) Place your RunOnceEx.cmd in $OEM$. 2) Make a file called cmdlines.txt and place this in it:[Commands]"RunOnceEx.cmd"Place that in $OEM$ as well.http://unattended.msfn.org/xp/runonceex.htm
dorguy Posted August 20, 2004 Author Posted August 20, 2004 Ok. I will try that. I will let u know as soon as i test it
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