geese howard Posted March 10, 2006 Posted March 10, 2006 i try to do an unattended instalation, but it works only by batch files...Maybe i´m doing anything wrong...
tguy Posted March 10, 2006 Posted March 10, 2006 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.cmdHope this helps, look forward to seeing your file contents. Remember with the WINNT.SIF to remove the Product ID code and replace with Xs.
mmarable Posted March 10, 2006 Posted March 10, 2006 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.
geese howard Posted March 11, 2006 Author Posted March 11, 2006 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=Yescmdlines.txt[COMMANDS]"RunOnceEx.cmd"i try .\RunOnceEx.cmd too, no way.RunOnceEx.cmdcmdow @ /HID@echo offIF 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\RunOnceExREG ADD %KEY% /V TITLE /D "Instalando Aplicativos Adicionais" /fREG ADD %KEY%\025 /VE /D "MSN Messenger 7.0" /fREG ADD %KEY%\025 /V 1 /D "%CDROM%\OEM\Messenger\MsnMsgs.msi /qb" /fREG ADD %KEY%\035 /VE /D "Windows Media Player 9" /fREG ADD %KEY%\035 /V 1 /D "%CDROM%\OEM\WMP9\MPSetup.exe /Q:A /R:N" /fREG ADD %KEY%\035 /V 2 /D "%CDROM%\OEM\WMP9\WindowsMedia9-KB885492-x86-PTB.exe /quiet /norestart" /fREG ADD %KEY%\035 /V 3 /D "%CDROM%\OEM\WMP9\WindowsMedia9-KB911565-x86-PTB.exe /quiet /norestart" /fREG ADD %KEY%\035 /V 4 /D "%CDROM%\OEM\WMP9\WindowsMedia-KB911564-x86-PTB.exe /quiet /norestart" /fREG ADD %KEY%\035 /V 5 /D "%CDROM%\OEM\WMP9\wmfdist.exe /Q:A /R:N" /fThis RunonceEx works in windows XP.Should i do diferent reg parameters, like mmarable said?Another thing...WaitForReboot="No" doesn´t works in win2000....
tommyp Posted March 14, 2006 Posted March 14, 2006 You need to have the full path to the reg.exe file specified. A simple REG [command] won't work with w2k.
mmarable Posted March 23, 2006 Posted March 23, 2006 (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 March 23, 2006 by mmarable
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