how to install dependecies in Pre-Install stage ?
I'm trying the trial version InstallAnyWhere 2022 under Linux.
I'm try to create console UI installer for the application under Linux Debian that have a dependency on libarchive library.
To install this dependencies, in the Sequence tab I added Action 'Execute Commаnd' to Pre-Install section and filled it's command line field:
sudo apt-get install libarchive13 libopencv-core4.5 libopencv-imgproc4.5
After creating the installer and running it, the application is installed, but the dependencies (libarchive) are not installed.
And I don't see any errors.
In the log file of installer i found:
Execute Command: sudo apt-get install libarchive13 libopencv-core4.5 libopencv-imgproc4.5
But really their are not in installed.
What am I doing wrong?
How can I see errors at the stage of command execution?
I tried to install the Linux package in the Install section, as shown in the screenshot.
This also didn't work on the Debian Linux.
A package with this name is present in the repository on the target system:
# apt-cache search libarchive13
libarchive13 - Multi-format archive and compression library (shared library)
In the installer log file i found:
Install Action: Install Linux Package: libarchive13
Additional Notes: ERROR - The command was not found on the PATH
What exactly command it need ?
apt, apt-get and dpkg are available in PATH
'Execute Commаnd' in Pre-install should install dependencies mentioned in command. I guess issue occurring might be due to user permission. Are you using root or admin user? Does this user have download permission ?