<div dir="ltr"><div>Hi Stefan,</div><div>thank you for your email. I will test your way. <br></div><div><br></div><div>Regards,</div><div>João<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Stefan Blumentrath <<a href="mailto:Stefan.Blumentrath@nina.no">Stefan.Blumentrath@nina.no</a>> escreveu no dia segunda, 2/03/2020 à(s) 08:23:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="NO-BOK">
<div class="gmail-m_-3616344845324675019WordSection1">
<p class="MsoNormal"><span>Hi Joao,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">This is how I use to download and create a local installation repo:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">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 …..<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">And then to install:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">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<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Hope that helps a bit.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Stefan<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> osgeo4w-dev <<a href="mailto:osgeo4w-dev-bounces@lists.osgeo.org" target="_blank">osgeo4w-dev-bounces@lists.osgeo.org</a>>
<b>On Behalf Of </b>João Gaspar<br>
<b>Sent:</b> fredag 28. februar 2020 16:04<br>
<b>To:</b> <a href="mailto:osgeo4w-dev@lists.osgeo.org" target="_blank">osgeo4w-dev@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [osgeo4w-dev] [osgeo4w-setup-x86_64][Question] CLI is skipping the parameters?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-GB">So let me do an update.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB">I remove the fresh installation and package and the script run as expected with the following behaviours:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB">Show me a dialogue only with downloading the packages and close after download but the following packages aren't downloaded:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB">"gdal-oracle"<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB">"gdal-mrsid" <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB">"gdal-ecw" <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB">"gdal-mss"<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB">"gdal-filegdb"<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB">"grass"<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB">"saga-ltr"<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB">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...<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB">I will wait for some feedback.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB">Regards,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB">João<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-GB">João G</span>aspar <<a href="mailto:joao.f.r.gaspar@gmail.com" target="_blank">joao.f.r.gaspar@gmail.com</a>> escreveu no dia sexta, 28/02/2020 à(s) 14:07:<u></u><u></u></p>
</div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal">Hi Devs,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I'm working a PowerShell script using OSGeo4W Network Installer to download specific packages in quiet-mode from a mirror and save locally.
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">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<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">This script is based on this gist: <a href="https://gist.github.com/Guts/6303dc5eb941eb24be3e27609cd46985" target="_blank">
https://gist.github.com/Guts/6303dc5eb941eb24be3e27609cd46985</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">and I'm following the <a href="https://trac.osgeo.org/osgeo4w/wiki/CommandLine" target="_blank">
https://trac.osgeo.org/osgeo4w/wiki/CommandLine</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Additional notes: <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">OS: Windows 10 Professional<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I'm testing as Administrator. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Test with and without quotes (URL, packages) and the behaviour is the same.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I did the same install but with dialogs and the same packages and everything go right.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">My changed script is actually like this:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"># Save current working directory<br>
$starter_path = Get-Location<br>
<br>
# Move into the user download directory<br>
Set-Location -Path "$env:USERPROFILE/Downloads"<br>
<br>
# Download installer (storage standard installer)<br>
Write-Host "= Start downloading the OSGeo4W installer" -ForegroundColor Yellow<br>
Invoke-WebRequest -Uri "<a href="https://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe" target="_blank">https://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe</a>" -OutFile "osgeo4w-setup-x86_64.exe"<br>
<br>
# Download the packages included into the QGIS LTR Specific packages<br>
Write-Host "== Installer downloaded into $env:USERPROFILE/Downloads" -ForegroundColor Yellow<br>
Write-Host "== Start downloading the QGIS LTR " -ForegroundColor Yellow<br>
.\osgeo4w-setup-x86_64.exe --quiet-mode --download --site "<a href="http://download.osgeo.org/osgeo4w" target="_blank">http://download.osgeo.org/osgeo4w</a>" --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<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Did I do something wrong?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">João Gaspar<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote></div>