76
edits
Changes
→WPKG Package
<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!-%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 ' />
</package>
</packages>