<div dir="ltr">Date: Mon, 20 Oct 2025 22:56:50 +0200<br>From: J?rgen E. Fischer <<a href="mailto:jef@norbit.de" target="_blank">jef@norbit.de</a>><br>To: <a href="mailto:qgis-user@mail.osgeo.org" target="_blank">qgis-user@mail.osgeo.org</a><br>Subject: Re: [Qgis-user] Help with a Portable QGIS Build<br>Message-ID: <<a href="mailto:20251020205650.b74zawccxlwmczn2@norbit.de" target="_blank">20251020205650.b74zawccxlwmczn2@norbit.de</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>Hi John,<br><br>On Sat, 18. Oct 2025 at 00:00:14 -0400, John Zastrow via QGIS-User wrote:<br>> I'm working on a project to bundle QGIS with data to create an easy-to-ship<br>> and use viewer (aka atlas). However, I'm struggling with the portability of<br>> it, and I'm hoping someone can help me get QGIS running as it moves from<br>> computer to computer. The process and progress sections at the link below<br>> explain where I am right now with the .bat file I'm trying to use.<br>><br>> <a href="https://github.com/johnzastrow/mqs/blob/main/docs/qgis_viewer/REQUIREMENTS.MD" rel="noreferrer" target="_blank">https://github.com/johnzastrow/mqs/blob/main/docs/qgis_viewer/REQUIREMENTS.MD</a><br><br>Try:<br><br>REM RunAtlas.bat<br>call "%~dp0\bin\qgis.bat" --postinstall<br>"%~dp0\bin\qgis.bat" --profiles-path "%~dp0\Profiles"  --profile "Viewer2" --project "geopackage:%~dp0\data.gpkg?projectName=main_project"<br><br><br>J?rgen<div><br></div><div><span>J</span>?<span>rgen</span><br><br>--<br><span>J</span>?<span>rgen</span> E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31<br>Dipl.-Inf. (FH)             Rheinstra?e 13          Fax. +49-4931-918175-50<br>Software Engineer           D-26506 Norden            <a href="https://www.norbit.de/" rel="noreferrer" target="_blank">https://www.norbit.de</a><br>QGIS release manager (PSC)  Germany                 IRC: jef on Libera|OFTC<br><div><br></div><div>Hello Jürgen,</div><div><br></div><div>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.</div><div><br></div><div><a href="https://github.com/johnzastrow/QGIS/tree/master/portable">https://github.com/johnzastrow/QGIS/tree/master/portable</a></div><div><br></div><div>John</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 18, 2025 at 12:00 AM John Zastrow <<a href="mailto:br8kwall@gmail.com" target="_blank">br8kwall@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><br>Hello,<br><br>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.<br><br><a href="https://github.com/johnzastrow/mqs/blob/main/docs/qgis_viewer/REQUIREMENTS.MD" target="_blank">https://github.com/johnzastrow/mqs/blob/main/docs/qgis_viewer/REQUIREMENTS.MD</a><br><br>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.<br><br>Thank you<br></div>
</blockquote></div>