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.
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.
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.
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.
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?
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?
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?