The following is a description of how to create a new script in CapaInstaller OSD.
Click File menu, click New and then _Create new script_.
The following window appears.
Choose the relevant script type and click OK.
Right-click and click Edit Script. Enter the script contents.
During script creation the following registry keys can be read from the registry key: HKEY_LOCAL_MACHINE\SOFTWARE\CapaSystems\CapaInstaller\OSD.
Read about> ImageOSType Variables
Reserved for future use
Use specified file to read startup values, this will force OSD to read values from alternate file instead of using osdloader.ini
The path where OSDGUI.exe was found
Contains the value to be used as the name of the client. During the deployment, the client will have a randomly generated name, which is stored in the variable COMPUTERNAME.
The name of the image be applied.
The disk configuration applied to the client. Refer to the help topic “How to partition the client disc during OS deployment” for a description of the format used.
If a machine contains more than one disc, this value will shift the deployment focus to the discindex selected, OSD will not change this value automatically
The IP address currently assigned to the client.
The server from which OSD is running. If this value is empty, the deployment process is running from a DVD/CD or a bootable USB device.
The filtered model ID pulled from SMBIOS. This is the value that determines which drivers will be added to the client.
This value indicates if the client is a laptop or a workstation.
This variable holds the installation type.
Set to true to suppress the user input form
The drive letter where OSDGUI was found
The drive letter where the image is being deployed
The type of OS in the selected image, possible values are:
Legacy OS values>
In case the OSType is not detected correctly the values will be set to Undetected or Unknown
Indicates If OSD is performing a reinstallation
Set this value to True to prevent OSD from deploying a CMS agent automatically
Windows root of the deployed image
When a script is running OSD will display this value as the state message on the UI
This script runs before OSDGUI shows the user input form. To suppress this form use the Registry value SkipGUI.
This script runs immediately after the user clicks Install to activate the deployment process. Any further user interaction should be handled using this script.
All data written to x: during the deployment process will be discarded when rebooting.
This scripts runs after the partitioning operation is complete, but before any data is transferred to the new file system.
This scripts runs before any drivers are copied onto the client.
This scripts runs before any changes are made to the client registry or sysprep files.
This scripts runs as the final part of the deployment process.
This script runs as part of the minisetup process
This file can contain custom functions to be included into scripts.
Supported script types are .vbs, .wsf and .cis.