Changeset 16917

Show
Ignore:
Timestamp:
20.08.2008 15:40:50 (11 years ago)
Author:
oranfry
Message:

dont overwrite startmenu shortcuts

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • release-kits/wirk2/installer/build.xml

    r16832 r16917  
    1515    <!-- custom tasks --> 
    1616    <typedef name="rsr" classname="RegexSearchReplace" classpathref="project.classpath"/> 
     17    <typedef name="rsr" classname="GetFreePath" classpathref="project.classpath"/> 
    1718    <taskdef name="shortcut" classname="com.orangevolt.tools.ant.Win32ShortcutTask" classpathref="project.classpath"/>  
    1819    <taskdef name="winprops" classname="com.orangevolt.tools.ant.Win32PropertiesTask" classpathref="project.classpath"/>  
     
    102103    <target name="install-start-menu-shortcuts"> 
    103104 
    104         <mkdir dir="${win32.personal.programs_menu}\Greenstone-@version@\Documentation"/> 
     105        <!-- figure out the start menu path --> 
     106        <getfreepath path="${win32.personal.programs_menu}\Greenstone-@version@" property="startmenu.path"/> 
     107         
     108        <mkdir dir="${startmenu.path}\Documentation"/> 
    105109         
    106110        <shortcut 
    107             file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone2 Server.lnk" 
     111            file="${startmenu.path}\Greenstone2 Server.lnk" 
    108112            execute="${installDir}\server.exe" 
    109113            workingDirectory="${installDir}" 
     
    112116 
    113117        <shortcut 
    114             file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Librarian Interface (GLI).lnk" 
     118            file="${startmenu.path}\Greenstone Librarian Interface (GLI).lnk" 
    115119            execute="${installDir}\gli\gli.bat" 
    116120            workingDirectory="${installDir}\gli" 
     
    119123             
    120124        <shortcut 
    121             file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Editor for Metadata Sets (GEMS).lnk" 
     125            file="${startmenu.path}\Greenstone Editor for Metadata Sets (GEMS).lnk" 
    122126            execute="${installDir}\gli\gems4gs3.bat" 
    123127            workingDirectory="${installDir}\gli" 
     
    126130         
    127131        <shortcut 
    128             file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEen.lnk" 
     132            file="${startmenu.path}\Documentation\READMEen.lnk" 
    129133            execute="${installDir}\READMEen.txt" /> 
    130134        <shortcut 
    131             file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEes.lnk" 
     135            file="${startmenu.path}\Documentation\READMEes.lnk" 
    132136            execute="${installDir}\READMEes.txt" /> 
    133137        <shortcut 
    134             file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEar.lnk" 
     138            file="${startmenu.path}\Documentation\READMEar.lnk" 
    135139            execute="${installDir}\READMEar.txt" /> 
    136140        <shortcut 
    137             file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEfr.lnk" 
     141            file="${startmenu.path}\Documentation\READMEfr.lnk" 
    138142            execute="${installDir}\READMEfr.txt" /> 
    139143        <shortcut 
    140             file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEru.lnk" 
     144            file="${startmenu.path}\Documentation\READMEru.lnk" 
    141145            execute="${installDir}\READMEru.txt" /> 
    142146    </target>