This shows you the differences between two versions of the page.
userspace:mozilla_firefox_esr [2012/11/17 20:14] islam |
userspace:mozilla_firefox_esr [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | * **[root]** | ||
- | * Ordner **" | ||
- | * **" | ||
- | * **Firefox.png** (160x160 pixel Firefox Logo) | ||
- | * **delsub.ins** | ||
- | <file AutoIT> | ||
- | ; 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 $MsiId32$ = ' | ||
- | Set $UninstallProgram32$ = $InstallDir32$ + " | ||
- | |||
- | ;Set $MsiId64$ = ' | ||
- | Set $UninstallProgram64$ = $InstallDir64$ + " | ||
- | |||
- | if (($INST_SystemType$ = "x86 System" | ||
- | Message " | ||
- | |||
- | if FileExists($UninstallProgram32$) | ||
- | comment " | ||
- | Killtask " | ||
- | Winbatch_uninstall_32 | ||
- | sub_check_exitcode | ||
- | endif | ||
- | |||
- | if not (GetRegistryStringValue32(" | ||
- | comment "MSI id " + $MsiId32$ + " found in registry, starting msiexec to uninstall" | ||
- | Killtask " | ||
- | Winbatch_uninstall_msi_32 | ||
- | sub_check_exitcode | ||
- | endif | ||
- | |||
- | comment " | ||
- | Files_uninstall_32 /32Bit | ||
- | comment " | ||
- | Registry_uninstall /32Bit | ||
- | endif | ||
- | |||
- | if ($INST_SystemType$ = "64 Bit System" | ||
- | Message " | ||
- | |||
- | if FileExists($UninstallProgram64$) | ||
- | comment " | ||
- | Killtask " | ||
- | Winbatch_uninstall_64 | ||
- | sub_check_exitcode | ||
- | endif | ||
- | |||
- | if not (GetRegistryStringValue64(" | ||
- | comment "MSI id " + $MsiId64$ + " found in registry, starting msiexec to uninstall" | ||
- | Killtask " | ||
- | Winbatch_uninstall_msi_64 | ||
- | sub_check_exitcode | ||
- | endif | ||
- | |||
- | comment " | ||
- | Files_uninstall_64 /64Bit | ||
- | comment " | ||
- | Registry_uninstall /64Bit | ||
- | endif | ||
- | |||
- | comment " | ||
- | LinkFolder_uninstall | ||
- | |||
- | [Winbatch_uninstall_32] | ||
- | |||
- | ;" | ||
- | " | ||
- | ;Category, Link in Category, Folder in Startmenu | ||
- | ;" | ||
- | |||
- | ; Choose one of the following examples as basis for program uninstall | ||
- | ; | ||
- | ; === Nullsoft Scriptable Install System ================================================================ | ||
- | ; " | ||
- | ; | ||
- | ; === Inno Setup ======================================================================================== | ||
- | ; " | ||
- | |||
- | |||
- | [Winbatch_uninstall_msi_32] | ||
- | msiexec /x $MsiId32$ /qb! REBOOT=ReallySuppress | ||
- | |||
- | [Files_uninstall_32] | ||
- | ; Example for recursively deleting the installation directory (don't forget the trailing backslash): | ||
- | ; | ||
- | ; delete -sf " | ||
- | |||
- | [Winbatch_uninstall_64] | ||
- | |||
- | ;" | ||
- | " | ||
- | ;Category, Link in Category, Folder in Startmenu | ||
- | ;" | ||
- | |||
- | ; Choose one of the following examples as basis for program uninstall | ||
- | ; | ||
- | ; === Nullsoft Scriptable Install System ================================================================ | ||
- | ; " | ||
- | ; | ||
- | ; === Inno Setup ======================================================================================== | ||
- | ; " | ||
- | |||
- | |||
- | [Winbatch_uninstall_msi_64] | ||
- | msiexec /x $MsiId64$ /qb! REBOOT=ReallySuppress | ||
- | |||
- | [Files_uninstall_64] | ||
- | ; Example for recursively deleting the installation directory (don't forget the trailing backslash): | ||
- | ; | ||
- | ; delete -sf " | ||
- | |||
- | [Registry_uninstall] | ||
- | ; Example of deleting a registry key: | ||
- | ; | ||
- | ; deletekey [HKEY_LOCAL_MACHINE\Software\$ProductId$] | ||
- | |||
- | [LinkFolder_uninstall] | ||
- | ; Example of deleting a folder from AllUsers startmenu: | ||
- | ; | ||
- | ; set_basefolder common_programs | ||
- | ; delete_subfolder $ProductId$ | ||
- | ; | ||
- | ; Example of deleting a shortcut from AllUsers desktop: | ||
- | ; | ||
- | ; set_basefolder common_desktopdirectory | ||
- | ; set_subfolder "" | ||
- | ; delete_element $ProductId$ | ||
- | |||
- | set_basefolder common_programs | ||
- | set_subfolder " | ||
- | delete_element " | ||
- | delete_subfolder " | ||
- | |||
- | [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 | ||
- | |||
- | |||
- | </ | ||
- | |||
- | * **setup.ins** | ||
- | < | ||
- | test | ||
- | </ | ||
- | * **uninstall.ins** | ||
- | < | ||
- | test | ||
- | </ |