This shows you the differences between two versions of the page.
userspace:xmind [2012/12/12 15:55] bhubal created |
userspace:xmind [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== XMind 3.2.1 ====== | ||
- | 2012-12-12\\ | ||
- | Script by uib gmbh \\ | ||
- | Comments and improvements welcome \\ | ||
- | Tested with opsi 4.0.2\\ | ||
- | |||
- | |||
- | type: localboot\\ | ||
- | id: xmind\\ | ||
- | name: xmind\\ | ||
- | description: | ||
- | version: 3.2.1\\ | ||
- | |||
- | Requires javavm. So make a dependency.\\ | ||
- | |||
- | Full package: http:// | ||
- | |||
- | ==== 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:// | ||
- | |||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | DefVar $LogDir$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $MinimumSpace$ | ||
- | DefVar $InstallDir$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $Install_Prog$ | ||
- | DefVar $Install_Cmd$ | ||
- | DefVar $Version$ | ||
- | DefVar $Executable$ | ||
- | DefVar $UninstallProgram$ | ||
- | DefVar $appdata$ | ||
- | |||
- | Set $LogDir$ = " | ||
- | |||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | Set $ProductId$ | ||
- | Set $MinimumSpace$ | ||
- | ; the path were we find the product after the installation | ||
- | Set $InstallDir$ | ||
- | Set $Install_Prog$ = " | ||
- | Set $Version$ = " | ||
- | Set $Executable$ = $InstallDir$ + " | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | if not(HasMinimumSpace (" | ||
- | LogError "Not enough space on %SystemDrive%, | ||
- | isFatalError | ||
- | ; Stop process and set installation status to failed | ||
- | else | ||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | if FileExists($InstallDir$) | ||
- | comment "Start uninstall sub section" | ||
- | Sub " | ||
- | endif | ||
- | |||
- | Message " | ||
- | |||
- | comment "Start setup program" | ||
- | Winbatch_install | ||
- | Sub_check_exitcode | ||
- | sub_Checkxmind | ||
- | |||
- | set $appdata$ = " | ||
- | comment "' | ||
- | Files_installprefs_profiles / | ||
- | |||
- | comment " | ||
- | LinkFolder_install | ||
- | |||
- | comment "use xmind for freemind and mindmanager files ..." | ||
- | Registry_install /32bit | ||
- | endif | ||
- | |||
- | [sub_Checkxmind] | ||
- | comment "Check if " | ||
- | if FileExists($InstallDir$) | ||
- | comment " | ||
- | else | ||
- | comment " | ||
- | LogError "Did not find the InstallDir " | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | [Winbatch_install] | ||
- | " | ||
- | |||
- | [Files_installprefs_profiles] | ||
- | ; This third line copies the file to the Commons\ in each user's profile directory, which is used when an xmind file is clicked | ||
- | copy " | ||
- | copy " | ||
- | del " | ||
- | |||
- | [LinkFolder_install] | ||
- | set_basefolder common_desktopdirectory | ||
- | set_subfolder "" | ||
- | set_link | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | icon_index: | ||
- | end_link | ||
- | |||
- | set_basefolder common_programs | ||
- | set_subfolder " | ||
- | set_link | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | icon_index: | ||
- | end_link | ||
- | |||
- | [Registry_install] | ||
- | openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mm] | ||
- | set "" | ||
- | openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mmap] | ||
- | set "" | ||
- | set " | ||
- | openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mmapfile] | ||
- | set "" | ||
- | openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mmapfile\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mmapfile\Shell\Open\Command] | ||
- | set "" | ||
- | openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mmfile] | ||
- | set "" | ||
- | openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mmfile\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mmfile\Shell\Open\Command] | ||
- | set "" | ||
- | |||
- | |||
- | [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 " | ||
- | Exitwindows /Reboot | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 3010" | ||
- | comment " | ||
- | Exitwindows /Reboot | ||
- | else | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | |||
- | </ | ||
- | |||
- | ==== setup.ins ==== | ||
- | |||
- | <code winst> | ||
- | |||
- | </ | ||
- | |||
- | ==== setup.ins ==== | ||
- | |||
- | <code winst> | ||
- | |||
- | </ | ||
- | |||