[Launch]
ProgramExecutable=DiffImg\diffimg.exe
WorkingDirectory=%PAL:AppDir%\DiffImg
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Registry=true

[RegistryKeys]
DiffImg=HKCU\Software\TheHive\DiffImg

[RegistryCleanupIfEmpty]
1=HKCU\Software\TheHive

[QtKeysCleanup]
1=Qt Factory Cache 4.8\com.trolltech.Qt.QImageIOHandlerFactoryInterface:
2=Qt Plugin Cache 4.8.false

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\Settings\DiffImg.reg
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%/
Replace=%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%/

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\Settings\DiffImg.reg
Find=%PAL:LastPortableAppsBaseDirectory:ForwardSlash%/
Replace=%PAL:PortableAppsBaseDirectory:ForwardSlash%/

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\Settings\DiffImg.reg
Find=%PAL:LastDrive%/
Replace=%PAL:Drive%/

[FileWrite4]
Type=INI
File=%PAL:DataDir%\Settings\DiffImg.reg
Section=HKEY_CURRENT_USER\Software\TheHive\DiffImg\Application
Key="currentLanguage"
Value="%PAL:LanguageCustom%"

[FileWrite5]
Type=INI
File=%PAL:DataDir%\Settings\DiffImg.reg
Section=HKEY_CURRENT_USER\Software\TheHive\DiffImg\Application
Key="splashscreenAtStartup"
Value="false"

[FileWrite6]
Type=Replace
File=%PAL:DataDir%\Settings\DiffImg.reg
Find=DEFAULTAPPDIRECTORY
Replace=%PAL:AppDir:ForwardSlash%/DiffImg

[Language]
Base=%PortableApps.comLanguageCode%
Default=default
CheckIfExists=%PAL:AppDir%\DiffImg\lang\diffimg_%PAL:LanguageCustom%.qm

[LanguageStrings]
cs=cs
fr=fr
it=it
pt=pt
sv=sv
vi=vi

[LanguageFile]
Type=ConfigRead
File=%PAL:DataDir%\Settings\DiffImg.reg
Section=HKEY_CURRENT_USER\Software\TheHive\DiffImg\Application
Key="currentLanguage"="
TrimRight="