[Osgeo4w-trac] [osgeo4w] #693: Command line install does not create desktop shortcut

OSGeo4W trac_osgeo4w at osgeo.org
Sun Oct 3 02:47:31 PDT 2021


#693: Command line install does not create desktop shortcut
----------------------+---------------------------
Reporter:  nicogodet  |      Owner:  osgeo4w-dev@…
    Type:  defect     |     Status:  new
Priority:  major      |  Component:  Installer
 Version:             |   Keywords:
----------------------+---------------------------
 = Issue =

 When running the command
 {{{
 .\osgeo4w-setup.exe --menu-name "QGIS Custom" --root "C:\OSGeo4W"
 --advanced --quiet-mode --local-install --local-package-dir
 "\\192.168.1.20\PiPartage\DEPLOY\http%%3a%%2f%%2fwww.norbit.de%%2fosgeo4w%%2fv2%%2f"
 --autoaccept  --delete-orphans --upgrade-also -C Libs -C Desktop -C
 Commandline_Utilities
 }}}
 The desktop shortcut is not created.

 Line in postinstall script:
 {{{
 if not %OSGEO4W_DESKTOP_LINKS%==0 xxmklink
 "%OSGEO4W_DESKTOP%\%APPNAME%.lnk" "%OSGEO4W_ROOT%\bin\qgis-ltr-custom.bat"
 "" "%DOCUMENTS%" "" 1 "%OSGEO4W_ROOT%\apps\qgis-ltr\icons\qgis.ico"
 }}}

 Same line in setup.log.full:
 {{{
 C:\OSGeo4W>if not 0 == 0 xxmklink "C:\Users\Nicolas Godet\Desktop/QGIS
 ISL\QGIS ISL (LTR).lnk" "C:\\OSGeo4W\bin\qgis-ltr-isl.bat" "" "" "" 1
 "C:\\OSGeo4W\apps\qgis-ltr\icons\qgis.ico"
 }}}

 It seems that `OSGEO4W_DESKTOP_LINKS` is always equal to `0` even if
 `--no-desktop` option is not specified.
 Also noticed that `Create desktop shortcut` checkbox in GUI is disable by
 default, could be linked.

 = Additional context =
 https://github.com/haubourg/custom-osgeo4w-qgis/pull/3

-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/693>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the Osgeo4w-trac mailing list