<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#467886;
text-decoration:underline;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Still haven’t solved this issue. Does anyone read this mailing list or should I be posting somewhere else? Is there any other official channel I could be using?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Marwan<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;mso-ligatures:none;mso-fareast-language:FR">From:</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;mso-ligatures:none;mso-fareast-language:FR"> osgeo4w-dev
<osgeo4w-dev-bounces@lists.osgeo.org> <b>On Behalf Of </b>BADAWI Marwan via osgeo4w-dev<br>
<b>Sent:</b> 23 April 2026 13:02<br>
<b>To:</b> osgeo4w-dev@lists.osgeo.org<br>
<b>Subject:</b> [osgeo4w-dev] Offline installer from cache not working<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">First of all I apologize if this is not the right place to post this, but I couldn’t find anywhere else. If it’s not, could you direct me to where I can post this problem with the installer?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I am trying to create an offline OSGeo4W install process to install QGIS 4 on sensitive no-internet computers. We are developing an internal plugin for QGIS and need the dev tools provided in the OSGeo4W installer.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">First, I manually installed QGIS and GDAL using Express install. This generated an installed.db file which I use as a reference list for all packages. The install goes smoothly and everything works as expected.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Then I created a local cache folder using the package list from the installed.db file using the following command: osgeo4w-setup.exe --quiet-mode --arch x86_64 --autoaccept --no-desktop --download --local-package-dir
C:\OSGEO_CACHE --site <a href="http://www.norbit.de/osgeo4w/v2">http://www.norbit.de/osgeo4w/v2</a> --packages $PkgList<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I tried installing offline with two different command lines:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">1: osgeo4w-setup.exe --quiet-mode --arch x86_64 --autoaccept --no-desktop --local-install C:\OSGEO_CACHE --packages $PkgList<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Everything goes well until the post-install process where the 2 following scripts generate an error because they cannot find zlib.dll: “etc\postinstall\grass.bat”, and “etc\postinstall\qgis-common.bat “.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And when I try to run QGIS from the start menu (or even from the OSgeo4W shell), I get the following error:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">“Could not load qgis_app.dll. Check MyPath\OsGeow4W\bin\qgis-bin.env for correct environment paths.”<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And the file looks OK, containing all the correct paths.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2: osgeo4w-setup.exe --quiet-mode --arch x86_64 --autoaccept --no-desktop --local-install C:\OSGEO_CACHE -C Libs -C Desktop -C Commandline_Utilities<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">No errors during install, but the end result is the same. Whenever I try running QGis, I get the same error “Could not load qgis_app.dll. Check MyPath\OsGeow4W\bin\qgis-bin.env for correct environment paths.”<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I also tried not using --quiet-mode, but I am also getting the same issue.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Why does a full online install work, but the offline one doesn’t? Am I doing something wrong?
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Marwan</span><span lang="EN-US" style="font-size:12.0pt;color:red;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">PS : I tired attaching the log and the installed.db files, but the message was too big and was awaiting admin action for over 2 days, so I cancelled it.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>