Page 1 of 1

Installing file at the beginning of installation

Posted: Thu May 19, 2016 10:10 am
by mdavtec
I plan to install a file (an utility program) to a %TEMP% folder in the beginning of my installation before I do any other check. Reason for that is, I want to use that utility to do some task as I make progress during install/uninstall. My question is, is there a limitation as to how early I can install a file (using "Install Files" an "Apply Install" commands). I'm asking because when I try to uninstall the program it pop up a windows message "Please locate your original setup sources to continue operation". If I don't install files ( i.e. For testing purpose, if I comment out installation of a file during early in my main script), I don't see any popup during uninstall. That tells me that installing a file early in script is problematic. Any suggestion how can I resolve this.
Thanks.

Re: Installing file at the beginning of installation

Posted: Thu May 19, 2016 1:08 pm
by FrancescoT
Dear Mdavtec,

at such purpose you can use SUPPORTDIR location.

InstallAware uses support files at several places throughout the installation. Support files are not actually installed onto the target system, but they are part of the installation package. They are available temporarily while the installation is executing and are cleaned up when the installer finishes execution. You may include any file as a support file, and access it while the installation is running using the SUPPORTDIR variable.

$SUPPORTDIR$\MyFile.exe
http://www.installaware.com/forum/viewtopic.php?f=2&t=9962

To find out how to use the SUPPORTDIR, please search for "Modifying Support Files" with the included IA documentation (just press F1 in IA IDE).

Hope this helps you.

Regards

Re: Installing file at the beginning of installation

Posted: Fri May 20, 2016 9:14 am
by mdavtec
Francesco,
Thanks for the quick response. I'm kind of new to installation and InstallAware in particular. Glad that it provides this kind of feature.

Re: Installing file at the beginning of installation

Posted: Fri May 20, 2016 11:56 am
by FrancescoT
:D