Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Bob Tanner
packer-windows
Commits
814a1bbe
Commit
814a1bbe
authored
Nov 07, 2016
by
Stefan Scherer
Browse files
Cleanup
parent
f03a1ae6
Changes
3
Hide whitespace changes
Inline
Side-by-side
scripts/compact.bat
View file @
814a1bbe
...
@@ -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
windows_10.json
View file @
814a1bbe
...
@@ -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"
]
]
}
}
],
],
...
...
windows_2016_docker.json
View file @
814a1bbe
...
@@ -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"
]
]
}
}
],
],
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment