[osgeo4w-dev] [osgeo4w-setup-x86_64][Question] CLI is skipping the parameters?

João Gaspar joao.f.r.gaspar at gmail.com
Tue Mar 3 00:36:45 PST 2020


Hi Stefan,
thank you for your email. I will test your way.

Regards,
João

Stefan Blumentrath <Stefan.Blumentrath at nina.no> escreveu no dia segunda,
2/03/2020 à(s) 08:23:

> Hi Joao,
>
>
>
> This is how I use to download and create a local installation repo:
>
> osgeo4w-setup-x86_64 -q -a x86_64 -g -k -S -l
> "R:\\Program\\QGIS-OSGeo4W\\QGIS3_packages" -D -P avce00 -P boost -P
> boost-devel -P boost-libs -P cairo -P curl -P eigen -P expat -P ffmpeg -P
> fftw -P flann -P fltk -P freeglut -P freetype-devel -P freetype-vc-devel -P
> freexl -P fribidi -P gdal -P gdal-ecw -P gdal-filegdb -P gdal-mrsid -P
> gdal-mss -P gdal-oracle -P gdal-python -P gdal-sosi -P geos -P glew -P
> glext -P glfw -P gpsbabel -P gpsbabelfe -P grass -P gs -P gsl-devel -P
> gsl-libs -P hdf4 -P hdf5 -P hexer -P iconv -P iconv-vc14-devel -P icu-devel
> -P itk -P java -P laszip -P libcairo -P libgeotiff -P libjpeg -P libjpeg12
> -P libkml -P liblas -P …..
>
>
>
> And then to install:
>
> osgeo4w-setup-x86_64.exe -q -k -g -A -d -a x86_64 --local-install --root
> "C:\\Programs\\OSGeo4W" -l "R:\\Program\\QGIS-OSGeo4W\\QGIS3_packages" -C
> Libs -C Commandline_Utilities -C Desktop
>
>
>
> Hope that helps a bit.
>
>
>
> Cheers
>
> Stefan
>
>
>
> *From:* osgeo4w-dev <osgeo4w-dev-bounces at lists.osgeo.org> *On Behalf Of *João
> Gaspar
> *Sent:* fredag 28. februar 2020 16:04
> *To:* osgeo4w-dev at lists.osgeo.org
> *Subject:* Re: [osgeo4w-dev] [osgeo4w-setup-x86_64][Question] CLI is
> skipping the parameters?
>
>
>
> So let me do an update.
>
>
>
> I remove the fresh installation and package and the script run as expected
> with the following behaviours:
>
>
>
> Show me a dialogue only with downloading the packages and close after
> download but the following packages aren't downloaded:
>
> "gdal-oracle"
>
> "gdal-mrsid"
>
> "gdal-ecw"
>
> "gdal-mss"
>
> "gdal-filegdb"
>
> "grass"
>
> "saga-ltr"
>
>
>
> But if I open using setup GUI with the same mirror I can see the packages
> and I can download. For gdal "extensions" I probably point for some kind of
> issue with the flag --auto-accept but involve grass and saga-ltr...
>
>
>
> I will wait for some feedback.
>
>
>
> Regards,
>
> João
>
>
>
>
>
>
>
> João Gaspar <joao.f.r.gaspar at gmail.com> escreveu no dia sexta, 28/02/2020
> à(s) 14:07:
>
> Hi Devs,
>
> I'm working a PowerShell script using OSGeo4W Network Installer to
> download specific packages in quiet-mode from a mirror and save locally.
>
> What is happening is that we run but don't respect the parameter
> --quiet-mode, --no-desktop and don't download the specific packages. Only
> download the installer and the setup.ini
>
>
>
> This script is based on this gist:
> https://gist.github.com/Guts/6303dc5eb941eb24be3e27609cd46985
>
>
>
> and I'm following  the https://trac.osgeo.org/osgeo4w/wiki/CommandLine
>
>
>
> Additional notes:
>
> OS: Windows 10 Professional
>
>
>
> I'm testing as Administrator.
>
> Test with and without quotes (URL, packages) and the behaviour is the same.
>
> I did the same install but with dialogs and the same packages and
> everything go right.
>
>
>
> My changed script is actually like this:
>
>
>
> # Save current working directory
> $starter_path = Get-Location
>
> # Move into the user download directory
> Set-Location -Path "$env:USERPROFILE/Downloads"
>
> # Download installer (storage standard installer)
> Write-Host "= Start downloading the OSGeo4W installer" -ForegroundColor
> Yellow
> Invoke-WebRequest -Uri "
> https://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe" -OutFile
> "osgeo4w-setup-x86_64.exe"
>
> # Download the packages included into the QGIS LTR Specific packages
> Write-Host "== Installer downloaded into $env:USERPROFILE/Downloads"
> -ForegroundColor Yellow
> Write-Host "== Start downloading the QGIS LTR " -ForegroundColor Yellow
> .\osgeo4w-setup-x86_64.exe --quiet-mode --download --site "
> http://download.osgeo.org/osgeo4w" --no-desktop --advanced --arch x86_64
> --autoaccept --packages "qgis-ltr" "qgis-ltr-grass-plugin7"
> "qgis-ltr-oracle-provider" "gdal-oracle" "gdal-mrsid" "gdal-ecw" "gdal-mss"
> "gdal-filegdb" "hdf4" "hdf5" "libmysql" "netcdf" "oci" "opencl" "grass"
> "saga-ltr" "otb-bin" "otb-ice" "otb-python" "python3-exifread"
> "python3-h5py" "python3-pip" "python3-plotly" "python3-scipy"
> "python3-numpy" "python3-matplotlib" "python3-pyopengl" "python3-pyodbc"
> "ffmpeg" | out-null
>
>
>
>
>
> Did I do something wrong?
>
>
>
> Best regards,
>
> João Gaspar
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/osgeo4w-dev/attachments/20200303/88d44a7c/attachment-0001.html>


More information about the osgeo4w-dev mailing list