diff --git a/install.sh b/install.sh
index f2ef7fe2aa91c3c6b08919cc865dd11ca1545c99..bbc5ced13769c3be50c204ad6bc42c2070ea793f 100644
--- a/install.sh
+++ b/install.sh
@@ -7,6 +7,6 @@ cd `dirname $0`
 sudo apt-get install python
 sudo apt-get install python-tk
 sudo apt-get install desktop-file-utils
-sudo install -m 755 src/xdgurl.py /usr/bin/xdgurl
-sudo install -m 644 src/xdgurl.desktop /usr/share/applications/xdgurl.desktop
+sudo install -D -m 755 src/xdgurl.py /usr/bin/xdgurl
+sudo install -D -m 644 src/xdgurl.desktop /usr/share/applications/xdgurl.desktop
 sudo update-desktop-database -q /usr/share/applications