diff --git a/build.bat b/build.bat
new file mode 100644
index 0000000000000000000000000000000000000000..f3e8c7113b0c29712bfa8137c0a0c77893c6120c
--- /dev/null
+++ b/build.bat
@@ -0,0 +1,37 @@
+rmdir /S /Q gajim_built
+
+mkdir gajim_built
+hg archive gajim_built
+xcopy ..\gajim-plugins\plugin_installer gajim_built\plugins\plugin_installer /e /i
+
+copy msgfmt.exe gajim_built
+copy gettextsrc.dll gajim_built
+copy gettextlib.dll gajim_built
+copy msvcr90.dll gajim_built
+
+cd gajim_built
+
+REM for libglade-2.0.0.dll
+PATH=..\src\gtk\bin;%PATH%
+
+c:\python27\python.exe setup_win32.py build_exe
+
+move build\exe.win32-2.7 .
+rename exe.win32-2.7 bin
+
+copy ..\LIBEAY32.dll bin
+copy ..\SSLEAY32.dll bin
+
+mkdir bin\gtk
+cd ../src/gtk
+hg archive ..\..\gajim_built\bin\gtk
+cd ../../gajim_built/
+
+REM for msgfmt
+PATH=bin\gtk\bin;%PATH%
+
+for %%l in (po\*.po) do mkdir po\%%~nl & mkdir po\%%~nl\LC_MESSAGES & msgfmt -o po\%%~nl\LC_MESSAGES\gajim.mo %%l
+
+"C:\Program Files\NSIS\makensis" gajim.nsi
+
+cd ..
\ No newline at end of file