idf-windows-installer.rst 3.4 KB

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