tags:

views:

89

answers:

1

Hello there,

I have a DLL that I am calling from Inno setup script, dll is looking to load some file from the path where executable is located.

In my case when I execute the setup, temporary executable is exported in temp folder is-xxxxx

BTW, {tmp} is not the right one. It is another tmp folder but not the one that temporary setup.

I need to know that in inno setup is there a constant to represent that folder.

Thanks.

+1  A: 

Your DLL can determine which path it's been extracted to and it can also determine the path of the temporary executable. The way you do it depends on the language your DLL is written in.

But the Key Windows API call is GetModuleFileName

If your DLL was written in Delphi you could use the following to get the path of Setup.exe

ExtractFilePath(ParamStr(0))
Robert Love