[Qgis-user] Help with a Portable QGIS Build

John Zastrow br8kwall at gmail.com
Fri Oct 24 17:37:52 PDT 2025


Date: Mon, 20 Oct 2025 22:56:50 +0200
From: J?rgen E. Fischer <jef at norbit.de>
To: qgis-user at mail.osgeo.org
Subject: Re: [Qgis-user] Help with a Portable QGIS Build
Message-ID: <20251020205650.b74zawccxlwmczn2 at norbit.de>
Content-Type: text/plain; charset="utf-8"

Hi John,

On Sat, 18. Oct 2025 at 00:00:14 -0400, John Zastrow via QGIS-User wrote:
> I'm working on a project to bundle QGIS with data to create an
easy-to-ship
> and use viewer (aka atlas). However, I'm struggling with the portability
of
> it, and I'm hoping someone can help me get QGIS running as it moves from
> computer to computer. The process and progress sections at the link below
> explain where I am right now with the .bat file I'm trying to use.
>
>
https://github.com/johnzastrow/mqs/blob/main/docs/qgis_viewer/REQUIREMENTS.MD

Try:

REM RunAtlas.bat
call "%~dp0\bin\qgis.bat" --postinstall
"%~dp0\bin\qgis.bat" --profiles-path "%~dp0\Profiles"  --profile "Viewer2"
--project "geopackage:%~dp0\data.gpkg?projectName=main_project"


J?rgen

J?rgen

--
J?rgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstra?e 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden            https://www.norbit.de
QGIS release manager (PSC)  Germany                 IRC: jef on Libera|OFTC

Hello Jürgen,

Thank you for this. Unfortunately, that didn't seem to do anything. That
is, I didn't see it update `qgis-bin.env` and ultimately QGIS did not start
or even pop up a window. I was hoping for an elegant solution like your
script, but I was unable to completely trace out the various cascading
scripts that set up the QGIS environment. I resorted to unleashing the army
of robots to document the initialization steps and produce a convoluted
script that is excessive but works for now.

https://github.com/johnzastrow/QGIS/tree/master/portable

John


On Sat, Oct 18, 2025 at 12:00 AM John Zastrow <br8kwall at gmail.com> wrote:

>
>
> Hello,
>
> I'm working on a project to bundle QGIS with data to create an
> easy-to-ship and use viewer (aka atlas). However, I'm struggling with the
> portability of it, and I'm hoping someone can help me get QGIS running as
> it moves from computer to computer. The process and progress sections at
> the link below explain where I am right now with the .bat file I'm trying
> to use.
>
>
> https://github.com/johnzastrow/mqs/blob/main/docs/qgis_viewer/REQUIREMENTS.MD
>
> It seems my script is not doing the right things to reset environment
> variables as the atlas moves to a new computer. Trying to unravel the
> cascading .bat files from the installer has led me to a blind alley.
>
> Thank you
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20251024/2e82c082/attachment.htm>


More information about the QGIS-User mailing list