Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

RegIni: Failed To load ...

Posted on 1998-10-22
6
4,562 Views
Last Modified: 2013-12-14
What does the following mean:

RegIni: CreateKey() relative to handle (0) failed - 161
RegIni: failed to load from file "c:\registtry\runonce.ini" 161

Where can I find a decent manual for RegIni.exe ?
What's the exact syntax for such a INI file.

Bye,
P05010
0
Comment
Question by:p05010
  • 3
  • 2
6 Comments
 
LVL 1

Expert Comment

by:jminck
ID: 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\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon]
"DefaultUserName"="Administrator"
"AutoAdminLogon"="1"
"DefaultPassword"=""
"DefaultDomainName"="qrstuvwxyz"

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
0
 
LVL 1

Author Comment

by:p05010
ID: 1771349
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 ?

0
 
LVL 1

Author Comment

by:p05010
ID: 1771350
Adjusted points to 25
0
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 
LVL 8

Accepted Solution

by:
Koen earned 20 total points
ID: 1771351
Peter,
I have already given you the answer in an e-mail : use regedit /s instead.
Did it work ??
0
 
LVL 1

Author Comment

by:p05010
ID: 1771352
Ja,

dat is waar,
Ik had alleen problemen met de runonce.
Wanneer ik een tweede keer een batchcommando  in de runonce (commando staat in de eerste batchfile) toevoegde deed hij het gewoon niet, blijkbaar verdwijnt het batch commando wanneer de hele batch is uitgevoerd, dus ook de nieuwe settings verdwijnen.
Ik heb nu gewoon de HKLM/..../ RUN gebruikt en daarna zorgt de Batch ervoor dat deze terug opgekuist wordt.

Cu,
P05010


0
 
LVL 8

Expert Comment

by:Koen
ID: 1771353
Ok,
Tx for the points!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question