Difference between revisions of "GanttProject"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Added code for .mpp file association & put some standard headings in page)
(Fix permissions on start menu shortcuts.)
Line 23: Line 23:
 
<install cmd='%SOFTWARE%\ganttproject\ganttproject-2.0.9.exe /S' />
 
<install cmd='%SOFTWARE%\ganttproject\ganttproject-2.0.9.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.
 +
          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"' />
 
<install cmd='%COMSPEC% /c del /q /s "%UserProfile%\Desktop\GanttProject.lnk"' />
  

Revision as of 04:34, 26 November 2010

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="200805221"
	priority="0">

	<check type="uninstall" condition="exists" path="GanttProject" />

	<!-- 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-2.0.9.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-2.0.9.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