I have a small python application and i want to add GNU GPL license text to MSI package, which cx_Freeze produces.
I use this setup scrip, with bdist_msi option:
import sys
from cx_Freeze import setup, Executable
path = sys.path + ["app"]
build_exe_options = {
"path": path,
"icon": "resources\icons\clock.ico"}
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup( name = "app",
version = "1.1",
description = "My Application",
options = {"build_exe": build_exe_options},
executables = [Executable("app.py", base=base,
targetName="app.exe",
shortcutName="Application",
shortcutDir="DesktopFolder")])
How can i do that?
According to the documentation, cx_Freeze is able to build a simple installer which probably doesn't include showing a license (or at least I couldn't find it in the docs).
However, you can run your setup script with python setup.py build
and then package the files up using a professional installer like Inno Setup or NSIS. Both of them are free and let you customize pretty much everything you want, including showing a license.