Development Guide - sonicnkt/wpkg-gp-client GitHub Wiki
#Prerequisites WPKG-GP Client is written in python 2.7 and relies on the wxpython module (not phoenix) for the gui elements, pywin32 for the communication with the wpkg-gp service as well as eventlog and registry access and markdown2. It is only tested with the x86 built of python but should work fine on x64 (not tested tho).
For converting the python script into in independent exe it relies on pyinstaller, Inno Setup (5.5.9-unicode, with PreProcessor) is used to create the installer.
Pyinstaller and markdown2 can easily be installed using pip.
#Testing WPKG-GP Client If you have everything mentioned above installed and cloned the repository you can already run the "WPKG-GP-Client.py" python script without converting it to an exe file to make testing a lot quicker. You only have to create the necessary registry entry for storing reboot information. You can find a detailed instruction for this on the wiki.
#Building WPKG-GP Client To build a new EXE installer package for WPKG-GP Client you only need to run the build_script.py with python. By modifying the first lines of the script you can easily change some settings:
# -*- encoding: utf-8 -*-
# WPKG-GP Client BUILD SCRIPT
VERSION = "0.9.6.3" # str + max 4 different number values seperated by a "."
NAME = "WPKG-GP Client" # Application Name
AUTHOR = "Nils Thiele"
INNOSETUPCMD = r'%PROGRAMFILES(X86)%\Inno Setup 5\iscc.exe' # Inno Setup with PreProcessor Support!
# DO NOT MODFIY AFTER THIS POINT IF YOU DON'T KNOW WHAT YOU ARE DOING!!!
from datetime import datetime
import os, sys
The VERSION variable will be the version stored in the compiled program EXE as well as the uninstall entry in the registry. The NAME variable is the program name stored in the unistall entry in the registry. The AUTHOR variable is the publisher name stored in the uninstall entry in the registry. The INNOSETUPCMD variable should contain path to Inno Setup commandline compiler, this may have to be changed on your system.
All values of the variables have to be framed by quotation marks!
After the script finished you should find the installer package in the .\dist
directory. The uncompressed compiled
files are stored in .\dist\WPKG-GP-Client
. The former will always be cleared if you run the script again.