Skip to content

Commit

Permalink
Retry after five seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanScherer committed Apr 12, 2018
1 parent c3a8943 commit e4c087c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/vm-guest-tools.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
if not exist "C:\Windows\Temp\7z920-x64.msi" (
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://www.7-zip.org/a/7z920-x64.msi', 'C:\Windows\Temp\7z920-x64.msi')" <NUL
)
if not exist "C:\Windows\Temp\7z920-x64.msi" (
powershell -Command "Start-Sleep 5 ; (New-Object System.Net.WebClient).DownloadFile('http://www.7-zip.org/a/7z920-x64.msi', 'C:\Windows\Temp\7z920-x64.msi')" <NUL
)
msiexec /qb /i C:\Windows\Temp\7z920-x64.msi

if "%PACKER_BUILDER_TYPE%" equ "vmware-iso" goto :vmware
Expand Down

0 comments on commit e4c087c

Please sign in to comment.