[Launch]
ProgramExecutable=Foxit Reader\FoxitReader.exe
WorkingDirectory=%PAL:AppDir%\Foxit Reader
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Registry=true

[RegistryKeys]
FoxitReaderPortable=HKCU\Software\Foxit Software\Foxit Reader
FoxitReaderPortable5=HKCU\Software\Foxit Software\Foxit Reader 5.0
FoxitReaderPortable6=HKCU\Software\Foxit Software\Foxit Reader 6.0
FoxitReaderPortable7=HKCU\Software\Foxit Software\Foxit Reader 7.0
FoxitReaderPortable8=HKCU\Software\Foxit Software\Foxit Reader 8.0
FoxitReaderPortable9=HKCU\Software\Foxit Software\Foxit Reader 9.0
-=HKLM\SOFTWARE\Classes\Applications\Foxit Reader.exe
-=HKLM\SOFTWARE\Classes\Applications\FoxitReader.exe
-=HKLM\SOFTWARE\Classes\FoxitReader.Document
-=HKLM\SOFTWARE\Classes\FoxitReader.FDFDoc
-=HKLM\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}
-=HKLM\SOFTWARE\Classes\CLSID\{A43F4073-BEBD-4142-B590-27A74384620B}
-=HKLM\SOFTWARE\Classes\PDFPreviewHandlerHost.FoxitPDFPreview.1
-=HKLM\SOFTWARE\Classes\PDFPreviewHandlerHost.FoxitPDFPreviewHa
-=HKCU\Software\Foxit Software\Foxit Updater
-=HKCU\Software\Wintertree

[RegistryCleanupIfEmpty]
1=HKCU\Software\Foxit Software

[DirectoriesMove]
SpellCheck=%APPDATA%\Foxit Software\Foxit PhantomPDF\SpellCheck
-=%APPDATA%\Foxit Software\Addon
-=%APPDATA%\Foxit Software\cacheData
-=%APPDATA%\Foxit Software\Foxit Reader
-=%APPDATA%\Foxit Software\RMS
-=%APPDATA%\Foxit Software\CertFile
-=%ALLUSERSPROFILE%\Foxit Software
-=%Public%\Foxit Software

[DirectoriesCleanupIfEmpty]
1=%APPDATA%\Foxit Software

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

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

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

[FileWrite4]
Type=Replace
File=%PAL:AppDir%\Foxit Reader\UpdaterInfo.xml
Find=FoxitReaderPathToReplace
Replace=%PAL:AppDir%\Foxit Reader

[FileWrite5]
Type=Replace
File=%PAL:AppDir%\Foxit Reader\UpdaterInfo.xml
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:DoubleBackslash%\\
Replace=%PAL:Drive%%PAL:PackagePartialDir:DoubleBackslash%\\

[FileWrite6]
Type=Replace
File=%PAL:AppDir%\Foxit Reader\UpdaterInfo.xml
Find=%PAL:LastPortableAppsBaseDir:DoubleBackslash%\\
Replace=%PAL:PortableAppsBaseDir:DoubleBackslash%\\

[FileWrite7]
Type=Replace
File=%PAL:AppDir%\Foxit Reader\UpdaterInfo.xml
Find=%PAL:LastDrive%\\
Replace=%PAL:Drive%\\

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

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

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

[FileWrite11]
Type=INI
File=%PAL:DataDir%\settings\FoxitReaderPortable9.reg
Section=HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 9.0\Preferences\Languages
Key='"langid"'
Value='"%PAL:LanguageCustom%"'

[FileWrite12]
Type=INI
File=%PAL:DataDir%\settings\FoxitReaderPortable9.reg
Section=HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 9.0\Preferences\Languages
Key='"restartlangid"'
Value='"%PAL:LanguageCustom%"'

[FileWrite13]
Type=INI
File=%PAL:DataDir%\settings\FoxitReaderPortable9.reg
Section=HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 9.0\Preferences\Languages
Key='"nChooseLan"'
Value='"1"'

[FileWrite14]
Type=INI
File=%PAL:DataDir%\settings\FoxitReaderPortable9.reg
Section=HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 9.0\ConnectedPDF
Key='"DisablecPDF"'
Value=dword:00000001

[Language]
Base=%PortableApps.comLocaleName%

[LanguageStrings]
Arabic=49102d
Bulgarian=49103d
Catalan=49105d
SimpChinese=49107d
TradChinese=49108d
Czech=49106d
Danish=49109d
Dutch=49110d
English=49101d
Estonian=49112d
Finnish=49113d
French=49114d
Galician=49115d
German=49116d
Greek=49117d
Hebrew=49132d
Hungarian=49104d
Irish=49136d
Italian=49118d
Japanese=49133d
Korean=49119d
Latvian=49120d
Lithuanian=49121d
Norwegian=49122d
Polish=49123d
Portuguese=49124d
PortugueseBR=49125d
Romanian=49126d
Russian=49127d
Serbian=49138d
Slovenian=49128d
Spanish=49129d
Swedish=49130d
Thai=49134d
Turkish=49131d
Valencian=49135d

[LanguageFile]
Type=INI
File=%PAL:DataDir%\settings\FoxitReaderPortable9.reg
Section=HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 9.0\Preferences\Languages
Key='"langid"'