PLease look at the following lines:
\Registry\Machine (a)
Software
Microsoft
Windows
CurrentVersion
Run
RUNBATCH = REG_SZ "c:\registry\BATCH.CMD"
\Registry\Machine (b)
Software
Microsoft
Windows NT
CurrentVersion
SourcePath = REG_SZ "C:\i386"
\Registry\Machine (c)
Software
Microsoft
Windows
CurrentVersion
SetupSourcePath = REG_SZ "C:"
\Registry\Users (d)
Software
Microsoft
Windows
CurrentVersion
Explorer
Tips
DisplayInitialTipWindow = REG_DWORD 00000000
Show = REG_DWORD 00000000
\Registry\Users (e)
.Default
Control Panel
Keyboard
InitialKeyboardIndicators = REG_SZ 2
\Registry\Machine (f)
Software
Microsoft
Windows NT
CurrentVersion
Winlogon
AutoAdminLogon = REG_SZ 1
DefaultDomainName = REG_SZ "blablabla"
DefaultPassword = REG_SZ "xxxx"
DefaultUserName = REG_SZ "administrator"
When I use this Runonce.ini with (d) at this place,
I have no automatic logon, after the third gui logon I get a logon dialog box, and my numlock is not on.
If I place (d) after (f) I have no problem at all.
What's wrong with the syntax of (d), Do I have to use double quotes around the eight zeroes ?
Main Topics
Browse All Topics





by: jminckPosted on 1998-10-22 at 16:27:35ID: 1771348
The NT Resource Kit suppliment 1 has a doc, I'm not sure about the first version of the reskit.
Another thing you can do it call regedit /s from cmdlines.txt instead of regini:
cmdlines.txt calls autolog.bat, which is:
START /WAIT REGEDIT.EXE /S .\AUTOLOG.REG
autolog.reg looks like this:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWA
"DefaultUserName"="Adminis
"AutoAdminLogon"="1"
"DefaultPassword"=""
"DefaultDomainName"="qrstu
the advantage being, you can dump the key from a working install in some cases via regedit instead of writing it yourself.
Here are a few KBs that have regini examples in them:
How to Run a Program Only Once During an Unattended Setup [winnt]
ID: Q142633
How to use Regini.exe to modify HKEY_CURRENT_USER [winnt]
ID: Q142265
Installing Multiple Applications through Runonce [winnt]
ID: Q192784