Install-Idf.ps1 515 B

123456789101112131415
  1. param (
  2. [string]$Installer="C:\Output\esp-idf-tools-setup-unsigned.exe",
  3. [string]$IdfPath = "C:\Users\ContainerAdministrator\Desktop\esp-idf",
  4. [string]$IdfVersion = "v4.1"
  5. )
  6. $Installer
  7. $IdfPath
  8. $IdfVersion
  9. mkdir C:\Temp
  10. C:\Output\esp-idf-tools-setup-unsigned.exe /VERYSILENT /LOG=C:\Temp\install.txt /SUPPRESSMSGBOXES /SP- /NOCANCEL /NORESTART /IDFVERSION=${IdfVersion}
  11. $InstallerProcess = Get-Process esp-idf-tools-setup-unsigned
  12. Wait-Process -Id $InstallerProcess.id
  13. Get-Content C:\Temp\install.txt