Skip to content

Commit

Permalink
Fix VirtualBox Addition installation to support VirtualBox >= 4.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
reuveniy authored and ngiger committed Aug 3, 2014
1 parent 3b5b3bd commit 2507bdc
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
e:\VBoxWindowsAdditions-amd64.exe /S
if exist e:\cert\VBoxCertUtil (
cmd /c e:\cert\VBoxCertUtil add-trusted-publisher e:\cert\oracle-vbox.cer --root e:\cert\oracle-vbox.cer
) else (
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
)
cmd /c e:\VBoxWindowsAdditions-amd64.exe /S
cmd /c shutdown.exe /r /t 5 /d p:2:4 /c "Vagrant reboot for VBoxWindowsAdditions"
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
e:\VBoxWindowsAdditions-x86.exe /S
if exist e:\cert\VBoxCertUtil (
cmd /c e:\cert\VBoxCertUtil add-trusted-publisher e:\cert\oracle-vbox.cer --root e:\cert\oracle-vbox.cer
) else (
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
)
cmd /c e:\VBoxWindowsAdditions-x86.exe /S
cmd /c shutdown.exe /r /t 5 /d p:2:4 /c "Vagrant reboot for VBoxWindowsAdditions"
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
e:\VBoxWindowsAdditions-amd64.exe /S
if exist e:\cert\VBoxCertUtil (
cmd /c e:\cert\VBoxCertUtil add-trusted-publisher e:\cert\oracle-vbox.cer --root e:\cert\oracle-vbox.cer
) else (
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
)
cmd /c e:\VBoxWindowsAdditions-amd64.exe /S
cmd /c shutdown.exe /r /t 5 /d p:2:4 /c "Vagrant reboot for VBoxWindowsAdditions"
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
if exist e:\cert\VBoxCertUtil (
cmd /c e:\cert\VBoxCertUtil add-trusted-publisher e:\cert\oracle-vbox.cer --root e:\cert\oracle-vbox.cer
) else (
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
)
cmd /c e:\VBoxWindowsAdditions-amd64.exe /S
cmd /c shutdown.exe /r /t 5 /d p:2:4 /c "Vagrant reboot for VBoxWindowsAdditions"
10 changes: 8 additions & 2 deletions templates/windows-2008R2-serverweb-amd64/install-vbox-guest.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
e:\VBoxWindowsAdditions-amd64.exe /S
if exist e:\cert\VBoxCertUtil (
cmd /c e:\cert\VBoxCertUtil add-trusted-publisher e:\cert\oracle-vbox.cer --root e:\cert\oracle-vbox.cer
) else (
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
)
cmd /c e:\VBoxWindowsAdditions-amd64.exe /S
cmd /c shutdown.exe /r /t 5 /d p:2:4 /c "Vagrant reboot for VBoxWindowsAdditions"

Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
e:\VBoxWindowsAdditions-amd64.exe /S
if exist e:\cert\VBoxCertUtil (
cmd /c e:\cert\VBoxCertUtil add-trusted-publisher e:\cert\oracle-vbox.cer --root e:\cert\oracle-vbox.cer
) else (
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
)
cmd /c e:\VBoxWindowsAdditions-amd64.exe /S
cmd /c shutdown.exe /r /t 5 /d p:2:4 /c "Vagrant reboot for VBoxWindowsAdditions"
6 changes: 5 additions & 1 deletion templates/windows-2012-serverstandard-amd64/install-vbox.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
if exist e:\cert\VBoxCertUtil (
cmd /c e:\cert\VBoxCertUtil add-trusted-publisher e:\cert\oracle-vbox.cer --root e:\cert\oracle-vbox.cer
) else (
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
)
cmd /c e:\VBoxWindowsAdditions-amd64.exe /S
cmd /c shutdown.exe /r /t 5 /d p:2:4 /c "Vagrant reboot for VBoxWindowsAdditions"

Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
if exist e:\cert\VBoxCertUtil (
cmd /c e:\cert\VBoxCertUtil add-trusted-publisher e:\cert\oracle-vbox.cer --root e:\cert\oracle-vbox.cer
) else (
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
)
cmd /c e:\VBoxWindowsAdditions-amd64.exe /S
cmd /c shutdown.exe /r /t 5 /d p:2:4 /c "Vagrant reboot for VBoxWindowsAdditions"

9 changes: 6 additions & 3 deletions templates/windows-7-enterprise-amd64-winrm/install-vbox.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
if exist e:\cert\VBoxCertUtil (
cmd /c e:\cert\VBoxCertUtil add-trusted-publisher e:\cert\oracle-vbox.cer --root e:\cert\oracle-vbox.cer
) else (
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
)
cmd /c e:\VBoxWindowsAdditions-amd64.exe /S

shutdown /r /t 2 /c "Install Virtualbox Guest Additions Reboot" /f /d p:4:1
cmd /c shutdown.exe /r /t 5 /d p:2:4 /c "Vagrant reboot for VBoxWindowsAdditions"
9 changes: 7 additions & 2 deletions templates/windows-7-enterprise-amd64/install-vbox-guest.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
e:\VBoxWindowsAdditions-amd64.exe /S
if exist e:\cert\VBoxCertUtil (
cmd /c e:\cert\VBoxCertUtil add-trusted-publisher e:\cert\oracle-vbox.cer --root e:\cert\oracle-vbox.cer
) else (
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
)
cmd /c e:\VBoxWindowsAdditions-amd64.exe /S
cmd /c shutdown.exe /r /t 5 /d p:2:4 /c "Vagrant reboot for VBoxWindowsAdditions"

0 comments on commit 2507bdc

Please sign in to comment.