Changes between Version 2 and Version 3 of PackagingInstructions


Ignore:
Timestamp:
01/14/09 12:16:16 (16 years ago)
Author:
warmerdam
Comment:

Fix use of osgeo4w_startmenu env variable.

Legend:

Unmodified
Added
Removed
Modified
  • PackagingInstructions

    v2 v3  
    116116Another postinstall task that packages might do is to create shortcuts that will be available to launch a certain command. As its is the case for the textreplace executable, there is an utility binary xxmklink.exe that is available in the installer (part of the msvcrt package). By typing xxmklink, you can see all the options supported by this utility. Here are some examples on how it can be used in a post install file:
    117117{{{
    118   mkdir "%ALLUSERSPROFILE%\%OSGEO4W_STARTMENU%\Programs\OSGeo4W"
    119   mkdir "%ALLUSERSPROFILE%\%OSGEO4W_STARTMENU%\Programs\OSGeo4W\Apache"
    120   xxmklink "%ALLUSERSPROFILE%\%OSGEO4W_STARTMENU%\Programs\OSGeo4W\Apache\OSGEO4W-Apache-Install.lnk"
     118  mkdir "%OSGEO4W_STARTMENU%"
     119  mkdir "%OSGEO4W_STARTMENU%\Apache"
     120  xxmklink "%OSGEO4W_STARTMENU%\Apache\OSGEO4W-Apache-Install.lnk"
    121121    %OSGEO4W_ROOT%\Apache\bin\httpd.exe " -k install -n \"Apache OSGEO4W Web Server\""
    122122}}}
    123123Using icons:
    124124{{{
    125   xxmklink "%ALLUSERSPROFILE%\%OSGEO4W_STARTMENU%\Programs\OSGeo4W\ttt.lnk" cmd.exe "" . "my_desc" 1
    126     "%OSGEO4W_ROOT%\OSGeo4W.ico"
     125  xxmklink "%OSGEO4W_STARTMENU%\ttt.lnk" cmd.exe "" . "my_desc" 1 "%OSGEO4W_ROOT%\OSGeo4W.ico"
    127126}}}
    128127A Desktop icon: