joefitzgerald / packer-windows

Windows Packer Templates
MIT License
1.63k stars 1.12k forks source link

Microsoft renamed SDelete.zip to sdelete.zip so compact.bat fails #196

Closed kaltokri closed 8 years ago

kaltokri commented 8 years ago

I don't know if this will be a temporary problem, but in the moment I'm unable to build Windows 10 with packer with the original files.

Output:

    virtualbox-iso: C:\Users\vagrant>if not exist "C:\Windows\Temp\SDelete.zip" (powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://download.sysinternals.com/files/SDelete.zip', 'C:\Windows\Temp\SDelete.zip')"  0<NUL )
    virtualbox-iso: Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found."
    virtualbox-iso: At line:1 char:1
    virtualbox-iso: + (New-Object System.Net.WebClient).DownloadFile('http://download.sysin ...
    virtualbox-iso: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    virtualbox-iso: + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    virtualbox-iso: + FullyQualifiedErrorId : WebException
...
    virtualbox-iso: C:\Users\vagrant>cmd /c C:\Windows\Temp\sdelete.exe -q -z C:
    virtualbox-iso: 'C:\Windows\Temp\sdelete.exe' is not recognized as an internal or external command,
    virtualbox-iso: operable program or batch file.

I change the url in compact.bat to lower case and try again.

kaltokri commented 8 years ago

Sorry duplicat of #195