[Osgeo4w-trac] [osgeo4w] #377: Setup in Start Menu does not work
OSGeo4W
trac_osgeo4w at osgeo.org
Mon Sep 23 18:28:24 PDT 2013
#377: Setup in Start Menu does not work
--------------------+-------------------------------------------------------
Reporter: mwtoews | Owner: osgeo4w-dev@…
Type: defect | Status: new
Priority: minor | Component: Package
Version: Beta | Keywords:
--------------------+-------------------------------------------------------
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
}}}
--
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/377>
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