userspace:xmind
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| userspace:xmind [2012/12/12 16:55] – created bhubal | userspace:xmind [2021/08/23 10:37] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 181: | Line 181: | ||
| </ | </ | ||
| - | ==== setup.ins ==== | + | ==== delsub.ins ==== |
| <code winst> | <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:// | ||
| + | |||
| + | |||
| + | Set $UninstallProgram$ = $InstallDir$ + " | ||
| + | |||
| + | Message " | ||
| + | |||
| + | if FileExists($UninstallProgram$) | ||
| + | comment " | ||
| + | Winbatch_uninstall / | ||
| + | sub_check_exitcode | ||
| + | endif | ||
| + | |||
| + | comment " | ||
| + | Files_uninstall /32Bit | ||
| + | |||
| + | comment " | ||
| + | LinkFolder_delete | ||
| + | |||
| + | comment "del file associations to freemind and mindmanager ..." | ||
| + | Registry_uninstall | ||
| + | |||
| + | [Winbatch_uninstall] | ||
| + | ; === Nullsoft Scriptable Install System ================================================================ | ||
| + | " | ||
| + | |||
| + | [Files_uninstall] | ||
| + | del -sf " | ||
| + | |||
| + | [LinkFolder_delete] | ||
| + | set_basefolder common_desktopdirectory | ||
| + | set_subfolder "" | ||
| + | delete_element $ProductId$ | ||
| + | set_basefolder common_programs | ||
| + | delete_subfolder " | ||
| + | |||
| + | [Registry_uninstall] | ||
| + | openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mmapfile\DefaultIcon] | ||
| + | DeleteVar "" | ||
| + | openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mmapfile\Shell\Open\Command] | ||
| + | DeleteVar "" | ||
| + | openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mmfile\DefaultIcon] | ||
| + | DeleteVar "" | ||
| + | openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mmfile\Shell\Open\Command] | ||
| + | DeleteVar "" | ||
| + | |||
| + | |||
| + | [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 ==== | + | ==== uninstall.ins ==== |
| <code winst> | <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:// | ||
| + | |||
| + | [Actions] | ||
| + | requiredWinstVersion >= " | ||
| + | |||
| + | DefVar $LogDir$ | ||
| + | DefVar $ExitCode$ | ||
| + | DefVar $ProductId$ | ||
| + | DefVar $InstallDir$ | ||
| + | DefVar $UninstallProgram$ | ||
| + | |||
| + | Set $LogDir$ = " | ||
| + | |||
| + | ; ---------------------------------------------------------------- | ||
| + | ; - Please edit the following values | ||
| + | ; ---------------------------------------------------------------- | ||
| + | Set $ProductId$ | ||
| + | Set $InstallDir$ | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | |||
| + | comment "Show product picture" | ||
| + | ShowBitmap " | ||
| + | |||
| + | Message " | ||
| + | |||
| + | if FileExists($InstallDir$) | ||
| + | comment "Start uninstall sub section" | ||
| + | Sub " | ||
| + | endif | ||
| </ | </ | ||
userspace/xmind.1355327754.txt.gz · Last modified: (external edit)
