OSD_Initialize
OSD_Initialize()
Initializes the CapaInstaller OSD Scripting library.
This function has to be called before all other functions in the library. The initialization sets variables based on the WinPE environment, OSDGui.ini etc.
Arguments
No arguments provided.
Return Type
Boolean, TRUE if function completed successfully.
Example
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() '... your script content ... Job_End(bStatus) 'End main