Create driver
Description
Section titled “Description”Creates a driver for a model on an OS Point. The model must exist on the OS Point. You can create it with Create model.
Syntax
Section titled “Syntax”CreateDriver(name As String, modelname As String, osPointID As Integer, osShortname As String) As Boolean
Parameters
Section titled “Parameters”name (String)
The name of the Driver.
modelname (String)
The name of the Model this driver matches.
osPointID (Integer)
The OS Point ID
osShortname (String)
The short name of the operating system the driver is for, for example Win11x64.
Return value
Section titled “Return value”Boolean. The function returns True if successful. The function raises an error if:
- The OS Point, the model, or the operating system isn’t found.
- A driver with the same name already exists for the model and operating system.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.CreateDriver("Intel(R) Ethernet Connection I217-LM","HP HP Z2 Tower G4 Workstation","1","Win11x64")Related functions
Section titled “Related functions”The OS Point ID can be retrieved with the function Get OS points.