Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Complete newbie here...


1 reply to this topic

pablo2001jedi

pablo2001jedi
  • Full Members
  • 2 posts

Posted 02 November 2009 - 12:26

Hey all,

I'm new to MSI installers, I've done some Installscript installers but hardly any MSI packages.

I have create basic MSI packages before, to install printer drivers using the driver wizard. This is ok for Plug and Play installs.

But we want to create an MSI installer to install a printer to a specific IP port that will need to be created. With the IP address to be supplied at run time (I think by command line argument is best)

I have VBScripts that install IP ports and drivers but I don't know how to pass an argument via MSI.

Install Port Script
CODE
dim oMaster
dim oPort


set oPort = CreateObject("Port.Port.1")
set oMaster = CreateObject("PrintMaster.PrintMaster.1")


oPort.PortName = "IP_10.18.207.84"
oPort.PortType = 1
oPort.HostAddress = "10.18.207.84"
oPort.PortNumber = 9100
oPort.SNMP = true
oPort.SNMPDeviceIndex = 2
oPort.CommunityName = "public"
oPort.QueueName = "Queue"
oPort.DoubleSpool = false
oMaster.PortAdd oPort

Note the oPort.PortName & HostAddress will need to be passed as an argument and read into this script.

Any help is appreciated.

TIA!

pablo2001jedi

pablo2001jedi
  • Full Members
  • 2 posts

Posted 02 November 2009 - 14:44

Managed to get it working!!

I created 2 Properties PORTNAME and HOSTADDRESS and created a custom action to set these (I set them blank)

Then within the scripts I used Session.Property("<propery name>") where needed.

Then using the following on a command line:

msiexec /i Driverinstall.msi PORTNAME=IPPort HOSTADDRESS=10.18.207.84"

The 2 properties got set and the scripts worked!

Hope this helps someone in the future.... biggrin.gif