summaryrefslogtreecommitdiff
path: root/spice-guest-tools.nsis
diff options
context:
space:
mode:
Diffstat (limited to 'spice-guest-tools.nsis')
-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