diff --git a/appveyor.yml b/appveyor.yml
index c44dbb90dcfcc954651443f65d5976959f70403e..a552d46360273066f64b2aa58628f850ea258107 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -22,8 +22,8 @@ install:
       }
 
       bash 'pacman -Sy --noconfirm git'
-      bash 'git clone https://dev.gajim.org/gajim/gajim.git'
-
+      bash 'git clone C:/projects/gajim C:/msys64/home/appveyor/gajim'
+  
   - cmd: '%MSYS% C:/msys64/home/appveyor/gajim/win/build.sh'
   # Ugly workaround, because i found no way to tell when mingw32.exe returns
   - cmd: timeout 900
diff --git a/data/pixmaps/gajim.ico b/data/pixmaps/gajim.ico
deleted file mode 100644
index 6f6159527690034ca647b9eba9dce78c6167a023..0000000000000000000000000000000000000000
Binary files a/data/pixmaps/gajim.ico and /dev/null differ
diff --git a/setup.py b/setup.py
index 030bb77e246e520779ed0f81b5f836702483d3b9..9e0a9d666719a24c1ff1f872e30b43ff957ead98 100755
--- a/setup.py
+++ b/setup.py
@@ -269,7 +269,7 @@ setup(
     package_data={'gajim': package_data},
     data_files=data_files,
     install_requires=[
-        'dbus-python',
+        'dbus-python;sys_platform=="linux"',
         'nbxmpp',
         'pyOpenSSL'
     ],
diff --git a/win/_base.sh b/win/_base.sh
index 49f2826ad190a532bd3206a917aa034a08f2658f..5b8977cfe108eebabbbb3b5305ae79803673bb9a 100644
--- a/win/_base.sh
+++ b/win/_base.sh
@@ -96,14 +96,6 @@ pillow
         --force-reinstall $(echo "$PIP_REQUIREMENTS" | tr ["\\n"] [" "])
     build_pip install python-axolotl
 
-    build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-shared-mime-info \
-        mingw-w64-"${ARCH}"-"${PYTHON_ID}"-pip mingw-w64-"${ARCH}"-ncurses || true
-    build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-tk || true
-    build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-tcl || true
-    build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-gnome-common || true
-    build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-gsl || true
-    build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-libvpx || true
-
     # remove the large png icons, they should be used rarely and svg works fine
     rm -Rf "${MINGW_ROOT}/share/icons/Adwaita/512x512"
     rm -Rf "${MINGW_ROOT}/share/icons/Adwaita/256x256"
@@ -121,62 +113,53 @@ pillow
 function install_gajim {
     [ -z "$1" ] && (echo "Missing arg"; exit 1)
 
-    rm -Rf "${PACKAGE_DIR}/gajim"
-    rm -Rf "${REPO_CLONE}"
-    git clone "${DIR}"/.. "${REPO_CLONE}"
-    mv "${REPO_CLONE}/gajim" "${PACKAGE_DIR}"
+    rm -Rf "${PACKAGE_DIR}"/gajim*
+
+    cd ..
 
-    (cd "${REPO_CLONE}" && git checkout "$1") || exit 1
+    build_pip install .
 
-    if [ "$1" = "master" ]
-    then
-        local GIT_REV=$(git rev-list --count HEAD)
-        local GIT_HASH=$(git rev-parse --short HEAD)
-        QL_VERSION_DESC="QL_VERSION-rev$GIT_REV-$GIT_HASH"
-    else
-        QL_VERSION_DESC=$1
-        QL_VERSION=$1
-    fi
+    QL_VERSION=$(MSYSTEM= build_python -c \
+        "import gajim; import sys; sys.stdout.write(gajim.__version__.split('-')[0])")
+
+    QL_VERSION_DESC=$(MSYSTEM= build_python -c \
+        "import gajim; import sys; sys.stdout.write(gajim.__version__)")
 
     # Create launchers
     build_python "${MISC}"/create-launcher.py \
         "${QL_VERSION}" "${MINGW_ROOT}"/bin
 
     # Install plugin installer
-    wget -P "${REPO_CLONE}/plugins" -c https://ftp.gajim.org/plugins_1/plugin_installer.zip
-    7z x -o"${REPO_CLONE}"/plugins "${REPO_CLONE}"/plugins/plugin_installer.zip
-    rm -f "${REPO_CLONE}"/plugins/plugin_installer.zip
+    wget -P "${BUILD_ROOT}" -c https://ftp.gajim.org/plugins_1/plugin_installer.zip
+    mkdir "${PACKAGE_DIR}"/gajim/data/plugins
+    7z x -o"${PACKAGE_DIR}"/gajim/data/plugins "${BUILD_ROOT}"/plugin_installer.zip
 
     # Install themes
     rm -Rf "${MINGW_ROOT}"/etc
     rm -Rf "${MINGW_ROOT}"/share/themes
-    mv "${REPO_CLONE}"/win/etc "${MINGW_ROOT}"
-    mv "${REPO_CLONE}"/win/themes "${MINGW_ROOT}"/share
+    cp -r win/etc "${MINGW_ROOT}"
+    cp -r win/themes "${MINGW_ROOT}"/share
 
     # Install our own icons
     rm -Rf "${MINGW_ROOT}/share/icons/hicolor"
-    mv "${REPO_CLONE}"/icons/hicolor "${MINGW_ROOT}"/share/icons
+    cp -r gajim/data/icons/hicolor "${MINGW_ROOT}"/share/icons
 
-    # we installed our app icons into hicolor
+    # Update icon cache
     "${MINGW_ROOT}"/bin/gtk-update-icon-cache-3.0.exe --force \
         "${MINGW_ROOT}/share/icons/hicolor"
 
-    # Create translation files
-    for f in "${REPO_CLONE}"/po/*.po; do
-        fullfilename=$(basename "$f")
-        filename="${fullfilename%.*}"
-        directory="${MINGW_ROOT}"/share/locale/"$filename"
-        if [ ! -d "$directory" ]; then
-            printf "create dir\n"
-            mkdir -p "${directory}"/LC_MESSAGES
-        fi
-        printf "compile $filename\n"
-        msgfmt -o "${directory}"/LC_MESSAGES/gajim.mo "$f"
-    done
-
 }
 
 function cleanup_install {
+
+    build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-shared-mime-info \
+        mingw-w64-"${ARCH}"-"${PYTHON_ID}"-pip mingw-w64-"${ARCH}"-ncurses || true
+    build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-tk || true
+    build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-tcl || true
+    build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-gnome-common || true
+    build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-gsl || true
+    build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-libvpx || true
+
     #delete translations we don't support
     for d in "${MINGW_ROOT}"/share/locale/*/LC_MESSAGES; do
         if [ ! -f "${d}"/gajim.mo ]; then
@@ -188,28 +171,6 @@ function cleanup_install {
         -iregex ".*/(gajim|python|history_manager)[^/]*\\.exe" \
         -exec rm -f {} \;
 
-    rm -Rf "${REPO_CLONE}"/.git
-    rm -Rf "${REPO_CLONE}"/.gitlab-ci.yml
-    rm -Rf "${REPO_CLONE}"/debian
-    rm -Rf "${REPO_CLONE}"/doc
-    rm -Rf "${REPO_CLONE}"/m4
-    rm -Rf "${REPO_CLONE}"/scripts
-    rm -Rf "${REPO_CLONE}"/test
-    rm -Rf "${REPO_CLONE}"/win
-    rm -Rf "${REPO_CLONE}"/icons
-    rm -Rf "${REPO_CLONE}"/po
-    rm -Rf "${REPO_CLONE}"/plugins/acronyms_expander
-    rm -Rf "${REPO_CLONE}"/plugins/dbus_plugin
-    rm -Rf "${REPO_CLONE}"/plugins/events_dump
-    rm -Rf "${REPO_CLONE}"/plugins/new_events_example
-    rm -Rf "${REPO_CLONE}"/plugins/roster_buttons
-
-    rm -Rf "${REPO_CLONE}"/data/emoticons/noto-emoticons/png
-    rm -Rf "${REPO_CLONE}"/data/emoticons/noto-emoticons/README.md
-
-    find "${REPO_CLONE}"/* -maxdepth 0 -type f ! -regex ".*/\(AUTHORS\|COPYING\|THANKS\|THANKS.artists\)" -exec rm -f {} \;
-    find "${REPO_CLONE}"/data/* -maxdepth 0 -type f -exec rm -f {} \;
-
     rm -Rf "${MINGW_ROOT}"/libexec
     rm -Rf "${MINGW_ROOT}"/share/gtk-doc
     rm -Rf "${MINGW_ROOT}"/include
@@ -258,7 +219,6 @@ function cleanup_install {
     rm -Rf "${MINGW_ROOT}"/lib/tcl8
     rm -Rf "${MINGW_ROOT}"/lib/tcl8.6
 
-
     rm -f "${MINGW_ROOT}"/lib/gstreamer-1.0/libgstvpx.dll
     rm -f "${MINGW_ROOT}"/lib/gstreamer-1.0/libgstdaala.dll
     rm -f "${MINGW_ROOT}"/lib/gstreamer-1.0/libgstdvdread.dll
@@ -316,6 +276,8 @@ function cleanup_install {
 
     find "${MINGW_ROOT}"/bin -name "*.pyo" -exec rm -f {} \;
     find "${MINGW_ROOT}"/bin -name "*.pyc" -exec rm -f {} \;
+    # This file is not able to compile because of syntax errors
+    find "${MINGW_ROOT}"/bin -name "glib-gettextize-script.py" -exec rm -f {} \;
     build_compileall -q "${MINGW_ROOT}"
     find "${MINGW_ROOT}" -name "*.py" ! -name "*theme.py" -exec rm -f {} \;
     find "${MINGW_ROOT}"/bin -name "*.pyc" -exec rm -f {} \;
diff --git a/win/misc/create-launcher.py b/win/misc/create-launcher.py
index 73afc0c231b804a18304c6171eaf3a404bd62064..cee34a95865e41c9097c1e13d53be74bb4a61800 100644
--- a/win/misc/create-launcher.py
+++ b/win/misc/create-launcher.py
@@ -89,7 +89,6 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
     PySys_SetArgvEx(__argc, szArglist, 0);
     result = PyRun_SimpleString("import sys; import os;"
                                 "sys.frozen=True;"
-                                "os.chdir('../gajim');"
                                 "import gajim.gajim as g;"
                                 "g.GajimApplication().run(sys.argv);");
     Py_Finalize();
diff --git a/win/misc/gajim-portable.nsi b/win/misc/gajim-portable.nsi
index 528390653adb86fb1f4fae9f66cc1b5b83738669..8d413b7ba475ca2ee79506a0eb3f8942d9cee93d 100644
--- a/win/misc/gajim-portable.nsi
+++ b/win/misc/gajim-portable.nsi
@@ -15,14 +15,14 @@ RequestExecutionLevel user
 
 !define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\orange-install.ico"
 !define MUI_HEADERIMAGE
-!define MUI_HEADERIMAGE_BITMAP "mingw32\gajim\data\pixmaps\nsis_header.bmp"
-!define MUI_WELCOMEFINISHPAGE_BITMAP "mingw32\gajim\data\pixmaps\nsis_wizard.bmp"
-!define MUI_UNWELCOMEFINISHPAGE_BITMAP "mingw32\gajim\data\pixmaps\nsis_wizard.bmp"
+!define MUI_HEADERIMAGE_BITMAP "..\misc\nsis_header.bmp"
+!define MUI_WELCOMEFINISHPAGE_BITMAP "..\misc\nsis_wizard.bmp"
+!define MUI_UNWELCOMEFINISHPAGE_BITMAP "..\misc\nsis_wizard.bmp"
 !define MUI_COMPONENTSPAGE_SMALLDESC
 !define MUI_ABORTWARNING
 
 !insertmacro MUI_PAGE_WELCOME
-!insertmacro MUI_PAGE_LICENSE "mingw32\gajim\COPYING"
+!insertmacro MUI_PAGE_LICENSE "..\..\COPYING"
 !insertmacro MUI_PAGE_COMPONENTS
 !insertmacro MUI_PAGE_DIRECTORY
 !insertmacro MUI_PAGE_INSTFILES
diff --git a/win/misc/gajim.nsi b/win/misc/gajim.nsi
index 0382e8cc58c91c1a634d878f2204e731ff098835..e9046168b78a1184d8ef0a73b0d3c69a878bc3c4 100644
--- a/win/misc/gajim.nsi
+++ b/win/misc/gajim.nsi
@@ -19,15 +19,15 @@ Var StartMenuFolder
 !define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\orange-install.ico"
 !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\orange-uninstall.ico"
 !define MUI_HEADERIMAGE
-!define MUI_HEADERIMAGE_BITMAP "mingw32\gajim\data\pixmaps\nsis_header.bmp"
-!define MUI_WELCOMEFINISHPAGE_BITMAP "mingw32\gajim\data\pixmaps\nsis_wizard.bmp"
-!define MUI_UNWELCOMEFINISHPAGE_BITMAP "mingw32\gajim\data\pixmaps\nsis_wizard.bmp"
+!define MUI_HEADERIMAGE_BITMAP "..\misc\nsis_header.bmp"
+!define MUI_WELCOMEFINISHPAGE_BITMAP "..\misc\nsis_wizard.bmp"
+!define MUI_UNWELCOMEFINISHPAGE_BITMAP "..\misc\nsis_wizard.bmp"
 ;!define MUI_COMPONENTSPAGE_CHECKBITMAP "${NSISDIR}\Contrib\Graphics\Checks\colorful.bmp"
 !define MUI_COMPONENTSPAGE_SMALLDESC
 !define MUI_ABORTWARNING
 
 !insertmacro MUI_PAGE_WELCOME
-!insertmacro MUI_PAGE_LICENSE "mingw32\gajim\COPYING"
+!insertmacro MUI_PAGE_LICENSE "..\..\COPYING"
 !insertmacro MUI_PAGE_COMPONENTS
 !insertmacro MUI_PAGE_DIRECTORY
 !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
diff --git a/data/pixmaps/nsis_header.bmp b/win/misc/nsis_header.bmp
similarity index 100%
rename from data/pixmaps/nsis_header.bmp
rename to win/misc/nsis_header.bmp
diff --git a/data/pixmaps/nsis_wizard.bmp b/win/misc/nsis_wizard.bmp
similarity index 100%
rename from data/pixmaps/nsis_wizard.bmp
rename to win/misc/nsis_wizard.bmp