OnSetTARGETDIR
InstallShield 2024 » InstallScript Language Reference
Project:
The OnSetTARGETDIR event handler function is called directly by the setup engine to set the value of the system variable TARGETDIR.
This event handler is called in any setup, including a setup that uses a procedural script (a script with a program…endprogram block).
Syntax
OnSetTARGETDIR ( );
Parameters
None.
Return Values
None.
Additional Information
• | By default, in a first installation OnSetTARGETDIR sets TARGETDIR to the value that you specified in the TARGETDIR setting in the General Information view, or—if you did not specify a value in InstallShield—to <FOLDER_APPLICATIONS>\<IFX_COMPANY_NAME>\<IFX_PRODUCT_NAME>. <FOLDER_APPLICATIONS>, <IFX_COMPANY_NAME>, and <IFX_PRODUCT_NAME> are texts substitutions whose values are resolved when TARGETDIR is referenced; that is, if you change the value of the system variable IFX_COMPANY_NAME or IFX_PRODUCT_NAME after OnSetTARGETDIR has been called, that change is reflected in subsequent references to TARGETDIR. |
• | A maintenance installation or uninstallation initializes TARGETDIR to the value that is stored in the log file, and by default OnSetTARGETDIR does not modify the value of TARGETDIR. |