Offline Install error

Hello,

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 bug with the installer?

I am trying to create an offline OSGeo4W install process.

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.

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 http://www.norbit.de/osgeo4w/v2 --packages $PkgList

Then I install offline using the cache with the following command:
osgeo4w-setup.exe --quiet-mode --arch x86_64 --autoaccept --no-desktop --local-install C:\OSGEO_CACHE--packages $PkgList

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
  • etc\postinstall\qgis-common.bat

I don’t know if it is because of this but, when I try to run QGIS from the start menu, I get the following error:

`Could not load qgis_app.dll. Check MyPath\OsGeow4W\bin\qgis-bin.env for correct environment paths.`

And the file looks OK, containing all the correct paths.

Thank you!

Just to clarify, the Standalone Installer is not suitable for your purposes?

Doug

On Mon, Apr 20, 2026 at 4:08 PM Marwan <noreply@discourse.osgeo.org> wrote:

Someone replied to a topic you are Watching.

marwan
April 20

Hello,

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 bug with the installer?

I am trying to create an offline OSGeo4W install process.

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.

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 [http://www.norbit.de/osgeo4w/v2](http://www.norbit.de/osgeo4w/v2) --packages $PkgList

Then I install offline using the cache with the following command:
osgeo4w-setup.exe --quiet-mode --arch x86_64 --autoaccept --no-desktop --local-install C:\OSGEO_CACHE--packages $PkgList

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
  • etc\postinstall\qgis-common.bat

I don’t know if it is because of this but, when I try to run QGIS from the start menu, I get the following error:

Could not load qgis_app.dll. Check MyPath\OsGeow4W\bin\qgis-bin.env for correct environment paths.

And the file looks OK, containing all the correct paths.

Thank you!


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

Hi Doug, I’m not sure I understand your question. If you’re talking about the QGIS installer, then no it’s not enough, because we are developing a plugin and need all the extra OSGeo4W stuff. And we also need separate environments to test both QGIS 3 and 4.

Hi,
The QGIS installations come from a viewpoint of ( formerly) working within a government enterprise IT framework. The network OSGeo4W installer was a no-go for widespread installation from the enterprise security and management standpoint and the standalone installer was the only way to get approved. I would generally try to modify the environment from the OSGeo4W shell ( in approved ways) with user level permissions after installation from the standalone installer.

I completely understand why you are using the network installer if you are creating a development environment. I do recall a video presentation by a ground in England who created customized QGIS installers from the OSGeo4W network installer during one of the virtual QGIS meetings. I spotted this, https://github.com/haubourg/custom-osgeo4w-qgis , if it helps.

Doug

On Tue, Apr 21, 2026 at 3:36 AM Marwan <noreply@discourse.osgeo.org> wrote:

Someone replied to a topic you are Watching.

marwan
April 21

Hi Doug, I’m not sure I understand your question. If you’re talking about the QGIS installer, then no it’s not enough, because we are developing a plugin and need all the extra OSGeo4W stuff. And we also need separate environments to test both QGIS 3 and 4.


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

You got it in one. I am using the network installer to create an offline installer (for secure non-connected to internet computers). However, When I am installing from the offline cache, the install is failing and I can’t figure out why. The documentation for the OSGeo installer is very sparse.

I will look closely at the link you posted, thank you very much. But it seems at first glance to explain how to create a custom package, not install existing ones. Were you thinking I should create my own meta-package using this method?

I just thought it might be an option.

On Tue, Apr 21, 2026, 11:26 AM Marwan <noreply@discourse.osgeo.org> wrote:

Someone replied to a topic you are Watching.

marwan
April 21

You got it in one. I am using the network installer to create an offline installer (for secure non-connected to internet computers). However, When I am installing from the offline cache, the install is failing and I can’t figure out why. The documentation for the OSGeo installer is very sparse.

I will look closely at the link you posted, thank you very much. But it seems at first glance to explain how to create a custom package, not install existing ones. Were you thinking I should create my own meta-package using this method?


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

Sorry if I came off dismissive, it wasn’t my intention.

That link contains a lot of interesting information and I learned a lot. So thank you!

It helped me simplify the process quite a but, but unfortunately I’m still having the same issue.

I’m beginning to suspect there might be an issue with the installer itself.

I tried posting to the osgeo4w-dev mailing list (which is apparently dedicated to the installer), but haven’t heard back yet.

Feels weird there isn’t an issue page on some github where this can be discussed with the developers…

Anyway, thanks a lot for your feedback Doug, I learned from it :slight_smile:

FWIW I still haven’t solved this issue, and am getting zero replies on the official Installer mailing list. Does anyone know of any other official channels I could use?

Thanks!