Establish path installer ran from

Got a problem you cannot solve? Try here.
AdrianGray
Posts: 32
Joined: Fri Jul 25, 2014 5:21 am

Establish path installer ran from

Postby AdrianGray » Wed Apr 15, 2015 6:19 am

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.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Establish path installer ran from

Postby FrancescoT » Wed Apr 15, 2015 12:12 pm

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

AdrianGray
Posts: 32
Joined: Fri Jul 25, 2014 5:21 am

Re: Establish path installer ran from

Postby AdrianGray » Wed Apr 15, 2015 5:47 pm

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.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 92 guests