[osgeo4w-dev] [osgeo4w] #804: Could not load qgis_app.dll - QGIS LTR 3.28.11 OSGeo4W Installer

OSGeo4W trac_osgeo4w at osgeo.org
Wed Sep 20 14:34:03 PDT 2023


#804: Could not load qgis_app.dll - QGIS LTR 3.28.11 OSGeo4W Installer
------------------------------------------------+--------------------------
Reporter:  ascottwwf                            |       Owner:  osgeo4w-
                                                |  dev@…
    Type:  defect                               |      Status:  new
Priority:  normal                               |   Component:  Installer
 Version:  1.0                                  |  Resolution:
Keywords:  QGIS LTR OSGeo4W scripted installer  |
------------------------------------------------+--------------------------
Comment (by jef):

 Following works fine in a windows 11 sandbox for me:

 {{{
 pushd %USERPROFILE%\Downloads
 curl -LO https://download.osgeo.org/osgeo4w/v2/osgeo4w-setup.exe &
 osgeo4w-setup ^
   --quiet-mode ^
   --advanced ^
   --arch x86_64 ^
   --autoaccept ^
   --delete-orphans ^
   --local-package-dir "%APPDATA%\OSGeo4W_v2-Packages" ^
   --menu-name "QGIS LTR" ^
   --no-desktop ^
   --packages qgis-ltr-full ^
   --root "%ProgramFiles%\OSGeo4W_v2" ^
   --site "https://www.norbit.de/osgeo4w/v2" ^
   --site "https://download.osgeo.org/osgeo4w/v2" ^
   --site "https://ftp.osuosl.org/pub/osgeo/download/osgeo4w/v2" ^
   --upgrade-also
 popd
 }}}

 Did you check `setup.log` or `setup.log.full` in
 `%ProgramFiles%\OSGeo4W_v2\var\log`?  If `qgis-ltr-bin.env` is missing,
 then `%OSGEO4W_ROOT%\etc\postinstall\qgis-ltr.bat` probably didn't run
 correctly (should be `postinstall.bat.done` afterwards).  Without the
 proper `.env` file the exe will not run.

 You could find more details using the hints in
 [https://github.com/qgis/QGIS/issues/26891#issuecomment-495889169 QGIS
 #26891] (also mentioned in [https://github.com/qgis/QGIS/issues/49148 QGIS
 #49148])?
-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/804#comment:4>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the osgeo4w-dev mailing list