Page 1 of 1

Installation of external files

Posted: Mon Aug 25, 2014 7:58 pm
by johnbyerly
Hi,

We have a customer who wishes to deliver one or more files along with our installer (all zipped up together). I am trying to figure out a way to get those files installed. I see the Local Files capability, but I don't know how to access these external files.

For example, let say this is the contents of the zip file that is delivered:

XYZInstaller.exe
Auxfile1.txt
Auxfile2.txt
DB.dat

We create XYZInstaller.exe and supply it to our customer. They package it with the other files, zip it up, and deliver it to their customers. They don't want us to know the contents of the extra files, but wish them to be installed along with our program.

Is there any way to do this?

JAB

Re: Installation of external files

Posted: Tue Aug 26, 2014 11:53 am
by FrancescoT
Dear Jab,

if these files are available at Runtime execution within the folder containing the setup executable itself, you can access to them using the EXEDIR pre-defined script variable.

However, at least you must know the name of each single file that you want to process with your installer, or they should include an additional text file where those files are listed.

In this last case, you could read through the text file via script, in order to collect the name of each external file included.

Hope this helps you.

Regards

Re: Installation of external files

Posted: Tue Aug 26, 2014 3:28 pm
by johnbyerly
Thank you! That works great for uncompressed files.

Since (apparently) the first step when running a single file install is to expand the files, this doesn't work with a single file install. Is there a similar variable that will give me the location of the single .exe file?

Thanks!

Re: Installation of external files

Posted: Wed Aug 27, 2014 10:12 am
by FrancescoT
Dear Jab,

the SETUPPATH pre-defined variable should solve your problem.

Regards

Re: Installation of external files

Posted: Wed Aug 27, 2014 2:06 pm
by johnbyerly
Thanks!

Re: Installation of external files

Posted: Thu Aug 28, 2014 10:52 am
by FrancescoT
:D