OSD_DisableCMSClientInstallation

OSD_DisableCMSClientInstallation()

Disables the automatic installation of the CapaInstaller Agent.

Arguments

No arguments provided.

Return Type

Boolean, TRUE if function completed successfully.

Remarks

Can be used i all scripts except the PreBootScript.wsf, since this script is executed after the agent is installed.

Example

The following example disables the installation of the CapaInstaller Agent if the computers chassis type is a server.

Private Function IncludeScript(sScriptFile)
 '...
End Function

'Begin
  bStatus=True
  If bStatus Then bStatus=IncludeScript("customlib.cis")
  If bStatus Then bStatus=IncludeLibrary("Capalib.cin")
  If bStatus Then bStatus=IncludeLibrary("Osdlib.cin")
  If bStatus Then bStatus=Job_Start("WS","Script Name","1.0","ScriptName.log","INSTALL")
  If bStatus Then bStatus=OSD_Initialize()

  If bStatus and gbIsServer Then bStatus=OSD_DisableCMSClientInstallation()

  Job_End(bStatus)
'End main

See Also

IncludeScript function, OSD_IsServer