summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Williamson <grant.williamson@gmail.com>2012-03-07 11:38:12 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2012-03-13 18:14:47 +0100
commit507f8233da8b9e8142db4a0db662e5ec081cca1a (patch)
tree1b4bc6bed0299dd387d3871b9e2597a895e47e68
parente305ceb2194051e052ad8ac3555e5acffd8f980c (diff)
Only install the drivers on KVM gueststraxmac
-rw-r--r--spice-guest-tools.nsis9
1 files changed, 9 insertions, 0 deletions
diff --git a/spice-guest-tools.nsis b/spice-guest-tools.nsis
index db012f9..30c5f2b 100644
--- a/spice-guest-tools.nsis
+++ b/spice-guest-tools.nsis
@@ -168,6 +168,15 @@ Function .onInit
MessageBox MB_ICONEXCLAMATION "Drivers only available for Windows XP or newer"
Abort ; causes installer to quit.
${endif}
+ SetOutPath "$TEMP"
+ File "../redhat/virt-what-cpuid-helper.exe"
+ File "../redhat/virt-what-cpuid-helper.bat"
+ nsExec::ExecToStack "$TEMP\virt-what-cpuid-helper.bat"
+ Pop $0
+ ${if} $0 == 1
+ MessageBox MB_ICONEXCLAMATION "You may only install these drivers in a Windows guest running as a KVM Virtual Image!"
+ Abort ; causes installer to quit.
+ ${EndIf}
FunctionEnd
Function GetDriverSubdir