Unattended installation of FreeFileSync_11.6_Install.run

Discuss new features and functions
Posts: 39
Joined: 29 Jan 2018

acg

Hi. Great work
How do I run an unattended installation of FreeFileSync_11.6_Install.run
I have tried with the following commands and none works:
yes | sudo ./FreeFileSync_11.6_Install.run
yes y | sudo ./FreeFileSync_11.6_Install.run
sudo sh -c 'yes y | ./FreeFileSync_11.6_Install.run'
echo y | sudo ./FreeFileSync_11.6_Install.run
printf "y\ny\n\n" | sudo ./FreeFileSync_11.6_Install.run
Help doesn't say much:
FreeFileSync installation parameters:
    -h, --help    Show help
    --directory   Change installation directory e.g. --directory /opt/FFS
    --noshortcuts  Don't create desktop shortcuts
Thanks in advanced
Posts: 39
Joined: 29 Jan 2018

acg

Captura de pantalla -2021-02-15 12-06-55.png
Captura de pantalla -2021-02-15 12-06-55.png (24.35 KiB) Viewed 2118 times
Posts: 39
Joined: 29 Jan 2018

acg

Distro: Ubuntu Mate 20.04 LTS
Bash 5.0.17(1)-release (x86_64-pc-linux-gnu)
User avatar
Posts: 4055
Joined: 11 Jun 2019

xCSxXenon

Command-line installation seems to be donation only, and the FAQ page only shows Windows
https://freefilesync.org/faq.php#donation-edition
User avatar
Posts: 4055
Joined: 11 Jun 2019

xCSxXenon

Seems to be an issue with 20.04 then, no?
Posts: 39
Joined: 29 Jan 2018

acg

Seems to be an issue with 20.04 then, no? xCSxXenon, 16 Feb 2021, 17:32
I will check with various Ubuntu distros and bash versions. For this I need some time and soon I will publish the result
User avatar
Site Admin
Posts: 7212
Joined: 9 Dec 2007

Zenju

I've added the --accept-license option for unattended installation.
Posts: 39
Joined: 29 Jan 2018

acg

I've added the --accept-license option for unattended installation. Zenju, 16 Feb 2021, 19:17
For the next version?... If your answer is yes, note this:
- The first question is solved with --accept-license
- The second question is solved with --directory
- And the last one (press a key)?... I think this option is not necessary and should be removed for unattended installation
Attachments
Captura de pantalla -2021-02-16 15-36-46.png
Captura de pantalla -2021-02-16 15-36-46.png (34.22 KiB) Viewed 2066 times
Captura de pantalla -2021-02-16 15-25-54.png
Captura de pantalla -2021-02-16 15-25-54.png (19.68 KiB) Viewed 2068 times
Posts: 39
Joined: 29 Jan 2018

acg

workaround for this version 11.6 (while releasing the version with the --accept-license parameter):
#!/usr/bin/expect
set timeout -1
log_user 0
spawn ./FreeFileSync_11.6_Install.run
log_user 1
expect -exact "\r
Accept the FreeFileSync license terms? (Enter 's' to show them) \[y/n/s\] "
send -- "y\r"
expect -exact "y\r
Install FreeFileSync into /opt/FreeFileSync? \[Y/n\] "
send -- "Y\r"
expect -exact "https://freefilesync.org/donate\r
\r"
Source: https://serverfault.com/a/1053894/480349
Posts: 309
Joined: 7 Jan 2018

bgstack15

I was expecting (hah) that expect could do what you want, but I hardly ever use it so I didn't want to grapple that task. The .run file can be extracted to get the tar.gz like before.
Posts: 39
Joined: 29 Jan 2018

acg

I was expecting (hah) that expect could do what you want, but I hardly ever use it so I didn't want to grapple that task. The .run file can be extracted to get the tar.gz like before. bgstack15, 17 Feb 2021, 12:44
Many things can be done to solve this problem. What you say, what I posted, etc., but in my opinion the best solution is the parameter --accept-license
Hopefully developers release it with the next version, which I hope will be soon. Thanks