Jump to content

Runonceex.cmd in win2k


Recommended Posts

Hi all,

I am hoping someone could help me. I am attempting to make a win2k unattended cd with applications and I cant seem to get it to work. I followed through the tutorial and I can get my winnt.sif file to work. Although I have a few minor problems. (areacode=602) doesnt work.

[Unattended]
   UnattendMode=DefaultHide
   OemSkipEula=Yes
   TargetPath=\WINNT
   OemPreinstall=Yes
   OemFilesPath=..\$OEM$

[Data]
   AutoPartition=1
   MsDosInitiated="0"
   UnattendedInstall="Yes"

[GuiUnattended]
   AdminPassword=password
   AutoLogon=Yes
   AutoLogonCount=3
   OEMSkipRegional=1
   TimeZone=15
   OemSkipWelcome=1
   AutoLogonAccountCreation=Yes

[UserData]
   ProductKey=xxxx-xxxx-xxxx-xxxx
   OrgName=Computer
   ComputerName=*

[Display]
   BitsPerPel=24
   Xresolution=1024
   YResolution=768
   Vrefresh=60

[TapiLocation]
   CountryCode=1
   AreaCode= "602"

[Identification]
   JoinWorkgroup=HOME

[Networking]
   InstallDefaultComponents=No

[NetAdapters]
   Adapter1=params.Adapter1

[params.Adapter1]
   INFID=*

[NetClients]
   MS_MSClient=params.MS_MSClient

[NetServices]
   MS_SERVER=params.MS_SERVER

[NetProtocols]
   MS_TCPIP=params.MS_TCPIP
   MS_NetBEUI=params.MS_NetBEUI

[params.MS_TCPIP]
   DNS=Yes
   UseDomainNameDevolution=No
   EnableLMHosts=Yes
   AdapterSections=params.MS_TCPIP.Adapter1

[params.MS_TCPIP.Adapter1]
   SpecificTo=Adapter1
   DHCP=Yes
   WINS=No
   NetBIOSOptions=0

[Components]
   cdplayer=off
   accessopt=off
   rec=off

[COMMANDS]

".\RunOnceEx.cmd"

;".\cleanup.cmd"

"Regedit /s regtweaks.reg"
"Regedit /s domainmaps.reg"
"Regedit /s zonemaps.reg"
"Regedit /s sguide_tweak_2k.reg"

cmdow @ /HID
@Echo Off

SET PP=%SystemDrive%\Install\

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

REG ADD %KEY% /V TITLE /D "Unattended Program Installation" /f

REG ADD %KEY%\000 /VE /D "Adobe Reader 7.0" /f
REG ADD %KEY%\000 /V 1 /D "%PP%AdbeRdr70_enu_full.exe  -q /s /v/qn" /f

REG ADD %KEY%\001 /VE /D "AVG Free 7.0" /f
REG ADD %KEY%\001 /V 1 /D "%PP%avg70free_323a539.exe /HIDE /Update_AVG" /f

REG ADD %KEY%\002 /VE /D "Ad-Aware" /f
REG ADD %KEY%\002 /V 1 /D "%PP%aawsepersonal.exe /silent" /f

REG ADD %KEY%\003 /VE /D "SpyBot Search & Destroy" /f
REG ADD %KEY%\003 /V 1 /D "%PP%spybotsd12.exe /silent /taskbarhide /autoupdate /autocheck /autofix /autoimmunize /autoclose" /f

REG ADD %KEY%\004 /VE /D "Win Rar" /f
REG ADD %KEY%\004 /V 1 /D "%PP%wrar341.exe /s" /f

REG ADD %KEY%\005 /VE /D "Winamp 5.09" /f
REG ADD %KEY%\005 /V 1 /D "%PP%Winamp5093.msi xfull=1 /qb" /f

REG ADD %KEY%\006 /VE /D "IrfanView" /f
REG ADD %KEY%\006 /V 1 /D "%PP%iview397.exe silent /desktop=1 /group=1 /allusers=1 /assoc=1" /f

REG ADD %KEY%\007 /VE /D "IrfanView Plugins" /f
REG ADD %KEY%\007 /V 1 /D "%PP%irfanview_plugins_397.exe /silent" /f

REG ADD %KEY%\008 /VE /D "IE PowerTweaks" /f
REG ADD %KEY%\008 /V 1 /D "%PP%pwrtwks.exe /silent" /f

EXIT

My structure looks like this

cd
 |i386
 |$OEM$
    cmdlines.txt
    runonceex.cmd
    various reg files
    cleanup.cmd
    |$$
       |System32
         |cmdow.exe
    |$1
       |Install
         |Applications
            |Various application files as above

If anyone can see what in the world I am doing wrong please let me know. Windows will install but I do not get any of the applications loaded or registry fixes.

Take care

Louree

Link to comment
Share on other sites


What Alanoll is saying is that your runonceex.cmd is using an executable, which doesn't exist as part of your OS.

  • REG ADD
    this is reg.exe add
    or if not in %path%,
    drive:\path to\reg.exe add

You will therefore need to add the REG.EXE to your CD, then either copy it to an appropriate location in %PATH%, (from your $OEM$), or reference its location on the CD as part of the commands in your runonceex.cmd file

Link to comment
Share on other sites

  • 7 months later...

I can't get RunOnceEx to work in Windows 2000 either. Exact same RunOnceEx and $OEM$ Folder Tree works in XP but under 2K nothing happens at all. No error messages, just nothing. It gets completely ignored. "Install" and "Drivers" folders get copied to the hard drive but software doesn't install.

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...