GanttProject

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

GanttProject GanttProject is an open source cross-platform desktop tool for project scheduling and management. It runs on Windows, Linux and MacOSX and is an alternative to MS Project.

This is silent installer and deinstaller for GanttProject

Version 2.x[edit]

GanttProject's installer places the icons in "%UserProfile%". This corrects that.

WPKG Package[edit]

<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
	id="ganttproject"
	name="GanttProject"
	revision="%VERSION%"
	priority="0">

	<check type="uninstall" condition="exists" path="GanttProject" />
        <variable name="version" value="2.6.1" />
        <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" />
	<!-- include /D= to make the install 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 CACLS to adjust permissions for all local users.   -->

      <install os="windows.+5\.\d{1}\.\d{4}" architecture="x86" cmd='%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='%SOFTWARE%\ganttproject\ganttproject-%version%-r%release%.exe /S /NCRC /D=c:\program files (x86)\ganttproject' />
      <install os="windows.+5\.\d{1}\.\d{4}" architecture="x86" cmd='cmd /c move /y "%UserProfile%\Start Menu\Programs\GanttProject" "%AllUsersProfile%\Start Menu\Programs"' />
      <install os="windows.+5\.\d{1}\.\d{4}" architecture="x86" cmd='cmd /c CACLS "%AllUsersProfile%\Start Menu\Programs\GanttProject" /t /e /g Users:f ' />

      <install os="windows.+5\.\d{1}\.\d{4}" architecture="x86" cmd='%COMSPEC% /c move /y "%UserProfile%\Desktop\GanttProject.lnk" "%AllUsersProfile%\Desktop" ' ><exit code='any' /></install>
      <install os="windows.+6\.\d{1}\.\d{4}" architecture="x64" cmd='%comspec% /c move /y "%UserProfile%\Desktop\GanttProject.lnk" "c:\users\public\Desktop"' ><exit code='any' /></install>
      <install cmd='%COMSPEC% /c assoc .mpp=GanttProject.MPP' />
      <install os="windows.+5\.\d{1}\.\d{4}" architecture="x86" cmd='%COMSPEC% /c ftype GanttProject.MPP="%ProgramFiles%\GanttProject\ganttproject.exe" "%1"' />
      <install os="windows.+6\.\d{1}\.\d{4}" architecture="x64" cmd='%COMSPEC% /c ftype GanttProject.MPP="%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='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>

Optional Extras[edit]

If you want you can also add the following lines to associate Microsoft Project files with GanttProject.

<install cmd='%COMSPEC% /c assoc .mpp=GanttProject.MPP' />
<install cmd='%COMSPEC% /c ftype GanttProject.MPP="%ProgramFiles%\GanttProject\ganttproject.exe" "%1"' />

External Links[edit]