Hi Arthur,
This is very easy. First you must extract the contents of the archive and add them in Files and Folders page, including the setup.py file.
Then you need to add a custom action that calls python.exe and passes the path to setup.py in its command line. For this you can use our predefined custom action "Launch File" from Custom Actions page. To get the path of Python.exe from where the package will be installed you
can create a search in Search page, then refer it in the custom action like this
[MY_PYTHON_SEARCH_NAME].
The custom action should be added after the group "Add Resources", scheduled be executed only on "Install" and enable the options "When the system is being deferred" and "Run under the LocalSystem account with full privileges".
This custom action will actually launch Python.exe, pass to him the path to the setup.py file (you need to set it in "Command Line" field in Advanced Installer) and execute it, similar to
how Notepad++ can test *.py files.
Regards,
Bogdan
FOLLOW US
Get the latest news in Application Packaging