idf-windows-installer.rst 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. IDF Windows Installer
  2. =====================
  3. Command-line parameters
  4. -----------------------
  5. Windows Installer `esp-idf-tools-setup` provides the following command-line parameters:
  6. * ``/CONFIG=[PATH]`` - Path to ``ini`` configuration file to override default configuration of the installer. Default: ``config.ini``.
  7. * ``/GITCLEAN=[yes|no]`` - Perform git clean and remove untracked directories in Offline mode installation. Default: yes.
  8. * ``/GITRECURSIVE=[yes|no]`` - Clone recursively all git repository submodules. Default: yes
  9. * ``/GITREPO=[URL|PATH]`` - URL of repository to clone ESP-IDF. Default: https://github.com/espressif/esp-idf.git
  10. * ``/GITRESET=[yes|no]`` - Enable/Disable git reset of repository during installation. Default: yes.
  11. * ``/HELP`` - Display command line options provided by Inno Setup installer.
  12. * ``/IDFDIR=[PATH]`` - Path to directory where it will be installed. Default: ``{userdesktop}\esp-idf}``
  13. * ``/IDFVERSION=[v4.3|v4.1|master]`` - Use specific IDF version. E.g. v4.1, v4.2, master. Default: empty, pick the first version in the list.
  14. * ``/IDFVERSIONSURL=[URL]`` - Use URL to download list of IDF versions. Default: https://dl.espressif.com/dl/esp-idf/idf_versions.txt
  15. * ``/LOG=[PATH]`` - Store installation log file in specific directory. Default: empty.
  16. * ``/OFFLINE=[yes|no]`` - Execute installation of Python packages by PIP in offline mode. The same result can be achieved by setting the environment variable PIP_NO_INDEX. Default: no.
  17. * ``/USEEMBEDDEDPYTHON=[yes|no]`` - Use Embedded Python version for the installation. Set to ``no`` to allow Python selection screen in the installer. Default: yes.
  18. * ``/PYTHONNOUSERSITE=[yes|no]`` - Set PYTHONNOUSERSITE variable before launching any Python command to avoid loading Python packages from AppData\Roaming. Default: yes.
  19. * ``/PYTHONWHEELSURL=[URL]`` - Specify URLs to PyPi repositories for resolving binary Python Wheel dependencies. The same result can be achieved by setting the environment variable PIP_EXTRA_INDEX_URL. Default: https://dl.espressif.com/pypi
  20. * ``/SKIPSYSTEMCHECK=[yes|no]`` - Skip System Check page. Default: no.
  21. * ``/VERYSILENT /SUPPRESSMSGBOXES /SP- /NOCANCEL`` - Perform silent installation.
  22. Unattended installation
  23. -----------------------
  24. The unattended installation of IDF can be achieved by following command-line parameters:
  25. .. code-block:: batch
  26. esp-idf-tools-setup-x.x.exe /VERYSILENT /SUPPRESSMSGBOXES /SP- /NOCANCEL
  27. The installer detaches its process from the command-line. Waiting for installation to finish could be achieved by following PowerShell script:
  28. .. code-block:: powershell
  29. esp-idf-tools-setup-x.x.exe /VERYSILENT /SUPPRESSMSGBOXES /SP- /NOCANCEL
  30. $InstallerProcess = Get-Process esp-idf-tools-setup
  31. Wait-Process -Id $InstallerProcess.id
  32. Custom Python and custom location of Python wheels
  33. --------------------------------------------------
  34. The IDF installer is using by default embedded Python with reference to Python Wheel mirror.
  35. Following parameters allows to select custom Python and custom location of Python wheels:
  36. .. code-block:: batch
  37. esp-idf-tools-setup-x.x.exe /USEEMBEDDEDPYTHON=no /PYTHONWHEELSURL=https://pypi.org/simple/