Opened 11 years ago

Closed 11 years ago

#377 closed defect (fixed)

Setup in Start Menu does not work

Reported by: Mike Taves Owned by: osgeo4w-dev@…
Priority: minor Component: Package
Version: Beta Keywords:
Cc:

Description

After installing the "setup" package, the shortcut in the Start Menu does not work, as it has blank fields in the shortcut properties.

Looking in /etc/postinstall/setup.bat is not using xxmklink correctly. Re-executing the command show the following output:

C:\>xxmklink "%OSGEO4W_STARTMENU%\Setup.lnk" "%OSGEO4W_ROOT%\bin\setup.bat -R %OSGEO4W_ROOT%" "" "" "Installer" 1 "%OSGEO4W_ROOT%\OSGeo4W.ico"

XXMkLink     ver 1.00    (c)2005 Copyright  Pixelab, Inc.

The shortut created as follows

Shortcut path:     C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OSGeo4W\
Setup.lnk
Target object:     C:\OSGeo4W\bin\setup.bat -R C:\OSGeo4W
Arguments;
Working Directory:
Description:       Installer
Display Mode:      Normal Window (1)
Icon file:         C:\OSGeo4W\OSGeo4W.ico

The arguments and work directory are not correctly set. Furthermore, the -R flag to osgeo4w-setup-work.exe appears to not start it up, so I'm not sure what it does. It might need to be left off.

Here is my suggested fix for /etc/postinstall/setup.bat:

xxmklink "%OSGEO4W_STARTMENU%\Setup.lnk" "%OSGEO4W_ROOT%\bin\setup.bat" "" "%OSGEO4W_ROOT%" "Installer" 1 "%OSGEO4W_ROOT%\OSGeo4W.ico"

with output

XXMkLink     ver 1.00    (c)2005 Copyright  Pixelab, Inc.

The shortut created as follows

Shortcut path:     C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OSGeo4W\
Setup.lnk
Target object:     C:\OSGeo4W\bin\setup.bat
Arguments;
Working Directory: C:\OSGeo4W
Description:       Installer
Display Mode:      Normal Window (1)
Icon file:         C:\OSGeo4W\OSGeo4W.ico

Change History (1)

comment:1 by jef, 11 years ago

Resolution: fixed
Status: newclosed

setup is now using nircmd.

Note: See TracTickets for help on using tickets.