[Osgeo4w-trac] { EXTERN } Re: [osgeo4w-dev] [osgeo4w] #888: Detection of QGIS install (via OSGeo4W installer) for mass deployment
Andreas Müller
muellea at uni-trier.de
Wed Jun 25 09:09:35 PDT 2025
When installing with the setup.exe/network installer you'll have installed.db in etc/setup with all version numbers and it's probably the last file written when installing. But I'm not sure if this file is available with the msi installer.
25.06.2025 17:44:54 OSGeo4W via osgeo4w-dev <osgeo4w-dev at lists.osgeo.org>:
> #888: Detection of QGIS install (via OSGeo4W installer) for mass deployment
> ---------------------------+----------------------------
> Reporter: ascottwwf | Owner: osgeo4w-dev@…
> Type: enhancement | Status: new
> Priority: normal | Component: Package
> Version: | Resolution:
> Keywords: QGIS detection |
> ---------------------------+----------------------------
> Description changed by ascottwwf:
>
> Old description:
>
>> Hello,
>>
>> I have a question which I'm unsure if this is the right place to ask, but
>> I suspect the answer may trigger this to become a development request.
>>
>> We use Microsoft Intune to deploy all our software applications to our
>> Windows client machines, and use Intune to deploy the latest QGIS LTR -
>> within the Intune deployment we use a PowerShell script which uses the
>> OSGeo4W installer to install the latest QGIS LTR onto our users devices.
>> (We install it to our chosen path below: `C:\Program Files\OSGeo4W_v2\`
>>
>> In Intune(as with most software deployment platforms) you need to supply
>> a detection method so you know if the software has installed
>> successfully.
>> The detection methods available are:
>> - **MSI** (detect a specific MSI code and version if required)
>> - **File** (File or Folder exists / Date Modified / Date Created String
>> (version) / Size in MB
>> - **Registry** (Key exists / Key does not exist / String comparison /
>> Version comparison / Integer comparison)
>>
>> As I am not aware of a specific Registry key that is written with each
>> QGIS install so I have not used a Registry detection. But currently for
>> each new release I have to find the Date Modified info for both the
>> `C:\Program Files\OSGeo4W_v2\apps\qgis-ltr\bin\qgis_core.dll` and
>> `C:\Program Files\OSGeo4W_v2\bin\qgis-ltr-bin.exe` files to use as our
>> detection rules.
>>
>> Could you provide a method by which I can successfully detect if the
>> latest version of QGIS LTR has been installed by it's version number?
>> As two example solutions:
>> 1. Could you provide a registry path I can query as part of the detection
>> to determine if the current QGIS LTR v3.40.8 has been installed?
>> 2. Could you add the version information to all or certain key
>> executables and dlls with the current QGIS version number?
>>
>> In both cases, the version would need to be in a standard Windows version
>> format (Major.Minor.Build or Major.Minor.Build.Revision)
>>
>> Thanks in advance
>
> New description:
>
> Hello,
>
> I have a question which I'm unsure if this is the right place to ask, but
> I suspect the answer may trigger this to become a development request.
>
> We use Microsoft Intune to deploy all our software applications to our
> Windows client machines, and use Intune to deploy the latest QGIS LTR -
> within the Intune deployment we use a PowerShell script which uses the
> OSGeo4W installer to install the latest QGIS LTR onto our users devices.
> (We install it to our chosen path below: `C:\Program Files\OSGeo4W_v2\`
>
> In Intune(as with most software deployment platforms) you need to supply a
> detection method so you know if the software has installed successfully.
> The detection methods available are:
> - **MSI** (detect a specific MSI code and version if required)
> - **File** (File or Folder exists / Date Modified / Date Created String
> (version) / Size in MB
> - **Registry** (Key exists / Key does not exist / String comparison /
> Version comparison / Integer comparison)
>
> As I am not aware of a specific Registry key that is written with each
> QGIS install so I have not used a Registry detection. But currently for
> each new release I have to find the Date Modified info for both the
> `C:\Program Files\OSGeo4W_v2\apps\qgis-ltr\bin\qgis_core.dll` and
> `C:\Program Files\OSGeo4W_v2\bin\qgis-ltr-bin.exe` files to use as our
> detection rules, but as this change is not consistent between versions,
> We'd like a method by which we can repeatedly update just the version
> number in each new deployment.
>
> Could you provide a method by which I can successfully detect if the
> latest version of QGIS LTR has been installed by it's version number?
> As two example solutions:
> 1. Could you provide a registry path I can query as part of the detection
> to determine if the current QGIS LTR v3.40.8 has been installed?
> 2. Could you add the version information to all or certain key executables
> and dlls with the current QGIS version number?
>
> In both cases, the version would need to be in a standard Windows version
> format (Major.Minor.Build or Major.Minor.Build.Revision)
>
> Thanks in advance
>
> --
> --
> Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/888#comment:1>
> OSGeo4W <http://trac.osgeo.org/osgeo4w>
> OSGeo4W is the Windows installer and package environment for the OSGeo stack.
> _______________________________________________
> osgeo4w-dev mailing list
> osgeo4w-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
More information about the Osgeo4w-trac
mailing list