[Launch]
ProgramExecutable=Iron\chrome.exe
CommandLineArguments=--user-data-dir="%PAL:DataDir%\IronPortableData"
SingleAppInstance=true
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Java=find
Registry=true

[RegistryKeys]
-=HKCU\Software\Chromium
-=HKCU\Software\Google\Chrome\BLBeacon

[RegistryCleanupIfEmpty]
1=HKLM\Software\Google\Chrome\Extensions
2=HKLM\Software\Google\Chrome
3=HKLM\Software\Google
4=HKCU\Software\Google\Chrome\Extensions
5=HKCU\Software\Google\Chrome
6=HKCU\Software\Google
7=HKLM\SOFTWARE\MozillaPlugins
8=HKCU\SOFTWARE\MozillaPlugins

[FilesMove]
adblock.ini=%PAL:AppDir%\Iron
settings.dat=%LOCALAPPDATA%\Chromium\User Data\Crashpad\

[DirectoriesMove]
Dictionaries=%PAL:AppDir%\Iron\Dictionaries
extensions=%PAL:AppDir%\Iron\extensions
Plugins=%PAL:AppDir%\Iron\Plugins

[DirectoriesCleanupIfEmpty]
1=%LOCALAPPDATA%\Chromium\User Data\Crashpad\metadata
2=%LOCALAPPDATA%\Chromium\User Data\Crashpad\reports
3=%LOCALAPPDATA%\Chromium\User Data\Crashpad
4=%LOCALAPPDATA%\Chromium\User Data
5=%LOCALAPPDATA%\Chromium

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\IronPortableData\Default\Preferences
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:DoubleBackslash%
Replace=%PAL:Drive%%PAL:PackagePartialDir:DoubleBackslash%

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\IronPortableData\Default\Preferences
Find=%PAL:LastDrive%\\
Replace=%PAL:Drive%\\

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\IronPortableData\Default\Preferences
Find=file:///%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%
Replace=file:///%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\IronPortableData\Default\Preferences
Find=file:///%PAL:LastDrive%/
Replace=file:///%PAL:Drive%/
