Thursday, January 5, 2017

KeePass 2 silent uninstall

silent-uninstall.cmd
@echo off
set sw=HKLM\SOFTWARE
set u=Microsoft\Windows\CurrentVersion\Uninstall
set k=KeePassPasswordSafe2_is1
if not "%ProgramFiles(x86)%"=="" set x=Wow6432Node\
for /f delims^=^"^ tokens^=2 %%a in ('^
reg query "%sw%\%x%%u%\%k%" /v UninstallString ^|
find "UninstallString"') do (
start /wait "" "%%a" /SILENT
)

Related:
http://sourceforge.net/projects/keepass/files/KeePass%202.x/

0 comments:

Post a Comment

Blog Archive