Jump to content

How to add keys into HKLM\Comm\Tcpip\ ?


Recommended Posts

Guest aleho
Posted

I need add new registry key into HKLMCommTcpip, because it is equivalent to HOSTS file. But this registry part is with others (under HKLM: Comm,Drivers,HARDWARE,SYSTEM,Init,Security) protected by defaults. :?

Is it possible to change somewhere required trust level or policy to enable it?

  • 3 months later...
Guest Krille
Posted

I managed to set a static IP adress in protected registry by cab file. :)

Here's how to:

(1)

You need two files - CabwizSP.exe and cabwiz.ddf - from Smartphone 2002 SDK Release 1.0, which you get here:

http://www.microsoft.com/downloads/details...&DisplayLang=en

(Just unzip these files. No need to install whole package.)

(2)

Create an .INF file from this example:

[Version] ; Required section

Signature = "$Windows NT$"

Provider = "myname"

CESignature = "$Windows CE$"

[CEStrings] ; Required section

AppName = "anyname"

InstallDir = %CE5%%AppName% ; Install in My DocumentsAppName

MyMachine = "MyPCName" ; <--- CHANGE HERE: Replace by name of your workstation

[strings] ; Optional

reg_path = "CommTcpipHosts%MyMachine%" ; Define string key

[DefaultInstall] ; Required section

AddReg = RegSettings ; Points to RegSettings for registry root list

[RegSettings] ; Required section

HKLM,%reg_path%,ipaddr,0x00000001,C0,A8,00,01 ; <--- CHANGE HERE: IP of your workstation as four segement hex format e.g. 192.168.0.1 = C0,A8,00,01

[sourceDisksNames] ; Required section

1 = "No CD" ; Installer wants any source, so it will get one

[sourceDisksFiles] ; Required section

none.txt = 1 ; Installer also wants a file, so we give it one. This file MUST exist in same directory

[DestinationDirs] ; Required section. Just ignore it.

DefaultDestDir = 0,%InstallDir%

(3)

Put all files and any "none.txt" file in same directory an run "CabwizSP.exe yourinf.inf". This wil generate a yourinf.cab, which you transfer and

install on your phone to have the settings written. (You may afterwards delete directory "My Documentsanyname", which is created on install.)

Hope this helps, Krille

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.