Setting Your Object’s Destination Through the Script
InstallShield 2026
Project:
You may decide to define of one of your object’s components’ Destination properties in terms of a script-defined variable. If you do, users of your object will need to ensure that the value of the script-defined variable is set before they call ComponentCompareSizeRequired in their script; otherwise, the function will report insufficient disk space. You can provide the ability to set the value of the script-defined variable in one or both of the following ways:
| • | A write-only or read/write object property whose put_ function calls ComponentSetTarget, for example: |
function VOID put_SetTargetDest ( szScriptVar , szValue )
begin
ComponentSetTarget ( MEDIA , szScriptVar , szValue );
end;
| • | An end-user dialog displayed by the object’s OnFirstUIBefore event handler. |