Difference between revisions of "Boxcryptor"
From WPKG | Open Source Software Deployment and Distribution
(Package for Boxcryptor) |
(Fixing copy/paste mistake) |
||
Line 1: | Line 1: | ||
− | + | Boxcryptor is an easy-to-use encryption software optimized for the cloud.: [https://www.boxcryptor.com www.boxcryptor.com] | |
== Installer Package == | == Installer Package == | ||
<source lang="xml"> | <source lang="xml"> | ||
− | <package id= | + | <package id="boxcryptor" name="Boxcryptor" revision="5" reboot="false" precheck-upgrade="always"> |
− | + | <chain package-id="boxcryptor-settings" /> | |
− | + | <variable name="version" value="2.1.413.111" /> | |
+ | <variable name="SETUP" value="%SOFTWARE%\boxcryptor\Boxcryptor_v%version%_Setup.msi"/> | ||
− | + | <check type="uninstall" condition="versiongreaterorequal" path="Boxcryptor.*" value="%version%"/> | |
− | + | ||
− | + | <install cmd='msiexec /i "%SETUP%" /passive /norestart /qn'> | |
+ | <exit code='0' /> | ||
+ | <exit code='3010' reboot='true' /> | ||
+ | </install> | ||
− | + | <upgrade include="install" /> | |
− | + | ||
− | + | ||
− | + | ||
− | + | <remove cmd='msiexec /qn /x {922D920C-4A69-4B88-AB0C-A9B099594F99}'> <!-- 2.1.413.111 --> | |
+ | <exit code='0' /><exit code='1605' /> | ||
+ | </remove> | ||
+ | </package> | ||
− | + | <package id="boxcryptor-settings" name="Boxcryptor Settings" revision="2" reboot="false" execute="once"> | |
+ | <depends package-id='boxcryptor' /> | ||
+ | <variable name="UsersDir" value="C:\Users"/> | ||
+ | <variable name="AppDataBoxCryptor" value="AppData\Local\Boxcryptor"/> | ||
+ | |||
+ | <!-- | ||
+ | In order to remove the tutorial screen on the first start and disable | ||
+ | automatic updates do we need to copy applications.db and tutorial.db | ||
+ | to %AppDataBoxCryptor%. | ||
+ | --> | ||
+ | <install cmd='%COMSPEC% /C for /d %a in ("%UsersDir%\*.*") do mkdir "%a\%AppDataBoxCryptor%"'> | ||
+ | <exit code='any' /> | ||
+ | </install> | ||
+ | <install cmd='%COMSPEC% /C for /d %a in ("%UsersDir%\*.*") do copy /y "%SOFTWARE%\boxcryptor\application.db" "%a\%AppDataBoxCryptor%\."' /> | ||
+ | <install cmd='%COMSPEC% /C for /d %a in ("%UsersDir%\*.*") do copy /y "%SOFTWARE%\boxcryptor\tutorial.db" "%a\%AppDataBoxCryptor%\."' /> | ||
+ | <!-- hidden folders are not included in wildcard above but we need boxcryptor configs in default user profile as well --> | ||
+ | <install cmd='%COMSPEC% /C mkdir "%UsersDir%\Default\%AppDataBoxCryptor%"'> | ||
+ | <exit code='any' /> | ||
+ | </install> | ||
+ | <install cmd='%COMSPEC% /C copy /y "%SOFTWARE%\boxcryptor\application.db" "%UsersDir%\Default\%AppDataBoxCryptor%\."' /> | ||
+ | <install cmd='%COMSPEC% /C copy /y "%SOFTWARE%\boxcryptor\tutorial.db" "%UsersDir%\Default\%AppDataBoxCryptor%\."' /> | ||
+ | |||
+ | <upgrade include="install" /> | ||
</package> | </package> | ||
+ | </source> | ||
+ | |||
+ | applications.db file: | ||
+ | <source lang="text"> | ||
+ | { | ||
+ | "$type": "Boxcryptor.Core.ApplicationSettings, Boxcryptor.Core", | ||
+ | "updateCheck": false, | ||
+ | "collectUsageData": false, | ||
+ | "appStarts": 1, | ||
+ | "showInAppNews": false | ||
+ | } | ||
+ | </source> | ||
+ | |||
+ | tutorial.db file: | ||
+ | <source lang="text"> | ||
+ | { | ||
+ | "$type": "Boxcryptor.Core.TutorialSettings, Boxcryptor.Core", | ||
+ | "doNotShowAgain": true, | ||
+ | "Disabled": true | ||
+ | } | ||
</source> | </source> | ||
[[category:Silent Installers]] | [[category:Silent Installers]] |
Latest revision as of 12:34, 29 June 2015
Boxcryptor is an easy-to-use encryption software optimized for the cloud.: www.boxcryptor.com
Installer Package
<package id="boxcryptor" name="Boxcryptor" revision="5" reboot="false" precheck-upgrade="always">
<chain package-id="boxcryptor-settings" />
<variable name="version" value="2.1.413.111" />
<variable name="SETUP" value="%SOFTWARE%\boxcryptor\Boxcryptor_v%version%_Setup.msi"/>
<check type="uninstall" condition="versiongreaterorequal" path="Boxcryptor.*" value="%version%"/>
<install cmd='msiexec /i "%SETUP%" /passive /norestart /qn'>
<exit code='0' />
<exit code='3010' reboot='true' />
</install>
<upgrade include="install" />
<remove cmd='msiexec /qn /x {922D920C-4A69-4B88-AB0C-A9B099594F99}'> <!-- 2.1.413.111 -->
<exit code='0' /><exit code='1605' />
</remove>
</package>
<package id="boxcryptor-settings" name="Boxcryptor Settings" revision="2" reboot="false" execute="once">
<depends package-id='boxcryptor' />
<variable name="UsersDir" value="C:\Users"/>
<variable name="AppDataBoxCryptor" value="AppData\Local\Boxcryptor"/>
<!--
In order to remove the tutorial screen on the first start and disable
automatic updates do we need to copy applications.db and tutorial.db
to %AppDataBoxCryptor%.
-->
<install cmd='%COMSPEC% /C for /d %a in ("%UsersDir%\*.*") do mkdir "%a\%AppDataBoxCryptor%"'>
<exit code='any' />
</install>
<install cmd='%COMSPEC% /C for /d %a in ("%UsersDir%\*.*") do copy /y "%SOFTWARE%\boxcryptor\application.db" "%a\%AppDataBoxCryptor%\."' />
<install cmd='%COMSPEC% /C for /d %a in ("%UsersDir%\*.*") do copy /y "%SOFTWARE%\boxcryptor\tutorial.db" "%a\%AppDataBoxCryptor%\."' />
<!-- hidden folders are not included in wildcard above but we need boxcryptor configs in default user profile as well -->
<install cmd='%COMSPEC% /C mkdir "%UsersDir%\Default\%AppDataBoxCryptor%"'>
<exit code='any' />
</install>
<install cmd='%COMSPEC% /C copy /y "%SOFTWARE%\boxcryptor\application.db" "%UsersDir%\Default\%AppDataBoxCryptor%\."' />
<install cmd='%COMSPEC% /C copy /y "%SOFTWARE%\boxcryptor\tutorial.db" "%UsersDir%\Default\%AppDataBoxCryptor%\."' />
<upgrade include="install" />
</package>
applications.db file:
{
"$type": "Boxcryptor.Core.ApplicationSettings, Boxcryptor.Core",
"updateCheck": false,
"collectUsageData": false,
"appStarts": 1,
"showInAppNews": false
}
tutorial.db file:
{
"$type": "Boxcryptor.Core.TutorialSettings, Boxcryptor.Core",
"doNotShowAgain": true,
"Disabled": true
}