Difference between revisions of "Keepass"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(add 2.17 version support)
(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)
Line 2: Line 2:
  
 
=Version 2.17=
 
=Version 2.17=
 +
 +
Install Type: InnoSetup
 +
 +
http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html
 +
 
==WPKG Package==
 
==WPKG Package==
 
<source lang="xml">
 
<source lang="xml">
 
<packages>
 
<packages>
 
<package id="keepass"  
 
<package id="keepass"  
name="KeePass 2"  
+
name="KeePass"  
 
revision="00217.0"  
 
revision="00217.0"  
 
reboot="false"  
 
reboot="false"  
Line 14: Line 19:
  
 
<check type="uninstall" condition="exists" path="KeePass Password Safe 2.17" />
 
<check type="uninstall" condition="exists" path="KeePass Password Safe 2.17" />
 +
 
<install cmd='"%SOFTWARE%\keepass\KeePass-2.17-Setup.exe" /sp- /silent /norestart' />
 
<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='%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    /im KeePass.exe' ><exit code='any' /></upgrade>
 +
 
                 <upgrade cmd='%systemroot%\system32\taskkill /f /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' />
 
<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' />
+
<remove  cmd='%COMSPEC% /c if exist "%PROGRAMFILES%\KeePass Password Safe 2\unins000.exe" /sp- /silent /norestart' />
 
</package>
 
</package>
  
Line 27: Line 36:
 
name="Setup KeePass Config and install plugins"
 
name="Setup KeePass Config and install plugins"
 
revision="%version%"
 
revision="%version%"
reboot="false"
+
reboot="false">
>
+
  
 
        <variable name="version" value="2" />
 
        <variable name="version" value="2" />
  
 
        <depends  package-id="keepass" />
 
        <depends  package-id="keepass" />
 +
 
<check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\SetupKeePassConfig.xml" />
 
<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\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 "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'/>
 
<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'/>
  
Line 46: Line 57:
 
</source>
 
</source>
  
 
=Version 2.16=
 
==WPKG Package==
 
<source lang="xml">
 
<?xml version="1.0" encoding="UTF-8"?>
 
 
<!--
 
Download Location: http://sourceforge.net/projects/keepass/files/
 
Install Type: InnoSetup
 
http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html
 
-->
 
 
<packages>
 
 
<package id="keepass2"
 
name="KeePass2"
 
revision="00216"
 
reboot="false"
 
priority="1">
 
<check type="uninstall" condition="exists" path="KeePass Password Safe 2.16" />
 
<install cmd='"%SOFTWARE%\keepass\KeePass-2.16-Setup.exe" /sp- /silent /norestart' />
 
                <upgrade cmd='"%PROGRAMFILES%\KeePass Password Safe 2\KeePass.exe" --exit-all' ><exit code='any' /></upgrade>
 
<upgrade cmd='"%SOFTWARE%\keepass\KeePass-2.16-Setup.exe" /sp- /silent /norestart' />
 
<remove cmd='"%PROGRAMFILES%\KeePass Password Safe 2\unins000.exe" /sp- /silent /norestart' />
 
</package>
 
 
</packages>
 
</source>
 
  
 
=Version 1.20=
 
=Version 1.20=

Revision as of 21:11, 22 December 2011

KeePass is a free open source password manager, which helps you to manage your passwords in a secure way. You can put all your passwords in one database, which is locked with one master key or a key file. So you only have to remember one single master password or select the key file to unlock the whole database. The databases are encrypted using AES and Twofish.

Version 2.17

Install Type: InnoSetup

http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html

WPKG Package

<packages>
	<package id="keepass" 
		name="KeePass" 
		revision="00217.0" 
		reboot="false" 
		priority="1">

		<chain package-id="setupkeepass"/>

		<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" /sp- /silent /norestart' />
	</package>

	<package id="setupkeepass" 
		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'/>

		<remove  cmd='%systemroot%\system32\reg.exe delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\SetupKeePassConfig.xml"  /va /f' >
			<exit code="any"/>
 		</remove>
	</package>
</packages>


Version 1.20

WPKG Package

<?xml version="1.0" encoding="UTF-8"?>

<!-- 
Download Location: http://sourceforge.net/projects/keepass/files/
Install Type: InnoSetup
http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html
-->

<packages>

	<package id="keepass" 
	name="KeePass" 
	revision="00120" 
	reboot="false" 
	priority="1">
		<check type="uninstall" condition="exists" path="KeePass Password Safe 1.20" />
		<install cmd='"%SOFTWARE%\keepass\KeePass-1.20-Setup.exe" /sp- /silent /norestart' />
                <upgrade cmd='"%PROGRAMFILES%\KeePass Password Safe\KeePass.exe" --exit-all' ><exit code='any' /></upgrade>
		<upgrade cmd='"%SOFTWARE%\keepass\KeePass-1.20-Setup.exe" /sp- /silent /norestart' />
		<remove cmd='"%PROGRAMFILES%\KeePass Password Safe\unins000.exe" /sp- /silent /norestart' />
	</package>
	
</packages>

External Links