Commit 814a1bbe authored by Stefan Scherer's avatar Stefan Scherer
Browse files

Cleanup

parent f03a1ae6
...@@ -13,6 +13,7 @@ if not exist "C:\Windows\Temp\ultradefrag-portable-6.1.0.amd64\udefrag.exe" ( ...@@ -13,6 +13,7 @@ if not exist "C:\Windows\Temp\ultradefrag-portable-6.1.0.amd64\udefrag.exe" (
if not exist "C:\Windows\Temp\SDelete.zip" ( 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')" <NUL powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://download.sysinternals.com/files/SDelete.zip', 'C:\Windows\Temp\SDelete.zip')" <NUL
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://vagrantboxes.blob.core.windows.net/box/sdelete/v1.6.1/sdelete.exe', 'C:\Windows\Temp\sdelete.exe')" <NUL
) )
if not exist "C:\Windows\Temp\sdelete.exe" ( if not exist "C:\Windows\Temp\sdelete.exe" (
...@@ -31,4 +32,4 @@ if "%PACKER_BUILDER_TYPE%" neq "hyperv-iso" ( ...@@ -31,4 +32,4 @@ if "%PACKER_BUILDER_TYPE%" neq "hyperv-iso" (
cmd /c %SystemRoot%\System32\reg.exe ADD HKCU\Software\Sysinternals\SDelete /v EulaAccepted /t REG_DWORD /d 1 /f cmd /c %SystemRoot%\System32\reg.exe ADD HKCU\Software\Sysinternals\SDelete /v EulaAccepted /t REG_DWORD /d 1 /f
cmd /c C:\Windows\Temp\sdelete.exe -q -z C: cmd /c C:\Windows\Temp\sdelete.exe -q -z C:
) )
\ No newline at end of file
...@@ -96,7 +96,8 @@ ...@@ -96,7 +96,8 @@
"type": "powershell", "type": "powershell",
"execute_command": "powershell \"& { {{.Vars}}{{.Path}}; exit $LastExitCode}\"", "execute_command": "powershell \"& { {{.Vars}}{{.Path}}; exit $LastExitCode}\"",
"scripts": [ "scripts": [
"./scripts/set-powerplan.ps1" "./scripts/set-powerplan.ps1",
"./scripts/docker/disable-windows-defender.ps1"
] ]
}, },
{ {
...@@ -106,7 +107,8 @@ ...@@ -106,7 +107,8 @@
"scripts": [ "scripts": [
"./scripts/pin-powershell.bat", "./scripts/pin-powershell.bat",
"./scripts/compile-dotnet-assemblies.bat", "./scripts/compile-dotnet-assemblies.bat",
"./scripts/set-winrm-automatic.bat" "./scripts/set-winrm-automatic.bat",
"./scripts/compact.bat"
] ]
} }
], ],
......
...@@ -135,7 +135,6 @@ ...@@ -135,7 +135,6 @@
"./scripts/docker/install-docker.ps1", "./scripts/docker/install-docker.ps1",
"./scripts/docker/open-docker-insecure-port.ps1", "./scripts/docker/open-docker-insecure-port.ps1",
"./scripts/docker/remove-docker-key-json.ps1", "./scripts/docker/remove-docker-key-json.ps1",
"./scripts/dis-updates.ps1",
"./scripts/docker/disable-windows-defender.ps1" "./scripts/docker/disable-windows-defender.ps1"
] ]
}, },
...@@ -144,7 +143,8 @@ ...@@ -144,7 +143,8 @@
"scripts": [ "scripts": [
"./scripts/uac-enable.bat", "./scripts/uac-enable.bat",
"./scripts/set-winrm-automatic.bat", "./scripts/set-winrm-automatic.bat",
"./scripts/compile-dotnet-assemblies.bat" "./scripts/compile-dotnet-assemblies.bat",
"./scripts/compact.bat"
] ]
} }
], ],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment