There is a predefined variable "InstallerFilePath" to solve my issue.
installer.value("InstallerFilePath");During my search I came across other interesting solutions. For example, you can also list all running processes and then search for your own name via RegEx. Maybe this approach is also interesting for somebody.
// list the names of all running processes var outputArr = installer.execute('cmd.exe', ['/C', 'wmic process get name']); var id = ""; if(outputArr.length == 2) { // match the name of "my-installer-123456.exe" and extract the numerical id id = outputArr[0].match(/my\-installer\-(\d+)/i)[1]; }