microsoft / Windows-Sandbox

Disposable, secure and lightweight Windows Desktop Environment
https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-overview
MIT License
364 stars 49 forks source link

Check installer size #13

Closed sebassem closed 4 years ago

sebassem commented 4 years ago

If the download of the installer has failed for some reason and the user tries to re-run the script again it will only check if the installer exists and continues execution even if the downloader is corrupt. I added a variable to get the installer size and then compares the file size if the installer already exists

brasmith-ms commented 4 years ago

Good idea, works fine for me