Skip to content

OSD_DisableCMSClientInstallation

VB Scripting Library > OSD Scripting Library > OSD functions (OSD)

Disables the automatic installation of the CapaInstaller Agent.

No arguments provided.

Boolean, TRUE if function completed successfully.

The function sets the DisableCMSClientInstallation value to true in the HKLM\SOFTWARE\CapaSystems\CapaInstaller\OSD registry key in WinPE. The OSD client then skips the agent installation for the deployed computer.

Can be used in all scripts except the PreBootScript.wsf, since this script is executed after the agent installation has been set up.

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

Scripting Guidelines, OSD_IsServer Constants Package Property Variables