#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: | Keywords: QGIS detection ------------------------+---------------------------- 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 -- Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/888> OSGeo4W <http://trac.osgeo.org/osgeo4w> OSGeo4W is the Windows installer and package environment for the OSGeo stack.
_______________________________________________ osgeo4w-dev mailing list osgeo4w-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev