Difference between revisions of "GanttProject"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (Latest version 2.0.10)
(WPKG Package: small amelioration : VERSION variable)
Line 13: Line 13:
 
id="ganttproject"
 
id="ganttproject"
 
name="GanttProject"
 
name="GanttProject"
revision="1"
+
revision="%VERSION%"
 
priority="0">
 
priority="0">
  
 
<check type="uninstall" condition="exists" path="GanttProject" />
 
<check type="uninstall" condition="exists" path="GanttProject" />
 +
<variable name="VERSION" value="2.6.1-r1499" />
  
 
<!-- This software requires a JRE in order to run. Please, see http://wpkg.org/Java on how to install one -->
 
<!-- This software requires a JRE in order to run. Please, see http://wpkg.org/Java on how to install one -->
 
<depends package-id="java6" />
 
<depends package-id="java6" />
  
<install cmd='%SOFTWARE%\ganttproject\ganttproject-2.0.10.exe /S' />
+
<install cmd='%SOFTWARE%\ganttproject\ganttproject-%VERSION%.exe /S' />
 
<install cmd='%COMSPEC% /c move /y "%UserProfile%\Start Menu\Programs\GanttProject" "%AllUsersProfile%\Start Menu\Programs"' />
 
<install cmd='%COMSPEC% /c move /y "%UserProfile%\Start Menu\Programs\GanttProject" "%AllUsersProfile%\Start Menu\Programs"' />
 
         <!-- Permissions on the GanttProject start menu folder will now be such that only administrators can access the shortcuts.  
 
         <!-- Permissions on the GanttProject start menu folder will now be such that only administrators can access the shortcuts.  
Line 28: Line 29:
 
<install cmd='%COMSPEC% /c del /q /s "%UserProfile%\Desktop\GanttProject.lnk"' />
 
<install cmd='%COMSPEC% /c del /q /s "%UserProfile%\Desktop\GanttProject.lnk"' />
  
<upgrade cmd='%SOFTWARE%\ganttproject\ganttproject-2.0.10.exe /S' />
+
<upgrade cmd='%SOFTWARE%\ganttproject\ganttproject-%VERSION%.exe /S' />
 
<upgrade cmd='%COMSPEC% /c rmdir /q /s "%UserProfile%\Start Menu\Programs\GanttProject"' />
 
<upgrade cmd='%COMSPEC% /c rmdir /q /s "%UserProfile%\Start Menu\Programs\GanttProject"' />
 
<upgrade cmd='%COMSPEC% /c del /q /s "%UserProfile%\Desktop\GanttProject.lnk"' />
 
<upgrade cmd='%COMSPEC% /c del /q /s "%UserProfile%\Desktop\GanttProject.lnk"' />
Line 43: Line 44:
 
<install cmd='%COMSPEC% /c ftype GanttProject.MPP="%ProgramFiles%\GanttProject\ganttproject.exe" "%1"' />
 
<install cmd='%COMSPEC% /c ftype GanttProject.MPP="%ProgramFiles%\GanttProject\ganttproject.exe" "%1"' />
 
</source>
 
</source>
 +
 
=External Links=
 
=External Links=
 
*[http://ganttproject.biz/ GanttProject Website]
 
*[http://ganttproject.biz/ GanttProject Website]
  
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]

Revision as of 08:56, 21 January 2013

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

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

WPKG Package

<?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-r1499" />

	<!-- 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 /S' />
	<install cmd='%COMSPEC% /c move /y "%UserProfile%\Start Menu\Programs\GanttProject" "%AllUsersProfile%\Start Menu\Programs"' />
        <!-- 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) to adjust permissions.   -->
        <install cmd='cscript.exe %WPKGROOT%\tools\xcacls.vbs "%ALLUSERSPROFILE%\Start Menu\Programs\GanttProject" /q /f /e /g "YOURDOMAINNAME\DOMAIN USERS":X' />
	<install cmd='%COMSPEC% /c del /q /s "%UserProfile%\Desktop\GanttProject.lnk"' />

	<upgrade cmd='%SOFTWARE%\ganttproject\ganttproject-%VERSION%.exe /S' />
	<upgrade cmd='%COMSPEC% /c rmdir /q /s "%UserProfile%\Start Menu\Programs\GanttProject"' />
	<upgrade cmd='%COMSPEC% /c del /q /s "%UserProfile%\Desktop\GanttProject.lnk"' />

	<remove cmd='"%ProgramFiles%\GanttProject\uninstall.exe" /S' />
	<remove cmd='%COMSPEC% /c rmdir /s /q "%AllUsersProfile%\Start Menu\Programs\GanttProject"' />
</package>
</packages>

Optional Extras

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