1 | ; VBoxFakeWHQL - Turns off / on the WHQL for installing unsigned drivers.
|
---|
2 | ; Currently only tested with Win2K / XP!
|
---|
3 | ;
|
---|
4 | ; Copyright (C) 2008-2010 Oracle Corporation
|
---|
5 | ;
|
---|
6 | ; Oracle Corporation confidential
|
---|
7 | ; All rights reserved
|
---|
8 | ;
|
---|
9 |
|
---|
10 | ; Strings for localization
|
---|
11 | ; When using an OS with another language, you have to provide the correct
|
---|
12 | ; strings for it. English and German is provided below.
|
---|
13 | ;
|
---|
14 | ; @todo Needs to be improved to handle the stuff without language strings in
|
---|
15 | ; the future!
|
---|
16 |
|
---|
17 | ;$sysprop_Title = "System Properties"
|
---|
18 | ;$drvsig_Title = "Driver Signing Options"
|
---|
19 |
|
---|
20 | $sysprop_Title = "Systemeigenschaften"
|
---|
21 | $drvsig_Title = "Treibersignaturoptionen"
|
---|
22 |
|
---|
23 | $ok_Title = "OK"
|
---|
24 |
|
---|
25 | If $CmdLine[0] < 1 Then
|
---|
26 | MsgBox ( 0, "ERROR", "Please specify 'ignore', 'warn' or 'block' as parameter!" )
|
---|
27 | Exit
|
---|
28 | EndIf
|
---|
29 |
|
---|
30 | Run("control.exe sysdm.cpl")
|
---|
31 | If WinWait($sysprop_Title, "", 5) = 0 Then
|
---|
32 | WinClose("[ACTIVE]", "")
|
---|
33 | Exit
|
---|
34 | EndIf
|
---|
35 |
|
---|
36 | ControlCommand($sysprop_Title, "", "SysTabControl321", "TabRight", "")
|
---|
37 | ControlCommand($sysprop_Title, "", "SysTabControl321", "TabRight", "")
|
---|
38 |
|
---|
39 | Sleep(200) ; Wait a while for tab switchig above
|
---|
40 | ControlClick($sysprop_Title, "", 14007) ; Button 'Driver Signing'
|
---|
41 |
|
---|
42 | WinWait($drvsig_Title, "", 5)
|
---|
43 |
|
---|
44 | If $CmdLine[1] = "ignore" Then
|
---|
45 | ControlClick($drvsig_Title, "", 1000) ; 'Ignore' radio button
|
---|
46 | ElseIf $CmdLine[1] = "warn" Then
|
---|
47 | ControlClick($drvsig_Title, "", 1001) ; 'Warn' radio button
|
---|
48 | ElseIf $CmdLine[1] = "block" Then
|
---|
49 | ControlClick($drvsig_Title, "", 1002) ; 'Block' radio button
|
---|
50 | Else
|
---|
51 | Exit
|
---|
52 | EndIf
|
---|
53 |
|
---|
54 | ControlClick($drvsig_Title, "", 1) ; 'OK' button (ID=1) of dialog 'Driver Signing Options'
|
---|
55 |
|
---|
56 | WinWait($sysprop_Title, "", 5)
|
---|
57 | ControlClick($sysprop_Title, "", 1) ; 'OK' button (ID=1) of 'System Properties'
|
---|
58 |
|
---|
59 |
|
---|