[Launch]
ProgramExecutable=Opera\opera.exe
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Registry=true
Java=find

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

[LanguageFile]
Type=ConfigRead
File=%PAL:DataDir%\profile\operaprefs.ini
Entry=Language Files Directory={Resources}locale/

[LanguageStrings]
en_US=en
es=es-ES
pt_BR=pt-br
zh_CN=zh-cn
ZH_TW=zh-tw

[DirectoriesMove]
profile\icons=%PAL:AppDir%\Opera\profile\icons
profile\vps=%PAL:AppDir%\Opera\profile\vps
profile\thumbnails=%PAL:AppDir%\Opera\profile\thumbnails

[RegistryKeys]
-=HKCU\Software\Opera Software

[FileWrite1]
Type=Replace
File=%PAL:AppDir%\Opera\operaprefs_default.ini
Find=INITIALDATAPATH
Replace=%PAL:DataDir%

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\profile\operaprefs.ini
Find==%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%
Replace==%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\profile\operaprefs.ini
Find==%PAL:LastDrive%%PAL:LastPackagePartialDir%
Replace==%PAL:Drive%%PAL:PackagePartialDir%

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\profile\operaprefs.ini
Find==%PAL:LastDrive%
Replace==%PAL:Drive%

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\profile\speeddial.ini
Find==%PAL:LastDrive%%PAL:LastPackagePartialDir%
Replace==%PAL:Drive%%PAL:PackagePartialDir%

[FileWrite6]
Type=Replace
File=%PAL:DataDir%\profile\speeddial.ini
Find==%PAL:LastDrive%
Replace==%PAL:Drive%

[FileWrite7]
Type=INI
File=%PAL:DataDir%\profile\operaprefs.ini
Section=User Prefs
Key=Language File
Value={Resources}locale/%PAL:LanguageCustom%/%PAL:LanguageCustom%.lng

[FileWrite8]
Type=INI
File=%PAL:DataDir%\profile\operaprefs.ini
Section=User Prefs
Key=Language Files Directory
Value={Resources}locale/%PAL:LanguageCustom%

[FileWrite9]
Type=INI
File=%PAL:DataDir%\profile\operaprefs.ini
Section=Network
Key=HTTP Accept Language
Value=%PAL:LanguageCustom%,en-US;q=0.9,en;q=0.8