Opened 3 years ago

#693 new defect

Command line install does not create desktop shortcut

Reported by: nicogodet Owned by: osgeo4w-dev@…
Priority: major Component: Installer
Version: Keywords:
Cc:

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.