Skip to content

Instantly share code, notes, and snippets.

@felahdab
Last active March 8, 2021 09:44
Show Gist options
  • Save felahdab/8317b670e8a4d80c56da353db26df250 to your computer and use it in GitHub Desktop.
Save felahdab/8317b670e8a4d80c56da353db26df250 to your computer and use it in GitHub Desktop.
Make QGIS 3.16.4 LTR portable

In order to make QGIS portable on Windows:

  • get a copy of a vanilla QGIS install (usually Program Files\QGIS 3.16)
  • Create a "profiles" directory in the root folder of the QGIS copy
  • Modify the qgis-ltr.bat file and add the 2 following lines before the start line:
del %OSGEO4W_ROOT%\bin\qgis-ltr-bin.env
%OSGEO4W_ROOT%\bin\qgis-ltr-bin.exe --postinstall
  • Modify the start line and add --profiles-path "%OSGEO4W_ROOT%" before the %* which should remain at the end of the line

And voilà: you can now start QGIS in "portable mode" by double clicking of the qgis-ltr.bat file.

Your profiles will be transported with QGIS itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment