e768098d0e
Flake8 Lint / flake8 (push) Waiting to run
Spell check CI / Spell_Check (push) Waiting to run
tools_continuous_delivery / Private PyPI non-main branch release (push) Has been skipped
tools_continuous_delivery / Private PyPI main branch release (push) Failing after 2m42s
Publish Promptflow Doc / Build (push) Has been cancelled
Publish Promptflow Doc / Deploy (push) Has been cancelled
Building the Windows MSI Installer
This document provides instructions on creating the MSI installer.
Option1: Building with Github Actions
Trigger the workflow manually.
Option2: Local Building
Prerequisites
- Turn on the '.NET Framework 3.5' Windows Feature (required for WIX Toolset).
- Install 'Microsoft Build Tools 2015'. https://www.microsoft.com/download/details.aspx?id=48159
- You need to have curl.exe, unzip.exe and msbuild.exe available under PATH.
- Install 'WIX Toolset build tools' following the instructions below.
- Enter the directory where the README is located (
cd scripts/installer/windows),mkdir wixandcd wix. curl --output wix-archive.zip https://azurecliprod.blob.core.windows.net/msi/wix310-binaries-mirror.zipunzip wix-archive.zipanddel wix-archive.zip
- Enter the directory where the README is located (
- We recommend creating a clean virtual Python environment and installing all dependencies using src/promptflow/setup.py.
python -m venv venvvenv\Scripts\activatepip install promptflow[azure,executable,azureml-serving,executor-service] promptflow-tools
Building
- Update the version number
$(env.CLI_VERSION)and$(env.FILE_VERSION)inproduct.wxs,promptflow.wixprojandversion_info.txt. cd scripts/installer/windows/scriptsand runpython generate_dependency.py.- run
pyinstaller promptflow.spec. cd scripts/installer/windowsand Runmsbuild /t:rebuild /p:Configuration=Release /p:Platform=x64 promptflow.wixproj.- The unsigned MSI will be in the
scripts/installer/windows/outfolder.
Notes
- If you encounter "Access is denied" error when running promptflow. Please follow the link to add the executable to the Windows Defender Attack Surface Reduction (ASR) rule. Or you can add promptflow installation folder to the Windows Defender exclusion list.