Difference between revisions of "Tipp10"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (Fixed remove command and added some clarification)
(Package for Boxcryptor)
Line 1: Line 1:
Free Touch Typing Tutor: [http://www.tipp10.com/en/ www.tipp10.com]
+
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='tipp10' name='Tipp10' revision='1' priority='0' reboot='false' precheck-upgrade="always">
+
<package id="boxcryptor" name="Boxcryptor" revision="5" reboot="false" precheck-upgrade="always">
  <variable name="version" value="2.1.0" />
+
    <chain package-id="boxcryptor-settings" />
  <variable name="exeversion" value="2-1-0" />
+
    <variable name="version" value="2.1.413.111" />
 +
    <variable name="SETUP" value="%SOFTWARE%\boxcryptor\Boxcryptor_v%version%_Setup.msi"/>
  
  <variable name="PkgDestination" value="%ProgramFiles%\Tipp10" architecture="x86"/>
+
    <check type="uninstall" condition="versiongreaterorequal" path="Boxcryptor.*" value="%version%"/>
  <variable name="PgkDestination" value="%ProgramFiles(x86)%\Tipp10" architecture="x64"/>
+
  
  <check type="uninstall" condition="versiongreaterorequal" path="TIPP10.*" value="%version%"/>
+
    <install cmd='msiexec /i "%SETUP%" /passive /norestart /qn'>
 +
        <exit code='0' />
 +
        <exit code='3010' reboot='true' />
 +
    </install>
  
  <install cmd='%COMSPEC% /C start /wait "TIPP10" "%PACKAGES%\tipp10\tipp10_win_v%exeversion%.exe" /VERYSILENT"'/>
+
    <upgrade include="install" />
  <!-- disable checking for updates -->
+
  <install cmd='reg add "HKLM\SOFTWARE\Tom Thielicke IT Solutions\tipp10\general" /v "check_new_version" /d "false" /t REG_SZ /f' />
+
  <install cmd='reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TIPP10_is1" /v "DisplayVersion" /d "%version%" /t REG_SZ /f' />
+
  
  <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>
  
  <remove cmd='%COMSPEC% /C IF EXIST "%PkgDestination%\unins000.exe" start /wait "TIPP10UNINS" "%PkgDestination%\unins000.exe" /VERYSILENT'/>
+
<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]]

Revision as of 12:32, 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
}