12
edits
Changes
Tipp10
,== Installer Package ==
<source lang="xml">
<package id="boxcryptor" 'tipp10' name="Boxcryptor" 'Tipp10' revision="5" '1' priority='0' reboot="'false" ' precheck-upgrade="always"> <chain package-id="boxcryptor-settings" /> <variable name="version" value="2.1.413.1110" /> <variable name="SETUPexeversion" value="%SOFTWARE%\boxcryptor\Boxcryptor_v%version%_Setup.msi2-1-0"/>
<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 (IF EXIST "%UsersDirPkgDestination%\*unins000.*exe") do mkdir "%a\%AppDataBoxCryptor%"'> <exit code='any' start /> </install> <install cmd='%COMSPEC% /C for /d %a in (wait "%UsersDir%\*.*TIPP10UNINS") do copy /y "%SOFTWAREPkgDestination%\boxcryptor\applicationunins000.dbexe" "%a\%AppDataBoxCryptor%\."' /> <install cmd=VERYSILENT'%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>
</source>
[[category:Silent Installers]]