- 1 year ago
pynsist python installation point
pynsist
is a tool that allows you to create Windows installers for Python applications. When you use pynsist
to create an installer, you specify various settings, including the installation directory where your Python application will be installed on the user's system.
In pynsist
, the installation point is defined using the target
field in your installer.cfg
configuration file. This field specifies where your application will be installed on the user's system. Here's an example of how you might configure the installation point in installer.cfg
:
ini[Application]
name=MyApplication
version=1.0
[Python]
version=3.8.10
[Include]
# List of files and directories to include in the installation
files = app/**/*
[Build]
# The installation point (where the application will be installed)
target=C:\Program Files\MyApplication
In this example, the target
field under [Build]
specifies that the application will be installed in C:\Program Files\MyApplication
on the user's system.
When you run pynsist installer.cfg
, it will generate an installer based on the settings in the configuration file, including the specified installation point.
Make sure to adapt the target
field to match your desired installation path on the user's system.
Keep in mind that specifying installation paths like C:\Program Files\
might require administrative privileges for installation. If your application doesn't require system-wide access, you might consider installing it in the user's profile directory or using --user
installation to avoid administrative permissions.
For more information and advanced options, you can refer to the official pynsist
documentation: https://pynsist.readthedocs.io/en/latest/