<div dir="ltr"><div>So let me do an update.</div><div><br></div><div>I remove the fresh installation and package and the script run as expected with the following behaviours:</div><div><br></div><div>Show me a dialogue only with downloading the packages and close after download but the following packages aren't downloaded:</div><div>"gdal-oracle"</div><div>"gdal-mrsid" <br></div><div>"gdal-ecw" <br></div><div>"gdal-mss"</div><div>"gdal-filegdb"</div><div>"grass"</div><div>"saga-ltr"</div><div><br></div><div>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...</div><div><br></div><div>I will wait for some feedback.</div><div><br></div><div>Regards,</div><div>João<br>

</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">João Gaspar <<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:<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 dir="ltr"><div>Hi Devs,</div><div>I'm working a PowerShell script using OSGeo4W Network Installer to download specific packages in quiet-mode from a mirror and save locally. <br></div><div>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</div><div><br></div><div>This script is based on this gist: <a href="https://gist.github.com/Guts/6303dc5eb941eb24be3e27609cd46985" target="_blank">https://gist.github.com/Guts/6303dc5eb941eb24be3e27609cd46985</a></div><div><br></div><div>and I'm following  the <a href="https://trac.osgeo.org/osgeo4w/wiki/CommandLine" target="_blank">https://trac.osgeo.org/osgeo4w/wiki/CommandLine</a></div><div><br></div><div>Additional notes: <br></div><div>OS: Windows 10 Professional</div><div><br></div><div>I'm testing as Administrator. <br></div><div>Test with and without quotes (URL, packages) and the behaviour is the same.</div><div>I did the same install but with dialogs and the same packages and everything go right.<br></div><div><br></div><div>My changed script is actually like this:</div><div><br></div><div># 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</div><div><br></div><div><br></div><div>Did I do something wrong?</div><div><br></div><div>Best regards,</div><div>João Gaspar<br></div><div><br></div><div><br></div><div><br></div></div>
</blockquote></div>