Changes

Jump to: navigation, search

GanttProject

1,530 bytes added, 08:14, 31 May 2013
WPKG Package
<check type="uninstall" condition="exists" path="GanttProject" />
<variable name="VERSIONversion" value="2.6.1-r1499" /> <variable name="release" value="1499" />
<!-- This software requires a JRE in order to run. Please, see http://wpkg.org/Java on how to install one -->
<depends package-id="java6" />
  <install cmd='%SOFTWARE%\ganttproject\ganttproject!-%VERSION%.exe - include /S' /> <D= to make the install cmd='%COMSPEC% /c move /y "%UserProfile%\Start Menu\Programs\GanttProject" "%AllUsersProfile%\Start Menu\Programs"' /directory the same name for all versions, easier for upgrades and deleting -->
<!-- Permissions on the GanttProject start menu folder will now be such that only administrators can access the shortcuts.
Here we use xcacls.vbs (http://support.microsoft.com/kb/825751) CACLS to adjust permissionsfor all local users. --> <install os="windows.+5\.\d{1}\.\d{4}" architecture="x86" cmd='cscript%SOFTWARE%\ganttproject\ganttproject-%version%-r%release%.exe /S /NCRC /D=c:\program files\ganttproject' /> <install os="windows.+6\.\d{1}\.\d{4}" architecture="x64" cmd='%WPKGROOTSOFTWARE%\toolsganttproject\xcaclsganttproject-%version%-r%release%.vbs exe /S /NCRC /D=c:\program files (x86)\ganttproject' /> <install os="windows.+5\.\d{1}\.\d{4}" architecture="x86" cmd='cmd /c move /y "%ALLUSERSPROFILEUserProfile%\Start Menu\Programs\GanttProject" /q /f /e /g "YOURDOMAINNAME%AllUsersProfile%\DOMAIN USERSStart Menu\Programs":X' /> <install os="windows.+5\.\d{1}\.\d{4}" architecture="x86" cmd='%COMSPEC% cmd /c del /q /s CACLS "%UserProfileAllUsersProfile%\DesktopStart Menu\Programs\GanttProject.lnk"/t /e /g Users:f ' />
<upgrade install os="windows.+5\.\d{1}\.\d{4}" architecture="x86" cmd='%SOFTWARECOMSPEC% /c move /y "%UserProfile%\ganttprojectDesktop\ganttproject-GanttProject.lnk" "%VERSIONAllUsersProfile%.exe /S\Desktop" ' ><exit code='any' /></install> <upgrade install os="windows.+6\.\d{1}\.\d{4}" architecture="x64" cmd='%COMSPECcomspec% /c rmdir move /q /s y "%UserProfile%\Start Menu\ProgramsDesktop\GanttProject.lnk""c:\users\public\Desktop"' ><exit code='any' /></install> <upgrade install cmd='%COMSPEC% /c del assoc .mpp=GanttProject.MPP' /q > <install os="windows.+5\.\d{1}\.\d{4}" architecture="x86" cmd='%COMSPEC% /s c ftype GanttProject.MPP="%UserProfileProgramFiles%\DesktopGanttProject\ganttproject.exe" "%1"' /> <install os="windows.+6\.\d{1}\.\d{4}" architecture="x64" cmd='%COMSPEC% /c ftype GanttProject.lnkMPP="%ProgramFiles(x86)%\GanttProject\ganttproject.exe" "%1"' />
<upgrade include="remove " /> <upgrade include="install" /> <remove os="windows.+5\.\d{1}\.\d{4}" architecture="x86" cmd='"%ProgramFiles%\GanttProject\uninstall.exe" /S' /> <remove os="windows.+5\.\d{1}\.\d{4}" architecture="x86" cmd='%COMSPEC% cmd /c rmdir /s /q "%AllUsersProfile%\Start Menu\Programs\GanttProject"' /> <remove os="windows.+5\.\d{1}\.\d{4}" architecture="x86" cmd='cmd /c del /y "%AllUsersProfile%\Desktop\GanttProject.lnk" ' ><exit code='any' /></remove> <remove os="windows.+6\.\d{1}\.\d{4}" architecture="x64" cmd='"%ProgramFiles(x86)%\GanttProject\uninstall.exe" /S' /> <remove os="windows.+6\.\d{1}\.\d{4}" architecture="x64" cmd='cmd /c del /y "c:\users\public\Desktop\GanttProject.lnk" ' ><exit code='any' /></remove>
</package>
</packages>
76
edits

Navigation menu