577
edits
Changes
Keepass
,If 2.16 and 2.17 work the same , and are such minor variations in app version, we don't need to keep both around + fix + tidyup
=Version 2.17=
Install Type: InnoSetup
http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html
==WPKG Package==
<source lang="xml">
<packages>
<package id="keepass"
name="KeePass 2"
revision="00217.0"
reboot="false"
<check type="uninstall" condition="exists" path="KeePass Password Safe 2.17" />
<install cmd='"%SOFTWARE%\keepass\KeePass-2.17-Setup.exe" /sp- /silent /norestart' />
<upgrade cmd='%COMSPEC% /c if exist "%PROGRAMFILES%\KeePass Password Safe 2\KeePass.exe" --exit-all' ><exit code='any' /></upgrade>
<upgrade cmd='%systemroot%\system32\taskkill /im KeePass.exe' ><exit code='any' /></upgrade>
<upgrade cmd='%systemroot%\system32\taskkill /f /im KeePass.exe' ><exit code='any' /></upgrade>
<upgrade cmd='"%SOFTWARE%\keepass\KeePass-2.17-Setup.exe" /sp- /silent /norestart' />
<remove cmd='%COMSPEC% /c if exist "%PROGRAMFILES%\KeePass Password Safe 2\unins000.exe" "%PROGRAMFILES%\KeePass Password Safe 2\unins000.exe" /sp- /silent /norestart' />
</package>
name="Setup KeePass Config and install plugins"
revision="%version%"
reboot="false" >
<variable name="version" value="2" />
<depends package-id="keepass" />
<check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\SetupKeePassConfig.xml" />
<install cmd='%systemroot%\system32\xcopy /E /y /q "%SOFTWARE%\keepass\plugins\*.*" "%ProgramFiles%\KeePass Password Safe 2"' />
<install cmd='%systemroot%\system32\reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\SetupKeePassConfig.xml" /v "Version" /d "%version%" /t REG_SZ /f'/>
<install cmd='%systemroot%\system32\reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\SetupKeePassConfig.xml" /v "StubPath" /d "cmd /c %SOFTWARE%\KeePass\Config\CurUsrInstall.bat" /f'/>
</source>
=Version 1.20=