Difference between revisions of "Keepass"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (Version 2.21: Updated Version 2.21 and added variable to make updates easier.)
(Version 2.23)
Line 2: Line 2:
  
 
== Headline text ==
 
== Headline text ==
=Version 2.21=
 
  
 
Install Type: InnoSetup
 
Install Type: InnoSetup
Line 8: Line 7:
 
http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html
 
http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html
  
==WPKG Package==
+
==WPKG Package - Version 2.23==
 +
<source lang="xml">
 +
<?xml version="1.0" encoding="UTF-8"?>
 +
<packages:packages xmlns:packages="http://www.wpkg.org/packages" xmlns:wpkg="http://www.wpkg.org/wpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wpkg.org/packages xsd/packages.xsd">
 +
<package
 +
id="keepass"
 +
name="KeePass"
 +
revision="%PKG_VERSION%"
 +
reboot="false"
 +
priority="1">
 +
 
 +
<variable name="PKG_VERSION"        value="2.23" />
 +
 +
<variable name="PKG_EXE"            value="KeePass-%PKG_VERSION%-Setup.exe" />
 +
<variable name="PKG_SOURCE"        value="%SOFTWARE%\KeePass" />
 +
 +
<variable name="PKG_DESTINATION"    value="%ProgramFiles%\KeePass Password Safe 2"      architecture="x86" />
 +
<variable name="PKG_DESTINATION"    value="%ProgramFiles(x86)%\KeePass Password Safe 2" architecture="x64" />
 +
 
 +
<variable name="PKG_INSTALL_SWITCH" value="/sp- /silent /norestart" />
 +
<variable name="PKG_REMOVE_SWITCH"  value="/sp- /silent /norestart" />
 +
 
 +
<check type="uninstall" condition="exists" path="KeePass Password Safe %PKG_VERSION%" />
 +
 
 +
<commands>
 +
<command type="install" cmd='%COMSPEC% /c if exist "%PKG_DESTINATION%\KeePass.exe" --exit-all' >
 +
<exit code='any' />
 +
</command>
 +
<command type="install" cmd='"%PKG_SOURCE%\%PKG_EXE%" %PKG_INSTALL_SWITCH%' />
 +
<command type="install" cmd='%COMSPEC% /c copy /y "%PKG_SOURCE%\*.lngx" "%PKG_DESTINATION%\"' />
 +
<command type="install" cmd='%COMSPEC% /c copy /y "%PKG_SOURCE%\*.plgx" "%PKG_DESTINATION%\"' />
 +
 
 +
<command type="upgrade" include="install" />
 +
 
 +
<command type="remove" cmd='"%PKG_DESTINATION%\uninstall.exe" %PKG_REMOVE_SWITCH%' />
 +
</commands>
 +
</package>
 +
</packages:packages>
 +
</source>
 +
==WPKG Package - Version 2.21==
 
<source lang="xml">
 
<source lang="xml">
 
<packages>
 
<packages>
Line 55: Line 93:
 
</source>
 
</source>
  
=Version 1.24=
+
==WPKG Package - Version 1.24==
==WPKG Package==
+
 
<source lang="xml">
 
<source lang="xml">
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>

Revision as of 23:45, 1 August 2013

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.

Headline text

Install Type: InnoSetup

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

WPKG Package - Version 2.23

<?xml version="1.0" encoding="UTF-8"?>
<packages:packages xmlns:packages="http://www.wpkg.org/packages" xmlns:wpkg="http://www.wpkg.org/wpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wpkg.org/packages xsd/packages.xsd">
	<package
		id="keepass"
		name="KeePass"
		revision="%PKG_VERSION%"
		reboot="false"
		priority="1">

		<variable name="PKG_VERSION"        value="2.23" />
		
		<variable name="PKG_EXE"            value="KeePass-%PKG_VERSION%-Setup.exe" />
		<variable name="PKG_SOURCE"         value="%SOFTWARE%\KeePass" />
		
		<variable name="PKG_DESTINATION"    value="%ProgramFiles%\KeePass Password Safe 2"      architecture="x86" />
		<variable name="PKG_DESTINATION"    value="%ProgramFiles(x86)%\KeePass Password Safe 2" architecture="x64" />

		<variable name="PKG_INSTALL_SWITCH" value="/sp- /silent /norestart" />
		<variable name="PKG_REMOVE_SWITCH"  value="/sp- /silent /norestart" />

		<check type="uninstall" condition="exists" path="KeePass Password Safe %PKG_VERSION%" />

		<commands>		
			<command type="install" cmd='%COMSPEC% /c if exist "%PKG_DESTINATION%\KeePass.exe" --exit-all' >
				<exit code='any' />
			</command>
			<command type="install" cmd='"%PKG_SOURCE%\%PKG_EXE%" %PKG_INSTALL_SWITCH%' />
			<command type="install" cmd='%COMSPEC% /c copy /y "%PKG_SOURCE%\*.lngx" "%PKG_DESTINATION%\"' />
			<command type="install" cmd='%COMSPEC% /c copy /y "%PKG_SOURCE%\*.plgx" "%PKG_DESTINATION%\"' />

			<command type="upgrade" include="install" />

			<command type="remove" cmd='"%PKG_DESTINATION%\uninstall.exe" %PKG_REMOVE_SWITCH%' />		
		</commands>
	</package>
</packages:packages>

WPKG Package - Version 2.21

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

		<chain package-id="setupkeepass"/>
                <variable name="PKG_VERSION" value="2.21" />

		<check type="uninstall" condition="exists" path="%PKG_VERSION%" />

                <install cmd='%COMSPEC% /c if exist "%PROGRAMFILES%\KeePass Password Safe 2\KeePass.exe" --exit-all' ><exit code='any' /></install> 
		<install cmd='"%SOFTWARE%\keepass\KeePass-%PKG_VERSION%-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='"%SOFTWARE%\keepass\KeePass-%PKG_VERSION%-Setup.exe" /sp- /silent /norestart' />

		<remove  cmd='"%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>

WPKG Package - Version 1.24

<?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="00124" 
	reboot="false" 
	priority="1">
		<check type="uninstall" condition="exists" path="KeePass Password Safe 1.24" />
		<install cmd='"%SOFTWARE%\keepass\KeePass-1.24-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.24-Setup.exe" /sp- /silent /norestart' />
		<remove cmd='"%PROGRAMFILES%\KeePass Password Safe\unins000.exe" /sp- /silent /norestart' />
	</package>
	
</packages>

External Links