Installing file at the beginning of installation

Got a problem you cannot solve? Try here.
mdavtec
Posts: 23
Joined: Wed Jan 20, 2016 2:59 pm

Installing file at the beginning of installation

Postby mdavtec » Thu May 19, 2016 10:10 am

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.
ExchA

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

Re: Installing file at the beginning of installation

Postby FrancescoT » Thu May 19, 2016 1:08 pm

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
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

mdavtec
Posts: 23
Joined: Wed Jan 20, 2016 2:59 pm

Re: Installing file at the beginning of installation

Postby mdavtec » Fri May 20, 2016 9:14 am

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.
ExchA

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

Re: Installing file at the beginning of installation

Postby FrancescoT » Fri May 20, 2016 11:56 am

:D
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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 24 guests