diff --git a/windows/README.txt b/windows/README.txt
index 39dfd03..a10ad30 100644
--- a/windows/README.txt
+++ b/windows/README.txt
@@ -12,8 +12,7 @@ It is necessary to have the: Microsoft Visual C++ 2010 Redistributable Package.
- Execute "python input.py py2exe"
At the end, there should be a directory named "dist" containing the exe file and the needed libs (excluding for the c++ one)
-
-- manually copy the platforms subdirectory of plugins from the PyQt5 folder into dist
+within the dist directory there should be a "platforms" directory with a dll the PyQt5 directory.
Create the setup with Inno Setup
- Move windows/ss.iss to ../
diff --git a/windows/input.py b/windows/input.py
index 20c06f3..038fb2e 100644
--- a/windows/input.py
+++ b/windows/input.py
@@ -1,39 +1,57 @@
-#!/usr/bin/env python
-# Relational
-# Copyright (C) 2008 Salvo "LtWorf" Tomaselli
-#
-# Relational is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-#
-# author Salvo "LtWorf" Tomaselli
-
-from distutils.core import setup
-import py2exe
-
-#It was complaining about the already installed MSVCP90.dll
-#So it is removed from the checks and signals to the user the
-#probable need to manually install it. Since to redistribute it
-#some dammit certificates are needed.
-
-setup(options = {
- "py2exe": {
- "dll_excludes": ["MSVCP90.dll"]
- }
- },
- windows=
- [
- {"script": "relational_gui.py","icon_resources": [(0, "windows/favicon.ico")]}
- ]
- ,name="Relational",
- version="2.1"
- )
+# Relational
+# Copyright (C) 2008 Salvo "LtWorf" Tomaselli
+#
+# Relational is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+#
+# author Salvo "LtWorf" Tomaselli
+
+from distutils.core import setup
+import py2exe
+
+#It was complaining about the already installed MSVCP90.dll
+#So it is removed from the checks and signals to the user the
+#probable need to manually install it. Since to redistribute it
+#some dammit certificates are needed.
+
+includes = (
+ "sip",
+ "PyQt5",
+ "PyQt5.QtCore",
+ "PyQt5.QtGui",
+)
+
+datafiles = (
+ (
+ "platforms", ["C:\\Python34\\Lib\\site-packages\\PyQt5\\plugins" + "\\platforms\\qwindows.dll"]
+ ),
+)
+
+setup(
+ data_files=datafiles,
+ zipfile=None,
+ options={
+ "py2exe": {
+ "includes": includes,
+ "dll_excludes": ["MSVCP90.dll"],
+ }
+ },
+ windows=[
+ {
+ "script": "relational_gui.py",
+ "icon_resources": [(0, "windows/favicon.ico")],
+ }
+ ],
+ name="Relational",
+ version="2.1",
+)