indygreg / PyOxidizer

A modern Python application packaging and distribution tool
Mozilla Public License 2.0
5.44k stars 235 forks source link

tugger-wix: Make msi option to add to path env optional. #711

Open andrewleech opened 1 year ago

andrewleech commented 1 year ago

When building / installing a GUI application, it's less common to want the install folder added to system env PATH. This PR makes the inclusion of this checkbox in the msi installer optional, though enabled by default to not effect existing users.

Used like:

def make_msi(exe):
    msi = exe.to_wix_msi_builder(
        "wsl_usb_gui",
        "WSL USB",
        VARS.get("version"),
        "Andrew Leech"
    )
    msi.add_to_path = False