VirtualBox

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

Last change on this file since 96697 was 96407, checked in by vboxsync, 22 months ago

scm copyright and license note update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 2.4 KB
Line 
1; $Id: VBoxWHQLFake.au3 96407 2022-08-22 17:43:14Z vboxsync $
2;; @file
3; VBoxFakeWHQL - Turns off / on the WHQL for installing unsigned drivers.
4; Currently only tested with Win2K / XP!
5;
6
7;
8; Copyright (C) 2008-2022 Oracle and/or its affiliates.
9;
10; This file is part of VirtualBox base platform packages, as
11; available from https://www.virtualbox.org.
12;
13; This program is free software; you can redistribute it and/or
14; modify it under the terms of the GNU General Public License
15; as published by the Free Software Foundation, in version 3 of the
16; License.
17;
18; This program is distributed in the hope that it will be useful, but
19; WITHOUT ANY WARRANTY; without even the implied warranty of
20; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21; General Public License for more details.
22;
23; You should have received a copy of the GNU General Public License
24; along with this program; if not, see <https://www.gnu.org/licenses>.
25;
26; SPDX-License-Identifier: GPL-3.0-only
27;
28
29; Strings for localization
30; When using an OS with another language, you have to provide the correct
31; strings for it. English and German is provided below.
32;
33; @todo Needs to be improved to handle the stuff without language strings in
34; the future!
35
36;$sysprop_Title = "System Properties"
37;$drvsig_Title = "Driver Signing Options"
38
39$sysprop_Title = "Systemeigenschaften"
40$drvsig_Title = "Treibersignaturoptionen"
41
42$ok_Title = "OK"
43
44If $CmdLine[0] < 1 Then
45 MsgBox ( 0, "ERROR", "Please specify 'ignore', 'warn' or 'block' as parameter!" )
46 Exit
47EndIf
48
49Run("control.exe sysdm.cpl")
50If WinWait($sysprop_Title, "", 5) = 0 Then
51 WinClose("[ACTIVE]", "")
52 Exit
53EndIf
54
55ControlCommand($sysprop_Title, "", "SysTabControl321", "TabRight", "")
56ControlCommand($sysprop_Title, "", "SysTabControl321", "TabRight", "")
57
58Sleep(200) ; Wait a while for tab switching above
59ControlClick($sysprop_Title, "", 14007) ; Button 'Driver Signing'
60
61WinWait($drvsig_Title, "", 5)
62
63If $CmdLine[1] = "ignore" Then
64 ControlClick($drvsig_Title, "", 1000) ; 'Ignore' radio button
65ElseIf $CmdLine[1] = "warn" Then
66 ControlClick($drvsig_Title, "", 1001) ; 'Warn' radio button
67ElseIf $CmdLine[1] = "block" Then
68 ControlClick($drvsig_Title, "", 1002) ; 'Block' radio button
69Else
70 Exit
71EndIf
72
73ControlClick($drvsig_Title, "", 1) ; 'OK' button (ID=1) of dialog 'Driver Signing Options'
74
75WinWait($sysprop_Title, "", 5)
76ControlClick($sysprop_Title, "", 1) ; 'OK' button (ID=1) of 'System Properties'
77
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use