InstallShield 2016 » InstallScript Language Reference
Message
'text' : undefined identifier
Description
The identifier specified by text has not been declared.
Troubleshooting Information
All identifiers in a script must be declared before they can be referenced in the main program block or in a function block. Check that the identifier has been declared. if it has, check that spelling used in the declaration matches the spelling of the identifier at the error location.
Note • Your script might be calling an unsupported function. See Unsupported Functions for more information.
“‘INSTALLDIR’: undefined identifier” when Compiling After Conversion
Error C8025 specifies that the identifier (INSTALLDIR in this case) has not been declared. All identifiers in a script must be declared before they can be referenced in the main program block or in a function block.
Note • The exact error message for error C8025 is not a specific error. It is issued to anything undefined.
As part of the changes that take place during the conversion process (from InstallScript MSI to an InstallScript project), INSTALLDIR should have been changed to TARGETDIR throughout various IDE elements. Error C8025 occurs when the value of TARGETDIR is not set in your script.
Therefore, the value of TARGETDIR must be set in your script, as it is by default in the OnFirstUIBefore event handler function.
You can use the following code to set TARGETDIR:
if ( ALLUSERS ) then
TARGETDIR = PROGRAMFILES ^ IFX_COMPANY_NAME ^ IFX_PRODUCT_NAME;
else
TARGETDIR = FOLDER_APPDATA ^ IFX_COMPANY_NAME ^ IFX_PRODUCT_NAME;
See Also
InstallShield 2016 Help LibraryAugust 2016 |
Copyright Information | Flexera Software |