From 507f8233da8b9e8142db4a0db662e5ec081cca1a Mon Sep 17 00:00:00 2001 From: Grant Williamson Date: Wed, 7 Mar 2012 11:38:12 +0100 Subject: Only install the drivers on KVM guests --- spice-guest-tools.nsis | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3