FrancescoT wrote:Dear SITL,
I really don't know how did you test the value returned by the SETUPPATH ... but this is the one that can be to detect the outermost folder containing the executable program or setup database that initiated the installation. Supposing of course, that you are running a Single Compressed EXE/MSI.
As you can see by the attached screen-shot, I tried to run "myproject.msi" from the desktop and the SETUPPATH holds the expected desktop path, for the current user context who executed the package.
SETUPPATH.png
Hope this helps you.
Regards
Dear Francesco,
Here is some surprise

Actually with your help, I completed this task related to SETUPPATH, around the time, 29th jan 2016.
I tested and released to QA, everything was fine.
Today when i execute the same code SETUPPATH is $EXEDIR$
and $EXEDIR$ is D:\Program Files (x86)\InstallAware X5
Please see the attachment.
I do not know how to express this shock in words.
It is a big surprise, Need your advice, Hints ? clues ? comments, whatever.
Appreciate your help.
Regards
SITL