[Launch]
ProgramExecutable=SMPlayer\smplayer.exe
WorkingDirectory=%PAL:AppDir%\SMPlayer
WaitForEXE1=smtube.exe
DirectoryMoveOK=yes
SupportsUNC=yes
CleanTemp=false

[Environment]
DVDCSS_CACHE=off

[FilesMove]
smplayer\favorites.m3u8=%PAL:AppDir%\SMPlayer
smplayer\player_info.ini=%PAL:AppDir%\SMPlayer
smplayer\playlist.ini=%PAL:AppDir%\SMPlayer
smplayer\radio.m3u8=%PAL:AppDir%\SMPlayer
smplayer\smplayer.ini=%PAL:AppDir%\SMPlayer
smplayer\smplayer_init.lock=%PAL:AppDir%\SMPlayer
smplayer\smplayer_log.txt=%PAL:AppDir%\SMPlayer
smplayer\smplayer_tv.ini=%PAL:AppDir%\SMPlayer
smplayer\smtube.ini=%PAL:AppDir%\SMPlayer
smplayer\hdpi.ini=%PAL:AppDir%\SMPlayer
smplayer\styles.ass=%PAL:AppDir%\SMPlayer
smplayer\tv.m3u8=%PAL:AppDir%\SMPlayer

[DirectoriesMove]
smplayer\file_settings=%PAL:AppDir%\SMPlayer\file_settings

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\smplayer\smplayer.ini
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%\
Replace=%PAL:Drive%%PAL:PackagePartialDir%\

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\smplayer\smplayer.ini
Find=%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:PortableAppsBaseDir%\

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\smplayer\smplayer.ini
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\smplayer\smplayer.ini
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:DoubleBackslash%\\
Replace=%PAL:Drive%%PAL:PackagePartialDir:DoubleBackslash%\\

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\smplayer\smplayer.ini
Find=%PAL:LastPortableAppsBaseDir:DoubleBackslash%\\
Replace=%PAL:PortableAppsBaseDir:DoubleBackslash%\\

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

[FileWrite7]
Type=Replace
File=%PAL:DataDir%\smplayer\smplayer.ini
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:Forwardslash%/
Replace=%PAL:Drive%%PAL:PackagePartialDir:Forwardslash%/

[FileWrite8]
Type=Replace
File=%PAL:DataDir%\smplayer\smplayer.ini
Find=%PAL:LastPortableAppsBaseDir:Forwardslash%/
Replace=%PAL:PortableAppsBaseDir:Forwardslash%/

[FileWrite9]
Type=Replace
File=%PAL:DataDir%\smplayer\smplayer.ini
Find=%PAL:LastDrive%/
Replace=%PAL:Drive%/

[FileWrite10]
Type=Replace
File=%PAL:DataDir%\smplayer\favorites.m3u8
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:Forwardslash%/
Replace=%PAL:Drive%%PAL:PackagePartialDir:Forwardslash%/

[FileWrite11]
Type=Replace
File=%PAL:DataDir%\smplayer\favorites.m3u8
Find=%PAL:LastPortableAppsBaseDir:Forwardslash%/
Replace=%PAL:PortableAppsBaseDir:Forwardslash%/

[FileWrite12]
Type=Replace
File=%PAL:DataDir%\smplayer\favorites.m3u8
Find=%PAL:LastDrive%/
Replace=%PAL:Drive%/

[FileWrite13]
Type=Replace
File=%PAL:DataDir%\smplayer\smtube.ini
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:Forwardslash%/
Replace=%PAL:Drive%%PAL:PackagePartialDir:Forwardslash%/

[FileWrite14]
Type=Replace
File=%PAL:DataDir%\smplayer\smtube.ini
Find=%PAL:LastPortableAppsBaseDir:Forwardslash%/
Replace=%PAL:PortableAppsBaseDir:Forwardslash%/

[FileWrite15]
Type=Replace
File=%PAL:DataDir%\smplayer\smtube.ini
Find=%PAL:LastDrive%/
Replace=%PAL:Drive%/

[FileWrite16]
Type=Replace
File=%PAL:DataDir%\smplayer\playlist.ini
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:Doublebackslash%\\
Replace=%PAL:Drive%%PAL:PackagePartialDir:Doublebackslash%\\

[FileWrite17]
Type=Replace
File=%PAL:DataDir%\smplayer\playlist.ini
Find=%PAL:LastPortableAppsBaseDir:Doublebackslash%\\
Replace=%PAL:PortableAppsBaseDir:Doublebackslash%\\

[FileWrite18]
Type=Replace
File=%PAL:DataDir%\smplayer\playlist.ini
Find=%PAL:LastDrive%\\
Replace=%PAL:Drive%\\

[FileWrite19]
Type=Replace
File=%PAL:DataDir%\smplayer\playlist.ini
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:Forwardslash%\\
Replace=%PAL:Drive%%PAL:PackagePartialDir:Forwardslash%\\

[FileWrite20]
Type=Replace
File=%PAL:DataDir%\smplayer\playlist.ini
Find=%PAL:LastPortableAppsBaseDir:Forwardslash%\\
Replace=%PAL:PortableAppsBaseDir:Forwardslash%\\

[FileWrite21]
Type=Replace
File=%PAL:DataDir%\smplayer\playlist.ini
Find=%PAL:LastDrive%\\
Replace=%PAL:Drive%\\

[FileWrite22]
Type=ConfigWrite
File=%PAL:AppDir%\SMPlayer\mplayer\fonts\local.conf
Entry=<cachedir>
Value=%PAL:DataDir:Forwardslash%/fontconfig</cachedir>

[FileWrite23]
Type=INI
File=%PAL:DataDir%\smplayer\smplayer.ini
Section=drives
Key=dvd_device
Value=%CDROM%:

[FileWrite24]
Type=INI
File=%PAL:DataDir%\smplayer\smplayer.ini
Section=drives
Key=cdrom_device
Value=%CDROM%:

[FileWrite25]
Type=INI
File=%PAL:DataDir%\smplayer\smplayer.ini
Section=gui
Key=language
Value=%PAL:LanguageCustom%

[Language]
Base=%PortableApps.comLocaleglibc%

[LanguageStrings]
ar=ar_SY
el=el_GR
he=he_IL
ms=ms_MY
ro=ro_RO
ru=ru_RU
sl=sl_SI
uk=uk_UA
vi=vi_VN

[LanguageFile]
Type=INI
File=%PAL:DataDir%\smplayer\smplayer.ini
Section=gui
Key=language
