filelight.ps1 478 B

1234567891011121314
  1. Write-Host "filelight: Installing filelight."
  2. $filePath = "C:\Program Files\Filelight"
  3. $out = "$env:TEMP\filelight-22.08.0-windows-msvc2019_64-cl.exe"
  4. if (Test-Path $filePath) {
  5. Write-Host "filelight: '$filePath' file already exists."
  6. if (Test-Path $out) {
  7. rm $out
  8. }
  9. } else {
  10. $url="\\samba.home\public\filelight-22.08.0-windows-msvc2019_64-cl.exe"
  11. Copy-Item $url $out
  12. Write-Host "filelight: '$out' requires human interaction for installation."
  13. }