Skip to main content

Python package for compiling projects with Nuitka and creating Windows installers with Wix Toolset

Project description

Installer Creator

Python package for compiling projects with Nuitka and creating Windows installers with Wix Toolset.

Installation

pip install installer-creator

Prerequisites

  1. Wix Toolset (required for installer creation):

    dotnet tool install --global wix
    

    The package will automatically install the Wix UI extension if missing

  2. Nuitka (will be installed automatically)

Configuration

Create a build_config.yaml file:

# Nuitka build configuration
project:
  name: "MyApp"  # Application name
  version: "1.0.0"
  description: "My Application Description"
  company: ""
  icon: "app_icon.ico"  # Optional icon file
  main_file: "main.py"  # Entry point file

build:
  output:
    directory: "dist"
    filename: "my_app.exe"  # Output executable name
  options:
    standalone: true
    onefile: true
    splash_screen: ""
    remove_output: true
  include:
    packages:
      - ""
    plugins:
      - ""
    data_dirs:
      - source: "resources"
        target: "resources"
    external_data:
      - "*.dll"
    files:
      - "requirements.txt"
      - "readme.md"
      - "*.json"  # Example wildcard pattern
  copy_beside:
    - "resources"

installer:
  enabled: true
  output:
    directory: "dist"
    filename: "my_app_installer.msi"
  metadata:
    manufacturer: "Your Company"
    product_name: "My Application"
    upgrade_code: ""  # Generate with installer-creator generate-uuid
  ui:
    banner_image: "banner.bmp"
    dialog_image: "dialog.bmp"
  license_file: "license.rtf"
  shortcuts:
    desktop: true
    start_menu: true

debug:
  enabled: false
  console:
    mode: "disabled"
    stdout: null
    stderr: null

exclude:
  - "__pycache__"
  - "*.pyc"
  - "*.pyo"
  - "*.pyd"
  - "build"
  - "dist"

Resource Paths

The installer supports flexible resource locations:

  • UI images (banner/dialog) can be anywhere
  • License file can be anywhere
  • Paths can be absolute or relative to config file

Usage

# Generate UUID for upgrade code
installer-creator generate-uuid -s "MyAppName"

# Build executable
installer-creator build-exe -c build_config.yaml

# Create installer
installer-creator build-installer -c build_config.yaml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

installer_creator-0.1.6.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

installer_creator-0.1.6-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file installer_creator-0.1.6.tar.gz.

File metadata

  • Download URL: installer_creator-0.1.6.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for installer_creator-0.1.6.tar.gz
Algorithm Hash digest
SHA256 3a90ade283a889b22100200f66e92391e0c86c492f86ab92f7748680b2f88627
MD5 dec1600dabacdf4413dc81c976381524
BLAKE2b-256 e9dfc1741e675a590c82a0403845d31a601ed48c15312f316f90672271acde1a

See more details on using hashes here.

File details

Details for the file installer_creator-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for installer_creator-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5b8d4d29020f0cd0a9c5adfa6f7d40272e7eca2e21f10acc468c7dc35247b9c9
MD5 7f97b51fb9c8c7c3a04fbbdab9bd8094
BLAKE2b-256 81d48b34be3d4a30fa8adc78d43111021423402ed3fad62d8cbc8eaad9a9f43e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page