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...&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.)
Happy abroad syncing, Krille