installscript

How can I obtain filename of own MSI/EXE installer file?


I need to get a filename of the own installation package within an InstallScript function. How can I do that?


Solution

  • SETUPEXEDIR and SETUPEXENAME are MSI properties. You can obtain their values through the MsiGetProperty function. If you are not using an MSI then you can use the PACKAGE_LOCATION system variable, as in

    ParsePath(svSetupExeFileName, PACKAGE_LOCATION, FILENAME);