cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using property values in registry settings

I want to install a Local Printer driver pointing to a TCP/IP port

First

I want create a new standard TCP/IP port

from inside a MSI I use AdminStudio 5.5

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\IP_10.1.40.37]
"Protocol"=dword:00000001
"Version"=dword:00000001
"HostName"=""
"IPAddress"="10.1.40.37"
"HWAddress"=""
"PortNumber"=dword:0000238c
"SNMP Community"="public"
"SNMP Enabled"=dword:00000001
"SNMP Index"=dword:00000001

Is it possible to set a property value called PrinterPort
inside the Registry view to set the Portname and IPadress

Above shown as IP_10.1.40.37 and 10.1.40.37

or should I use another aproach

How is the right way to do this.

After starting and stopping the printSpool

I can run a Custom Action to install a printer on the added standard TCP/IP port

rundll32 printui.dll,PrintUIEntry /if /b "HP LaserJet 4300 PCL 5e" /f C:\HP_LJ4300\hp4300p5.inf /r "IP_10.1.40.37" /m "HP LaserJet 4300 PCL 5e" /z /u

I am new to Install Shield and Install shield script but i like the product more and more.

Sweede
(2) Replies
You can use a property to create a registry value. If you have not, please refer to Creating Registry Values. You will want to use a public property instead of a private property in this situation.
TsungH

Thank You!

It was quite simple to do

Sweede 🙂