diff --git a/build.xml b/build.xml
index 63c4bb4e..2949a685 100644
--- a/build.xml
+++ b/build.xml
@@ -213,8 +213,22 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -378,17 +392,18 @@
-
+
-
+
+
@@ -404,6 +419,12 @@
+
+
+
+
+
+
diff --git a/installer/msi/filebot-launch4j.xml b/installer/msi/filebot-launch4j.xml
index 2ba5a835..1a846482 100644
--- a/installer/msi/filebot-launch4j.xml
+++ b/installer/msi/filebot-launch4j.xml
@@ -19,6 +19,5 @@
preferJre
256
- -Dapplication.deployment=msi
\ No newline at end of file
diff --git a/installer/msi/filebot-platform-launch4j.xml b/installer/msi/filebot-platform-launch4j.xml
index 29ccc8cb..157720de 100644
--- a/installer/msi/filebot-platform-launch4j.xml
+++ b/installer/msi/filebot-platform-launch4j.xml
@@ -15,7 +15,7 @@
..\icons\shortcut.ico
net.sourceforge.filebot
- FileBot
+
diff --git a/installer/msi/filebot-wix.xml b/installer/msi/filebot-wix.xml
index f2ee5c6e..537cfe39 100644
--- a/installer/msi/filebot-wix.xml
+++ b/installer/msi/filebot-wix.xml
@@ -17,6 +17,7 @@
+
diff --git a/installer/msi/filebot.cmd b/installer/msi/filebot.cmd
index ba326b6f..ab8a1d47 100644
--- a/installer/msi/filebot.cmd
+++ b/installer/msi/filebot.cmd
@@ -1,2 +1,2 @@
@ECHO OFF
-java -Dapplication.deployment=msi -Xmx256m -jar "%~dp0FileBot.jar" %*
+java -Dapplication.dir="%APPDATA%\FileBot" -Dapplication.deployment=msi -Djava.io.tmpdir="%APPDATA%\FileBot\temp" -Xmx256m -jar "%~dp0FileBot.jar" %*
diff --git a/installer/msi/filebot.launcher.exe b/installer/msi/filebot.launcher.exe
index 6806dd0d..ede7076d 100644
Binary files a/installer/msi/filebot.launcher.exe and b/installer/msi/filebot.launcher.exe differ
diff --git a/installer/msi/filebot.launcher.l4j.ini b/installer/msi/filebot.launcher.l4j.ini
new file mode 100644
index 00000000..e59d15db
--- /dev/null
+++ b/installer/msi/filebot.launcher.l4j.ini
@@ -0,0 +1,7 @@
+# FileBot launch4j runtime config
+-Dapplication.deployment=msi
+-Dapplication.dir="%APPDATA%\FileBot"
+-Djava.io.tmpdir="%APPDATA%\FileBot\temp"
+
+# memory settings
+-Xmx256m
diff --git a/installer/msi/filebot.platform.launcher.exe b/installer/msi/filebot.platform.launcher.exe
index 84a2a064..ef1a196e 100644
Binary files a/installer/msi/filebot.platform.launcher.exe and b/installer/msi/filebot.platform.launcher.exe differ
diff --git a/installer/msi/filebot.platform.launcher.l4j.ini b/installer/msi/filebot.platform.launcher.l4j.ini
index 5368b1b0..fdf8fe6e 100644
--- a/installer/msi/filebot.platform.launcher.l4j.ini
+++ b/installer/msi/filebot.platform.launcher.l4j.ini
@@ -1,12 +1,14 @@
# FileBot launch4j runtime config
-Dapplication.deployment=msi
--Dfile.encoding=UTF-8
+-Dapplication.dir="%APPDATA%\FileBot"
+-Djava.io.tmpdir="%APPDATA%\FileBot\temp"
# memory settings
-Xms64m
-Xmx512m
# force english locale
+-Dfile.encoding=UTF-8
-Duser.country=US
-Duser.country.format=US
-Duser.language=en
diff --git a/installer/portable/FileBot-launch4j.xml b/installer/portable/FileBot-launch4j.xml
new file mode 100644
index 00000000..fc4c2698
--- /dev/null
+++ b/installer/portable/FileBot-launch4j.xml
@@ -0,0 +1,23 @@
+
+ true
+ gui
+ FileBot.jar
+ FileBot.exe
+
+
+
+ normal
+ http://java.com/download
+
+ false
+ false
+
+ ..\icons\shortcut.ico
+
+
+ 1.6.0
+
+ preferJre
+ 256
+
+
\ No newline at end of file
diff --git a/installer/portable/FileBot.exe b/installer/portable/FileBot.exe
new file mode 100644
index 00000000..a3d78303
Binary files /dev/null and b/installer/portable/FileBot.exe differ
diff --git a/installer/portable/FileBot.l4j.ini b/installer/portable/FileBot.l4j.ini
new file mode 100644
index 00000000..bb172514
--- /dev/null
+++ b/installer/portable/FileBot.l4j.ini
@@ -0,0 +1,15 @@
+# FileBot launch4j runtime config
+-Dapplication.deployment=portable
+-Dapplication.dir="%EXEDIR%"
+-Duser.home="%EXEDIR%"
+-Djava.io.tmpdir="%EXEDIR%\temp"
+
+# memory settings
+-Xmx256m
+
+# look for native libs here
+-Djna.library.path="%EXEDIR%"
+
+# store preferences to text file
+-Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory
+-Dnet.sourceforge.tuned.prefs.file=prefs.properties
diff --git a/installer/portable/filebot.sh b/installer/portable/filebot.sh
new file mode 100644
index 00000000..d82dc24a
--- /dev/null
+++ b/installer/portable/filebot.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+SOURCE="${BASH_SOURCE[0]}"
+while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
+dir_bin="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
+
+# WARNING: NOT TESTED / HERE THERE BE DRAGONS
+javaw -Dapplication.deployment=portable -Dapplication.dir="$dir_bin" -Duser.home="$dir_bin" -Djava.io.tmpdir="$dir_bin/temp" -Djna.library.path="$dir_bin" -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory -Dnet.sourceforge.tuned.prefs.file=prefs.properties -Xmx256m -jar "$dir_app/FileBot.jar" "$@"
diff --git a/installer/webstart/filebot.jnlp b/installer/webstart/filebot.jnlp
index d49a0c7f..3a04e358 100644
--- a/installer/webstart/filebot.jnlp
+++ b/installer/webstart/filebot.jnlp
@@ -27,7 +27,8 @@
-
+
+
diff --git a/source/ehcache.xml b/source/ehcache.xml
index 181ba126..c8369dec 100644
--- a/source/ehcache.xml
+++ b/source/ehcache.xml
@@ -39,7 +39,7 @@
Subdirectories can be specified below the property e.g. java.io.tmpdir/one
-->
-
+