Archive: execute file with correct


execute file with correct
Well I dont know how to explain this but I will try.

I have an aplication with an .ini file in which it stores some settings, I extract them with a lot of other files (all in to another directory), and afterwards I execute some of those.
But when I launch the app, it should open the .ini file in the same directory and read the settings, and if there isnt an ini file it makes an new one in the same directory.

now the problem is it thinks it is run from a different location, (e.g. one of the dirs I copied files to). it just takes one of those.

How do I make the app see the correct path it is launched from so it takes my ini file with the correct settings?


I don't understand exactly what you mean, but when you want to get the dir in which the Setup file is just use $EXEDIR


I need the aplication (outside the install dir), to think that it has been executed from the dir it is in, not some random dir.


Use the SetOutPath before running the program.

Vytautas