General discussion

  • Creator
    Topic
  • #2075588

    Registry edits via inf files

    Locked

    by edrox ·

    HI,

    I am building an unattended setup for NT workstations.
    I know how to use the AddReg function to add string values to the registry, how can I add dword or hex values to the registry using this method?

    Thanks in advance,

    Eduard de [email protected]

All Comments

  • Author
    Replies
    • #3784350

      Registry edits via inf files

      by halleyc ·

      In reply to Registry edits via inf files

      I change registry value by using the following method

      1.start regedit.exe
      2.find out the key value that i want to change at my pc
      3.change the value
      4.File > Export
      5.type the filename
      6.make sure to select “export selected key”
      7.OK

      youwill get a reg file (for example yourfile.reg). The reg file is a pure text file. You can edit it by using text editor such as notepad. You can learn how to type/edit dword or hex value in the exported reg file

      To make change to the registry on other machine, just type “regedit /s yourfile.reg” at dos prompt of target machine.

      • #3784275

        Registry edits via inf files

        by edrox ·

        In reply to Registry edits via inf files

        I know how to do this, but I do not like it to use reg files and ini files if I can do all through ini files, it will make it all more simple, documentation and handover will be a lot easier.

        Thanks for trying to help me,

        Eduard de Vries

    • #3784322

      Registry edits via inf files

      by lewey04 ·

      In reply to Registry edits via inf files

      Here is Microsoft’s answer to your question:

      Notice the second paragraph answers you question about adding dword and hex values with the AddReg function. Unfortunately, the answer probably isn’t the one you wanted to here. However you can accomplish what you need using the RegSetValueEx in an application (I don’t know if you are a programmer or not)

      Q163357
      SUMMARY
      =======
      In general, you may have various types of registry entries including binary,
      DWORD, DWORD little-endian, DWORD big-endian, Unicode symbolic link, array of
      null-terminated strings, device-driver resource list, and null-terminated string
      (with or without unexpanded references).

      HERE IS YOUR ANSWER
      However, an inf AddReg section value type is limited to either an ANSI string or
      a number in hexadecimal notation and Intel format. Setupx.dll does not recognize
      any other value types in AddReg sections. You can set other registry value types
      from an application using RegSetValueEx.

      • #3784276

        Registry edits via inf files

        by edrox ·

        In reply to Registry edits via inf files

        Do I have to be honest, didn’t help me at all.
        OK, I admit, it did help me, but didn’t gave me the answer I wanted.

        Eventhough it answered my question.
        And no, I am not a programmer, just a simple networking guy tring to get along, I hope to get into programming one day, but as long as MS and Novell keep trowing updates and releases at the speed they do, I will never have time.

        Thanks for helping me!

        Eduard de Vries
        [email protected]

Viewing 1 reply thread