Jump to content

RunOnceEx.cmd wont run


Recommended Posts

Hi

I 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 Off

rem PP=%systemdrive%\install\

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Windows XP SP2 - Installation by =Vengeance=" /f

REG ADD %KEY%\000 /VE /D "Install Norton Antivirus 2003 Pro" /f

REG ADD %KEY%\000 /V 1 /D "%systemdrive%\install\Applications\NAV2003\NAV\NAV.msi /Q" /f

REG ADD %KEY%\001 /VE /D "Install MSN Messenger 6.2" /f

REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\MSN\MsnMsgs.msi /qb" /f

REG ADD %KEY%\002 /VE /D "Install WinRAR 3.30" /f

REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\Applications\WinRAR\wrar330.exe /s" /f

REG ADD %KEY%\003 /VE /D "Install .NET Framework v1.1" /f

REG ADD %KEY%\003 /V 1 /D "%systemdrive%\install\NetFramework\netfx.msi /qb" /f

REG ADD %KEY%\004 /VE /D "Install Adobe Reader 6" /f

REG ADD %KEY%\004 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_basic.exe -p\"-s /v\"/qn\"\"" /f

REG ADD %KEY%\005 /VE /D "Installation de Sun Java VM 1.4.2" /f

REG ADD %KEY%\005 /V 1 /D "j2re-1_4_2_05-windows-i586-p.exe /s /v/qn" /f

REG ADD %KEY%\006 /VE /D "Install Ad Aware SE 1.03" /f

REG ADD %KEY%\006 /V 1 /D "%systemdrive%\install\Applications\AdAware\aawsepersonal103.exe /s" /f

IF EXIST %systemroot%\system32\atiddc.dll REG ADD %KEY%\010 /VE /D "ATI Control Panel 4.8 w/ SmartGART" /f

IF EXIST %systemroot%\system32\atiddc.dll REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Drivers\001_Radeon\Setup.exe -s -f1 setup.iss" /f

IF EXIST %systemroot%\system32\atiddc.dll REG ADD %KEY%\010 /V 2 /D "%systemdrive%\Install\ATI_CPanel\Setup.exe -s -f1 setup.iss" /f

EXIT

Is something wrong in that?? Please help

Link to comment
Share on other sites


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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...