Jump to content

Recommended Posts


Posted

Can you post your WINNT.SIF, CMDLINES.TXT and RUNONCEEX.CMD file contents so we can take a look at them? I use RunOnceEx with Windows 2000 all the time. It works just fine. Where is the RunOnceEx.cmd file in your directory structure? It should be in the root of the $OEM$ directory with the CMDLINES.TXT file.

I call my RunOnceEx from CMDLINES.TXT.

[Commands]

.\RunOnceEx.cmd

Hope this helps, look forward to seeing your file contents. Remember with the WINNT.SIF to remove the Product ID code and replace with Xs.

Posted

It's a small thing, but it bit me the first time I tried setting up the RunOnce stuff on Win2000. The "REG" command it Win2000 has different parameters than it does in XP/2003. So, the commands that work in XP/2003 do not create the keys on Win2000.

Posted

Winnt.sif

;SetupMgrTag

[Data]AutoPartition=0

MsDosInitiated="0"

UnattendedInstall="Yes"

[unattended]

UnattendMode=FullUnattended

UnattendSwitch="yes"

FileSystem=*

OemSkipEula=Yes

OemPreinstall=Yes

TargetPath=\WINDOWS

WaitForReboot="No"

Hibernation = No

[GuiUnattended]

AutoLogon = Yes

AdminPassword=*

EncryptedAdminPassword=NO

AutoLogon=Yes

OEMSkipRegional=1

TimeZone=65

OemSkipWelcome=1

[userData]

ProductID=****

FullName="Windows"

OrgName="Home"

ComputerName=*

[Display]

BitsPerPel=32

Xresolution=1024

YResolution=768

Vrefresh=60

[TapiLocation]

CountryCode=55

Dialing=Tone

AreaCode=11

[identification]

JoinWorkgroup=GRUPO

[Networking]

InstallDefaultComponents=Yes

cmdlines.txt

[COMMANDS]"RunOnceEx.cmd"

i try .\RunOnceEx.cmd too, no way.

RunOnceEx.cmd

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 "Instalando Aplicativos Adicionais" /f

REG ADD %KEY%\025 /VE /D "MSN Messenger 7.0" /f

REG ADD %KEY%\025 /V 1 /D "%CDROM%\OEM\Messenger\MsnMsgs.msi /qb" /f

REG ADD %KEY%\035 /VE /D "Windows Media Player 9" /f

REG ADD %KEY%\035 /V 1 /D "%CDROM%\OEM\WMP9\MPSetup.exe /Q:A /R:N" /f

REG ADD %KEY%\035 /V 2 /D "%CDROM%\OEM\WMP9\WindowsMedia9-KB885492-x86-PTB.exe /quiet /norestart" /f

REG ADD %KEY%\035 /V 3 /D "%CDROM%\OEM\WMP9\WindowsMedia9-KB911565-x86-PTB.exe /quiet /norestart" /f

REG ADD %KEY%\035 /V 4 /D "%CDROM%\OEM\WMP9\WindowsMedia-KB911564-x86-PTB.exe /quiet /norestart" /f

REG ADD %KEY%\035 /V 5 /D "%CDROM%\OEM\WMP9\wmfdist.exe /Q:A /R:N" /f

This RunonceEx works in windows XP.

Should i do diferent reg parameters, like mmarable said?

Another thing...WaitForReboot="No" doesn´t works in win2000....

  • 2 weeks later...
Posted (edited)

The syntax is different with the Reg command in Win2000 as opposed to XP/2003.

It's been a while, but I think you have to have like Reg Add .... <keyname>="value".

You're best bet is to open up a command prompt and type in "reg add /?" on your Win2000 box and it'll have the exact syntax you need.

Edited by mmarable

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