DepotSoftware - updateInstallCommand
DepotSoftware - updateInstallCommand
Description :
This command updates the install command of a software installable in the depot.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
objectKey | DBKey | Handle to the software installable whose install command you want to update. |
installCommand | String | New version of the install command. |
Example
The following example gets a handle to a software installable, then uses this handle to update the installable's install command.
Script
#Get a handle to a software installable called python-4.2-0.69.2asp.i386.rpm.
INSTALLABLE_KEY=`blcli DepotObject getDBKeyByTypeStringGroupAndName RPM_INSTALLABLE "/SoftwareGroup" python-4.2-0.69.2asp.i386.rpm`
#Assign a new install command to this installable.
NEW_INSTALLABLE_KEY=`blcli DepotSoftware updateInstallCommand "$INSTALLABLE_KEY" "rpm -Uiv cefiles ??SOURCE??"`
# If the installCommand itself needs to include double quotes, you need to escape them, using the backslash character (/). Example:
DepotSoftware updateInstallCommand "$INSTALLABLE_KEY" "/"??WINDIR??/$NTInstall??HOTFIXNAME??$/spinst/spinst.exe/" /u /q /z"
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*