
I need to replace to this:

Cause i'm a game translator, and my translations need to be installed in game install dir, so, if I can replace this function to search for the .exe of the game, instead of indicate the folder, would be nice.
Maybe it can do using installoptions with .ini file, or nsdialogs, but I don't know how.
Thanks in advance...