Opened 12 years ago

Closed 4 years ago

#300 closed defect (outdated)

apt misses menu and desktop link variables in postinstall

Reported by: maphew Owned by: maphew
Priority: major Component: Package
Version: Keywords: pkg-apt
Cc:

Description

Apt doesn't know about the %OSGEO4W_MENU_LINKS% and %OSGEO4W_DESKTOP_LINKS% variables introduced in setup.exe v1.0.6-5 (see PackagingInstructions).

With the qgis-dev package this manifests with a mkdir was unexpected at this time. error message at the console during postinstall phase, consequently the Start Menu and Desktop shortcuts are not created, nor are the relevant registry entries created/updated.

installing qgis-dev 1.9.0-18

B:\o4w>textreplace -std -t bin\qgis-dev.bat

B:\o4w>textreplace -std -t bin\qgis-dev-browser.bat
mkdir was unexpected at this time.
B:\o4w>if not ==0 mkdir "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OSGeo4W"
Post_install complete, return code 255

Change History (2)

comment:1 by maphew, 10 years ago

Owner: changed from osgeo4w-dev@… to maphew
Status: newassigned

dev of a feature to fix this tracked at https://github.com/maphew/apt/issues/16

Relevant for here though: inspecting the qgis-dev.bat reveals the error message is reporting a bug in that file. The comparison fails, if not %OSGEO4W_MENU_LINKS%==0 becomes if not ==0 which is invalid. It needs to be quoted, if not "%OSGEO4W_MENU_LINKS%"==0.

comment:2 by jef, 4 years ago

Resolution: outdated
Status: assignedclosed
Note: See TracTickets for help on using tickets.