Changes between Version 2 and Version 3 of PackagingInstructions
- Timestamp:
- 01/14/09 12:16:16 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PackagingInstructions
v2 v3 116 116 Another 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: 117 117 {{{ 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" 121 121 %OSGEO4W_ROOT%\Apache\bin\httpd.exe " -k install -n \"Apache OSGEO4W Web Server\"" 122 122 }}} 123 123 Using icons: 124 124 {{{ 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" 127 126 }}} 128 127 A Desktop icon: