summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/resources/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-gui/src/main/resources/scripts')
-rw-r--r--pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat5
-rw-r--r--pdf-over-gui/src/main/resources/scripts/uninstall_linux.sh3
-rw-r--r--pdf-over-gui/src/main/resources/scripts/uninstall_win.bat5
3 files changed, 11 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat b/pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat
index ae0cbbca..66d3c22e 100644
--- a/pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat
+++ b/pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat
@@ -1 +1,4 @@
-@start /b javaw -jar lib\pdf-over-gui-4.0.0-SNAPSHOT.jar %* \ No newline at end of file
+@echo off
+pushd %~dp0\..
+start /b javaw -jar lib\pdf-over-gui-4.0.0-SNAPSHOT.jar %*
+popd \ No newline at end of file
diff --git a/pdf-over-gui/src/main/resources/scripts/uninstall_linux.sh b/pdf-over-gui/src/main/resources/scripts/uninstall_linux.sh
new file mode 100644
index 00000000..4f36b8e9
--- /dev/null
+++ b/pdf-over-gui/src/main/resources/scripts/uninstall_linux.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+BASEDIR=`dirname $0`
+(cd "$BASEDIR/.." && exec java -jar Uninstaller/uninstaller.jar)
diff --git a/pdf-over-gui/src/main/resources/scripts/uninstall_win.bat b/pdf-over-gui/src/main/resources/scripts/uninstall_win.bat
index f9da9ee1..4c01a10b 100644
--- a/pdf-over-gui/src/main/resources/scripts/uninstall_win.bat
+++ b/pdf-over-gui/src/main/resources/scripts/uninstall_win.bat
@@ -1 +1,4 @@
-@start /b Uninstaller\uninstaller.jar \ No newline at end of file
+@echo off
+pushd %~dp0\..
+start /b Uninstaller\uninstaller.jar
+popd \ No newline at end of file