[Launch]
ProgramExecutable=vlc\vlc.exe
CommandLineArguments=--vlm-conf "%PAL:DataDir%\settings\vlcrc" --no-plugins-cache --config "%PAL:DataDir%\settings\vlcrc"
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Java=find

[DirectoriesMove]
dvdcss=%APPDATA%\dvdcss
aacs=%ALLUSERSPROFILE%\aacs

[FilesMove]
settings\ml.xspf=%PAL:AppDir%\vlc\portable
settings\vlc-qt-interface.ini=%PAL:AppDir%\vlc\portable\vlc

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\settings\vlcrc
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%\
Replace=%PAL:Drive%%PAL:PackagePartialDir%\

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\settings\vlcrc
Find=%PAL:LastDrive%%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:Drive%%PAL:PortableAppsBaseDir%\

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

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\settings\vlcrc
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardBackslash%/
Replace=%PAL:Drive%%PAL:PackagePartialDir:ForwardBackslash%/

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\settings\vlcrc
Find=%PAL:LastDrive%%PAL:LastPortableAppsBaseDir:ForwardBackslash%/
Replace=%PAL:Drive%%PAL:PortableAppsBaseDir:ForwardBackslash%/

[FileWrite6]
Type=Replace
File=%PAL:DataDir%\settings\vlcrc
Find=%PAL:LastDrive%/
Replace=%PAL:Drive%/

[FileWrite7]
Type=Replace
File=%PAL:DataDir%\settings\ml.xspf
Find=<location>file:///%PAL:LastDrive%/
Replace=<location>file:///%PAL:Drive%/

[FileWrite8]
Type=Replace
File=%PAL:DataDir%\settings\vlc-qt-interface.ini
Find="=%PAL:LastDrive%\"
Replace="=%PAL:Drive%\"
