Guest User

Untitled

a guest
Jan 21st, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;This is what's InkscapePortable.ini uses now:
  2.  
  3. [FileWrite2]
  4. Type=Replace
  5. File=%PAL:DataDir%\settings\preferences.xml
  6. Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%
  7. Replace=%PAL:Drive%%PAL:PackagePartialDir%
  8.  
  9. [FileWrite3]
  10. Type=Replace
  11. File=%PAL:DataDir%\settings\preferences.xml
  12. Find=%PAL:LastDrive%\
  13. Replace=%PAL:Drive%\
  14.  
  15. [FileWrite4]
  16. Type=Replace
  17. File=%PAL:DataDir%\settings\.recently-used.xbel
  18. Find=file:///%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%
  19. Replace=file:///%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%
  20.  
  21. [FileWrite5]
  22. Type=Replace
  23. File=%PAL:DataDir%\settings\.recently-used.xbel
  24. Find=file:///%PAL:LastDrive%
  25. Replace=file:///%PAL:Drive%
  26.  
  27. ;This is what it would become if we just add LastPortableAppsRootDir
  28.  
  29. [FileWrite2]
  30. Type=Replace
  31. File=%PAL:DataDir%\settings\preferences.xml
  32. Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%
  33. Replace=%PAL:Drive%%PAL:PackagePartialDir%
  34.  
  35. [FileWrite3]
  36. Type=Replace
  37. File=%PAL:DataDir%\settings\preferences.xml
  38. Find=%PAL:LastDrive%%PAL:LastPortableAppsRootDir%
  39. Replace=%PAL:Drive%%PAL:PortableAppsRootDir%
  40.  
  41. [FileWrite4]
  42. Type=Replace
  43. File=%PAL:DataDir%\settings\preferences.xml
  44. Find=%PAL:LastDrive%\
  45. Replace=%PAL:Drive%\
  46.  
  47. [FileWrite5]
  48. Type=Replace
  49. File=%PAL:DataDir%\settings\.recently-used.xbel
  50. Find=file:///%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%
  51. Replace=file:///%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%
  52.  
  53. [FileWrite6]
  54. Type=Replace
  55. File=%PAL:DataDir%\settings\.recently-used.xbel
  56. Find=file:///%PAL:LastDrive%%PAL:LastPortableAppsRootDir:ForwardSlash%
  57. Replace=file:///%PAL:Drive%%PAL:PortableAppsRootDir:ForwardSlash%
  58.  
  59. [FileWrite7]
  60. Type=Replace
  61. File=%PAL:DataDir%\settings\.recently-used.xbel
  62. Find=file:///%PAL:LastDrive%
  63. Replace=file:///%PAL:Drive%
  64.  
  65.  
  66. ;And this is what it could be with ReplaceAll
  67.  
  68. [FileWrite2]
  69. Type=ReplaceAll
  70. File=%PAL:DataDir%\settings\preferences.xml
  71. Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%
  72. Replace=%PAL:Drive%%PAL:PackagePartialDir%
  73.  
  74. [FileWrite3]
  75. Type=ReplaceAll
  76. File=%PAL:DataDir%\settings\.recently-used.xbel
  77. Find=file:///LastPortableAppsRootPath :ForwardSlash%
  78. Replace=file://PortableAppsRootPath :ForwardSlash%
Add Comment
Please, Sign In to add comment