NOTE: Each entry that starts with a semicolon (;) is a comment. These lines can be removed. They are provided to describe each line. The computer must be rebooted for the registry values added by this .inf file to take effect. This .inf file should be used only on the computer running ICS.
here's a sample of mine
QUOTE
[version]
signature="$CHICAGO$"
[DefaultInstall]
AddReg=PortSample
[DefaultUnInstall]
; This section included for ease of removing any maps added in.
; To uninstall, type the following line:
;
; rundll.exe setupx.dll,InstallHinfSection DefaultUnInstall 0
; <I BRACKET="YES">YOUR_INF_FILE_NAME</I>
DelReg=PORT_SAMPLE_DEL_REG
[PortSample]
; MYMAPNAME should be replaced with a friendly
; descriptive name that is unique.
;
; This data points to the computer that is running the service.
; 0.0.0.0 represents the computer running the ICS services. This
; can alternatively contain the IP address of one of the ICS client
; computers.
HKEY_LOCAL_MACHINE,%ICSACTIVE%,MYMAPNAME,,"192.168.1.5"
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME
; "My Friendly Name" should be replaced with something short and
; descriptive such as the name of the program that needs these ports
; open.
HKLM,%ICSINSTALLED%\MYMAPNAME,Name,,"webserver"
; Options is a DWORD value and is currently always set to 00,00,00,00
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME,Options,1,00,00,00,00
; The next four lines describe the specific ports that need to be open
; or mapped. The first port is always 0000, each additional port is
; incremented (the second port to open would be listed as 0001,
; the third would be 0002, and so on). This information is strictly
; dependent on what is needed by the program. If you do not know what
; ports your program requires or are unsure, you need to contact the
; manufacturer of the program to get this information.
;
; The four lines need to be re-created for each port.
;
; On the second line, valid entries for type are "TCP" or "UDP."
;
; The third line contains the actual port or port range needed by the
; program.
;
; The entry below demonstrates a port range. If the program only needs
; a single port, the last part of the line below would read ,Port,,"5678"
;
; Note that you can only use a port range when the translation type is
; NORMAL or BLOCK.
;
; If Translation is set to anything else, you must list each port
; individually.
;
; Valid types of translation are NORMAL, BLOCK, CUSEEME, DPLAY, FTP,
; H323, PPTP, and QUAKE
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0000
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0000,Type,,"TCP"
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0000,Port,,"80"
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0000,Translation,,"NORMAL"
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0001
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0001,Type,,"TCP"
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0001,Port,,"50000"
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0001,Translation,,"NORMAL"
[PORT_SAMPLE_DEL_REG]
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME
HKEY_LOCAL_MACHINE,%ICSACTIVE%,MYMAPNAME
[Strings]
ICSINSTALLED="System\CurrentControlSet\Services\ICSharing\Mappings\Installed"
ICSACTIVE="System\CurrentControlSet\Services\ICSharing\Mappings\Active"
taken from HEREsignature="$CHICAGO$"
[DefaultInstall]
AddReg=PortSample
[DefaultUnInstall]
; This section included for ease of removing any maps added in.
; To uninstall, type the following line:
;
; rundll.exe setupx.dll,InstallHinfSection DefaultUnInstall 0
; <I BRACKET="YES">YOUR_INF_FILE_NAME</I>
DelReg=PORT_SAMPLE_DEL_REG
[PortSample]
; MYMAPNAME should be replaced with a friendly
; descriptive name that is unique.
;
; This data points to the computer that is running the service.
; 0.0.0.0 represents the computer running the ICS services. This
; can alternatively contain the IP address of one of the ICS client
; computers.
HKEY_LOCAL_MACHINE,%ICSACTIVE%,MYMAPNAME,,"192.168.1.5"
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME
; "My Friendly Name" should be replaced with something short and
; descriptive such as the name of the program that needs these ports
; open.
HKLM,%ICSINSTALLED%\MYMAPNAME,Name,,"webserver"
; Options is a DWORD value and is currently always set to 00,00,00,00
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME,Options,1,00,00,00,00
; The next four lines describe the specific ports that need to be open
; or mapped. The first port is always 0000, each additional port is
; incremented (the second port to open would be listed as 0001,
; the third would be 0002, and so on). This information is strictly
; dependent on what is needed by the program. If you do not know what
; ports your program requires or are unsure, you need to contact the
; manufacturer of the program to get this information.
;
; The four lines need to be re-created for each port.
;
; On the second line, valid entries for type are "TCP" or "UDP."
;
; The third line contains the actual port or port range needed by the
; program.
;
; The entry below demonstrates a port range. If the program only needs
; a single port, the last part of the line below would read ,Port,,"5678"
;
; Note that you can only use a port range when the translation type is
; NORMAL or BLOCK.
;
; If Translation is set to anything else, you must list each port
; individually.
;
; Valid types of translation are NORMAL, BLOCK, CUSEEME, DPLAY, FTP,
; H323, PPTP, and QUAKE
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0000
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0000,Type,,"TCP"
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0000,Port,,"80"
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0000,Translation,,"NORMAL"
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0001
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0001,Type,,"TCP"
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0001,Port,,"50000"
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME\0001,Translation,,"NORMAL"
[PORT_SAMPLE_DEL_REG]
HKEY_LOCAL_MACHINE,%ICSINSTALLED%\MYMAPNAME
HKEY_LOCAL_MACHINE,%ICSACTIVE%,MYMAPNAME
[Strings]
ICSINSTALLED="System\CurrentControlSet\Services\ICSharing\Mappings\Installed"
ICSACTIVE="System\CurrentControlSet\Services\ICSharing\Mappings\Active"
This post has been edited by ayiesz: Oct 23 2004, 05:41 AM
Oct 23 2004, 05:40 AM, updated 22y ago
Quote
0.0127sec
1.06
5 queries
GZIP Disabled