This shows you the differences between two versions of the page.
userspace:ganttproject_2.0.10 [2012/09/19 13:25] bhubal created |
userspace:ganttproject_2.0.10 [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== GanttProject 2.0.10 ====== | ||
- | 2010-05-03\\ | ||
- | Script by uib gmbh \\ | ||
- | Comments and improvements welcome \\ | ||
- | id: ganttproject\\ | ||
- | name: GanttProject\\ | ||
- | description: | ||
- | version: 2.0.10\\ | ||
- | |||
- | javavm is required, so make a dependency\\ | ||
- | |||
- | Full package: https:// | ||
- | |||
- | |||
- | |||
- | ==== setup.ins ==== | ||
- | |||
- | <code winst> | ||
- | |||
- | ; Copyright (c) uib gmbh (www.uib.de) | ||
- | ; This sourcecode is owned by uib | ||
- | ; and published under the Terms of the General Public License. | ||
- | ; credits: http:// | ||
- | |||
- | [Initial] | ||
- | requiredWinstVersion >= " | ||
- | LogLevel=2 | ||
- | ; Log Errors in Logfile but don't abort: | ||
- | ExitOnError=false | ||
- | ; Show syntax errors in the script: | ||
- | ScriptErrorMessages=on | ||
- | ; Dont trace step by step through the script: | ||
- | TraceMode=off | ||
- | ; Let started programs run in front of the winst window | ||
- | StayOnTop=false | ||
- | |||
- | [Aktionen] | ||
- | DefVar $TEMP$ | ||
- | Set $TEMP$ = EnvVar(" | ||
- | DefVar $LogDir$ | ||
- | Set $LogDir$ = " | ||
- | DefVar $ProductId$ | ||
- | DefVar $MinimumSpace$ | ||
- | DefVar $NewExe$ | ||
- | DefVar $InstallDir$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $LicenseRequired$ | ||
- | DefVar $LicenseKey$ | ||
- | DefVar $LicensePool$ | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | Set $ProductId$ | ||
- | Set $MinimumSpace$ | ||
- | Set $InstallDir$ | ||
- | Set $NewExe$ | ||
- | Set $LicenseRequired$ = " | ||
- | Set $LicensePool$ | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | if not(HasMinimumSpace (" | ||
- | LogError "Not enough space on %SystemDrive%, | ||
- | isFatalError | ||
- | ; Stop process and set installation status to failed | ||
- | else | ||
- | comment "Show product picture" | ||
- | ShowBitmap /3 " | ||
- | |||
- | if FileExists(" | ||
- | comment "Start uninstall sub section" | ||
- | Sub " | ||
- | endif | ||
- | |||
- | Message " | ||
- | |||
- | comment "Start setup program" | ||
- | DefVar $MinorOS$ | ||
- | set $MinorOS$ = GetNTVersion | ||
- | if ( $MinorOS$ = " | ||
- | ; cannot find process " | ||
- | ; so here's a 15 secs timeout, which should be enough | ||
- | Message " | ||
- | Winbatch_install / | ||
- | else | ||
- | Winbatch_install / | ||
- | endif | ||
- | Sub_check_exitcode | ||
- | |||
- | |||
- | comment " | ||
- | LinkFolder_install | ||
- | |||
- | endif | ||
- | |||
- | [Winbatch_install] | ||
- | %scriptpath%\ganttproject-2.0.10.exe /S | ||
- | |||
- | [LinkFolder_install] | ||
- | set_basefolder common_desktopdirectory | ||
- | set_subfolder "" | ||
- | |||
- | set_link | ||
- | name: GanttProject | ||
- | target: $NewExe$ | ||
- | parameters: | ||
- | working_dir: | ||
- | icon_file: | ||
- | icon_index: | ||
- | end_link | ||
- | |||
- | [Sub_check_exitcode] | ||
- | comment "Test for installation success via exit code" | ||
- | set $ExitCode$ = getLastExitCode | ||
- | ; informations to exit codes see | ||
- | ; http:// | ||
- | ; http:// | ||
- | if ($ExitCode$ = " | ||
- | comment "Looks good: setup program gives exitcode zero" | ||
- | else | ||
- | comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ | ||
- | if ($ExitCode$ = " | ||
- | comment " | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 1641" | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 3010" | ||
- | comment " | ||
- | else | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | </ | ||
- | |||
- | ==== delsub.ins ==== | ||
- | |||
- | <code winst> | ||
- | ; Copyright (c) uib gmbh (www.uib.de) | ||
- | ; This sourcecode is owned by uib gmbh | ||
- | ; and published under the Terms of the General Public License. | ||
- | ; credits: http:// | ||
- | |||
- | |||
- | Message " | ||
- | |||
- | if FileExists($InstallDir$ + " | ||
- | comment " | ||
- | Winbatch_uninstall / | ||
- | sub_check_exitcode | ||
- | |||
- | DefVar $done$ | ||
- | Set $done$ = " | ||
- | DefStringList $for$ | ||
- | Set $for$ = createStringList(" | ||
- | for %x% in $for$ do Sub_check_done | ||
- | if ($done$ = " | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | |||
- | comment " | ||
- | LinkFolder_uninstall | ||
- | |||
- | [Sub_check_done] | ||
- | if ($done$ = " | ||
- | if FileExists($InstallDir$ + " | ||
- | comment " | ||
- | sleepSeconds 5 | ||
- | else | ||
- | comment " | ||
- | Set $done$ = " | ||
- | endif | ||
- | endif | ||
- | |||
- | [Winbatch_uninstall] | ||
- | " | ||
- | |||
- | [LinkFolder_uninstall] | ||
- | set_basefolder common_desktopdirectory | ||
- | set_subfolder "" | ||
- | delete_element GanttProject | ||
- | |||
- | [Sub_check_exitcode] | ||
- | comment "Test for installation success via exit code" | ||
- | set $ExitCode$ = getLastExitCode | ||
- | ; informations to exit codes see | ||
- | ; http:// | ||
- | ; http:// | ||
- | if ($ExitCode$ = " | ||
- | comment "Looks good: setup program gives exitcode zero" | ||
- | else | ||
- | comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ | ||
- | if ($ExitCode$ = " | ||
- | comment " | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 1641" | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 3010" | ||
- | comment " | ||
- | else | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | |||
- | |||
- | |||
- | |||
- | </ | ||
- | |||
- | ==== uninstall.ins ==== | ||
- | |||
- | <code winst> | ||
- | ; Copyright (c) uib gmbh (www.uib.de) | ||
- | ; This sourcecode is owned by uib gmbh | ||
- | ; and published under the Terms of the General Public License. | ||
- | ; credits: http:// | ||
- | |||
- | [Initial] | ||
- | requiredWinstVersion >= " | ||
- | LogLevel=2 | ||
- | ; Log Errors in Logfile but don't abort: | ||
- | ExitOnError=false | ||
- | ; Show syntax errors in the script: | ||
- | ScriptErrorMessages=on | ||
- | ; Dont trace step by step through the script: | ||
- | TraceMode=off | ||
- | ; Let started programs run in front of the winst window | ||
- | StayOnTop=false | ||
- | |||
- | [Aktionen] | ||
- | DefVar $TEMP$ | ||
- | Set $TEMP$ = EnvVar(" | ||
- | DefVar $LogDir$ | ||
- | Set $LogDir$ = " | ||
- | DefVar $ExitCode$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $InstallDir$ | ||
- | DefVar $LicenseRequired$ | ||
- | DefVar $LicensePool$ | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | Set $ProductId$ | ||
- | Set $InstallDir$ | ||
- | Set $LicenseRequired$ = " | ||
- | Set $LicensePool$ | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | |||
- | comment "Show product picture" | ||
- | ShowBitmap /3 " | ||
- | |||
- | Message " | ||
- | |||
- | if FileExists(" | ||
- | comment "Start uninstall sub section" | ||
- | Sub " | ||
- | endif | ||
- | |||
- | |||
- | |||
- | |||
- | </ |