VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Installer/VBoxWHQLFake.au3@ 31634

Last change on this file since 31634 was 31634, checked in by vboxsync, 14 years ago

Windows Additions: export shared folders and installer to OSE

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
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
25If $CmdLine[0] < 1 Then
26 MsgBox ( 0, "ERROR", "Please specify 'ignore', 'warn' or 'block' as parameter!" )
27 Exit
28EndIf
29
30Run("control.exe sysdm.cpl")
31If WinWait($sysprop_Title, "", 5) = 0 Then
32 WinClose("[ACTIVE]", "")
33 Exit
34EndIf
35
36ControlCommand($sysprop_Title, "", "SysTabControl321", "TabRight", "")
37ControlCommand($sysprop_Title, "", "SysTabControl321", "TabRight", "")
38
39Sleep(200) ; Wait a while for tab switchig above
40ControlClick($sysprop_Title, "", 14007) ; Button 'Driver Signing'
41
42WinWait($drvsig_Title, "", 5)
43
44If $CmdLine[1] = "ignore" Then
45 ControlClick($drvsig_Title, "", 1000) ; 'Ignore' radio button
46ElseIf $CmdLine[1] = "warn" Then
47 ControlClick($drvsig_Title, "", 1001) ; 'Warn' radio button
48ElseIf $CmdLine[1] = "block" Then
49 ControlClick($drvsig_Title, "", 1002) ; 'Block' radio button
50Else
51 Exit
52EndIf
53
54ControlClick($drvsig_Title, "", 1) ; 'OK' button (ID=1) of dialog 'Driver Signing Options'
55
56WinWait($sysprop_Title, "", 5)
57ControlClick($sysprop_Title, "", 1) ; 'OK' button (ID=1) of 'System Properties'
58
59
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette