Changes

GPG4win

1,930 bytes added, 15:23, 9 January 2012
Issues
See a question about this on the GPG4Win forum at http://wald.intevation.org/forum/forum.php?thread_id=984&forum_id=21
You may want to fall back to a GNU Privacy Guard 1.4.11 binary for Windows from http://www.gnupg.org/.
 
Executing the uninstall-command via wpkg results sometimes in an error. I was able to solve this issue by using an uninstaller-script that takes care of the issue. I didn't write it myself but I can't find the webpage again, where I took it from. Please add the author of the script if you know him.
 
unattended_uninstall.cmd
@echo off
 
:: This script is an extended uninstaller script for programs which have tricky
:: uninstallers (e.g. VLC media player).
:: It is able to run an uninstaller application and then to monitor if the
:: uninstaller is erased from the system. Depending on the result (either
:: remove completes or timeout occurs) it exits with different ecit code:
:: code 0: all fine, program uninstalled
:: code 1: failed, uninstaller still exissts after timeout
 
 
:: This is required to evaluate the target of %ProgramFiles% on 64-bit systems
:: Please note that this is required only if you uninstall a 32-bit application.
set PROGRAM_FILES=%ProgramFiles%
if not "%ProgramFiles(x86)%" == "" set PROGRAM_FILES=%ProgramFiles(x86)%
 
:: Path to the uninstaller (see path definition above)
set UNINSTALLER=%ProgramFiles%\GNU\GnuPG\gpg4win-uninstall.exe
 
:: Options to be passed to the uninstaller in order to uninstall silently
set OPTIONS=/S
 
 
:: ############################################################################
:: No need to change anything below this line (usually ;-))
:: ############################################################################
echo Removing Program
 
if not exist "%UNINSTALLER%" goto good_end
start /wait "Uninstall" "%UNINSTALLER%" %OPTIONS%
REM Unfortunately the uninstaller seems to fork a child process and the parent
REM process exits immediately. So give it some time to uninstall
for /L %%C IN (1,1,30) DO (
if not exist "%UNINSTALLER%" goto good_end
ping -n 2 127.0.0.1 > NUL
)
:bad_end
exit /B 1
 
:good_end
if exist "%APP_DIR%" rmdir /s /q "%APP_DIR%"
exit /B 0
==Installer Options==
Anonymous user