Changing ODBC Properties Through Script
InstallShield 2024
If you want to change ODBC properties (such as DBQ and SystemDB) through script, you must configure these options to use installer properties. Then from the script you can set those installer properties at run time. For example, you would set SystemDB to [SYSTEM_DB_DIR]\MyDatabase in the InstallShield interface. Then from the script, you could call MsiSetProperty to set the value of SYSTEM_DB_DIR.
Tip:Set the property value before the OnMoving event, preferably in OnFirstUIBefore. After that, it is too late because the installer has already built up its internal script information, which cannot be modified.
• | Use all uppercase letters for your property name. |
• | If SYSTEM_DB_DIR exists in the Directory table, omit the backslash (\) after the right bracket (]) when making your ODBC attribute settings. If you have defined it in the Property Manager, the backslash must be included. |