Page 1 of 1

Establish path installer ran from

Posted: Wed Apr 15, 2015 6:19 am
by AdrianGray
I am wanting to set the TARGETDIR to the location that the single file executable installer file was launched from. How do I code this. Thanks, Adrian.

Re: Establish path installer ran from

Posted: Wed Apr 15, 2015 12:12 pm
by FrancescoT
Dear Adrian,

please have a look at the; EXEDIR, EXEFILE, SETUPPATH, SFXFILE and SFXPATH, pre-defined variables.

Anyway, I found quite strange that you want to assign the TARGETDIR to such value :o ... for example, it could generate errors if the that location is temporarily available.

Regards

Re: Establish path installer ran from

Posted: Wed Apr 15, 2015 5:47 pm
by AdrianGray
Thanks again, just what I was looking for. The user is requested to start the installer in a specified location, so files can be extracted there for later use. If the user does this, then the TARGETDIR will be seeded correctly for the "destination" dialog. If they don't, the user will need to browse to the appropriate place anyway. Regards, Adrian.