3 # Find a suitable download tool.
4 if [ -f "$(type -p curl)" ]; then
7 download_args
="-# -L -o"
8 elif [ -f "$(type -p wget)" ]; then
10 download_args_rss
="-q -O -"
13 echo "ERROR: No suitable download tool found."
17 SCRIPTDIR
="$(cd "$
(dirname "$0")" && pwd)"
18 MSYSGITROOT
="$(cd $SCRIPTDIR/../../ && pwd | sed 's/\/$//')/."
21 # Download the most recent Inno Setup version.
23 url
="http://www.jrsoftware.org/download.php/$file"
25 if [ "$download" == "curl" ]; then
26 download_args
="$download_args $file -R -z"
28 $download $download_args $file $url
31 # Remove any previous installation.
32 rm -fr share
/InnoSetup
/
34 # Silently install Inno Setup.
37 $wine $file /verysilent
/dir
="share\InnoSetup" /noicons
/tasks
="" /portable
=1
39 # See http://www.mingw.org/wiki/Posix_path_conversion.
40 $file //verysilent
//dir
="share\InnoSetup" //noicons
//tasks
="" //portable
=1
43 # Remove unneeded files from the installation.
44 ( cd share
/InnoSetup
/ && rm -fr Examples
/ Compil32.exe isscint.dll
)