cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
hazosTAS
Level 3

Install Exe's Application Path

Is there a way to get the install executables application path? By install executable I mean the install that was created. And by application path I mean where the executable resides. For example, if i have my setup.exe in C:\Test, the application path would be C:\Test. If i were to move the file to D:\Folder1\Folder2\Test, the application path would be D:\Folder1\Folder2\Test. Let me know if this is possible. Thanks in advance.
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

What kind of project? For MSI, SETUPEXEDIR might be of use, and for InstallScript, see PACKAGE_LOCATION.
0 Kudos
hazosTAS
Level 3

I am using an Installscript type. I tried PACKAGE_LOCATION, and it returned an empty string. This is what i tried as a test.

function OnBegin()
begin
MessageBox(PACKAGE_LOCATION, WARNING);
end;
0 Kudos
hazosTAS
Level 3

I got it to work with SRCDIR, thanks for the SETUPEXEDIR tip!
0 Kudos