Difference between revisions of "GanttProject"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(WPKG Package: small amelioration : VERSION variable)
(WPKG Package)
 
Line 17: Line 17:
  
 
<check type="uninstall" condition="exists" path="GanttProject" />
 
<check type="uninstall" condition="exists" path="GanttProject" />
<variable name="VERSION" value="2.6.1-r1499" />
+
        <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 -->
 
<!-- 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" />
 
+
<!-- include /D= to make the install directory the same name for all versions, easier for upgrades and deleting -->
<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.  
 
         <!-- 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.  -->
+
           Here we use CACLS to adjust permissions for all local users.  -->
        <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 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 ' />
  
<upgrade cmd='%SOFTWARE%\ganttproject\ganttproject-%VERSION%.exe /S' />
+
      <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>
<upgrade cmd='%COMSPEC% /c rmdir /q /s "%UserProfile%\Start Menu\Programs\GanttProject"' />
+
      <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>
<upgrade cmd='%COMSPEC% /c del /q /s "%UserProfile%\Desktop\GanttProject.lnk"' />
+
      <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"' />
  
<remove cmd='"%ProgramFiles%\GanttProject\uninstall.exe" /S' />
+
      <upgrade include="remove" />
<remove cmd='%COMSPEC% /c rmdir /s /q "%AllUsersProfile%\Start Menu\Programs\GanttProject"' />
+
      <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>
 
</package>
 
</packages>
 
</packages>

Latest revision as of 08:14, 31 May 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" />
        <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

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