[osgeo4w-dev] [osgeo4w] #891: Remember root location after install
OSGeo4W
trac_osgeo4w at osgeo.org
Wed Sep 3 07:19:53 PDT 2025
#891: Remember root location after install
--------------------------+---------------------------
Reporter: olivierdalang | Owner: osgeo4w-dev@…
Type: enhancement | Status: new
Priority: normal | Component: Package
Version: | Keywords:
--------------------------+---------------------------
Hello !
This is my first issue here, please don't hesitate to tell me if I missed
some good practices.
In a enterprise environnement, we are trying to use OSGeo4W to deploy
QGIS-lts while still allowing more advanced users to install QGIS-latest
or other OSGeo4W packages.
We are installing OSGeo to %localAppData%\Programs\OSGeo4W. The issue is
that when the user wants to upgrade his OSGeo4W packages with the bundled
osgeo4w-setup.exe, the default root location is againt C:\OSGeo4W.
Would it it possible to make osgeo4w-setup.exe to "remember" the root path
in which it was installed ? I'm thinking of a ini sidecar file, or somehow
detecting that it's inside a valid OSGeo4W root. This would make it
simpler to upgrade existing OSGeo4W packages without accidentally creating
a new OSGeo4W root or getting errors if C:\OSGeo4W is not writeable.
By the way, has there been some discussion/ticket already about defaulting
to %localAppData%\Programs\OSGeo4W when installing "just for me" ? As far
as I understand, it's the standard for user space programs.
Cheers
--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/891>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
More information about the osgeo4w-dev
mailing list