[Launch]
ProgramExecutable=Workrave\lib\Workrave.exe
CleanTemp=false
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Registry=true

[RegistryKeys]
-=HKEY_CURRENT_USER\AppEvents\EventLabels\WorkraveBreakIgnored
-=HKEY_CURRENT_USER\AppEvents\EventLabels\WorkraveBreakPrelude
-=HKEY_CURRENT_USER\AppEvents\EventLabels\WorkraveDailyLimit
-=HKEY_CURRENT_USER\AppEvents\EventLabels\WorkraveExerciseEnded
-=HKEY_CURRENT_USER\AppEvents\EventLabels\WorkraveExercisesEnded
-=HKEY_CURRENT_USER\AppEvents\EventLabels\WorkraveExerciseStep
-=HKEY_CURRENT_USER\AppEvents\EventLabels\WorkraveMicroBreakEnded
-=HKEY_CURRENT_USER\AppEvents\EventLabels\WorkraveMicroBreakStarted
-=HKEY_CURRENT_USER\AppEvents\EventLabels\WorkraveRestBreakEnded
-=HKEY_CURRENT_USER\AppEvents\EventLabels\WorkraveRestBreakStarted
-=HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Workrave
Workrave=HKEY_CURRENT_USER\Software\Workrave

[FilesMove]
settings\recently-used.xbel=%LOCALAPPDATA%

[DirectoriesMove]
Workrave=%APPDATA%\Workrave

[Language]
Base=%PortableApps.comLocaleglibc%
CheckIfExists=%PAL:AppDir%\Workrave\lib\locale\%PAL:LanguageCustom%
DefaultIfNotExists=en

[LanguageFile]
Type=ConfigRead
File=%PAL:DataDir%\settings\Workrave.reg
Entry=""locale"=""
CaseSensitive=true
TrimRight="""

[FileWrite1]
Type=INI
File=%PAL:DataDir%\settings\Workrave.reg
Section=HKEY_CURRENT_USER\Software\Workrave\gui
Key=""locale""
Value=""%PAL:LanguageCustom%""

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\settings\Workrave.reg
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:DoubleBackslash%\\
Replace=%PAL:Drive%%PAL:PackagePartialDir:DoubleBackslash%\\

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\settings\Workrave.reg
Find=%PAL:LastPortableAppsBaseDir:DoubleBackslash%\\
Replace=%PAL:PortableAppsBaseDir:DoubleBackslash%\\

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\settings\Workrave.reg
Find=%PAL:LastDrive%\\
Replace=%PAL:Drive%\\

