[Launch]
ProgramExecutable=Instantbird\instantbird.exe
CommandLineArguments='-profile "%PAL:DataDir%\profile"'
SinglePortableAppInstance=true
DirectoryMoveOK=yes

[DirectoriesMove]
AppData=%APPDATA%\Instantbird
LocalAppData=%LOCALAPPDATA%\Instantbird
-=%APPDATA%\Mozilla\Extensions\{33cb9019-c295-46dd-be21-8c4936574bee}

[DirectoriesCleanupIfEmpty]
1=%APPDATA%\Mozilla\Extensions
2=%APPDATA%\Mozilla

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\profile\prefs.js
Find=file:///%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%
Replace=file:///%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\profile\prefs.js
Find=file:///%PAL:LastDrive%/
Replace=file:///%PAL:Drive%/

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\profile\prefs.js
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:DoubleBackslash%
Replace=%PAL:Drive%%PAL:PackagePartialDir:DoubleBackslash%

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\profile\prefs.js
Find=, "%PAL:LastDrive%:\\
Replace=, "%PAL:Drive%:\\

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

[FileWrite6]
Type=Replace
File=%PAL:DataDir%\profile\mimetypes.rdf
Find=="%PAL:LastDrive%
Replace=="%PAL:Drive%

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

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