This repository was archived by the owner on Nov 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
53 lines (43 loc) · 1.79 KB
/
main.py
File metadata and controls
53 lines (43 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import os
import ctypes
from modules.download import bluetooth, IMED, IntelVGA, NvidiaVGA, TP, LAN, Chipset, Chipset2, Chipset3
from modules.install import ibluetooth, iIMED, iIntelVGA, iNvidiaVGA, iTP, iLAN, iChipset, iChipset2, iChipset3
def start():
print("""
**********************************************************
\033[31m Install Wifi drivers before using program (1)\033[0m
**********************************************************
""")
print("""
1. Install WIFI drivers
2. Download & Install drivers
3. Download Drivers
4. \033[31mInstall one driver [✘]\033[0m
""")
ask = int(input("Choose action: "))
if ask == 1:
os.system("pnputil /add-driver Wifi\\Netwtw04.INF /install")
os.system("pnputil /add-driver Wifi\\Netwtw06.INF /install")
os.system("pnputil /add-driver Wifi\\Netwtw6e.INF /install")
os.system("pnputil /add-driver Wifi\\Netwtw08.INF /install")
os.system("cls")
start()
elif ask == 2:
os.system("cls")
bluetooth(), IMED(), TP(), Chipset(), Chipset2(), Chipset3(), LAN(), IntelVGA(), NvidiaVGA()
ibluetooth(), iIMED(), iTP(), iChipset(), iChipset2(), iChipset3(), iLAN(), iIntelVGA(), iNvidiaVGA()
elif ask == 3:
os.system("cls")
bluetooth(), IMED(), TP(), Chipset(), Chipset2(), Chipset3(), LAN(), IntelVGA(), NvidiaVGA()
input("All downloaded...")
elif ask == 4:
os.system("cls")
start()
if ctypes.windll.shell32.IsUserAnAdmin():
start()
else:
print("""
****************************************************
PLEASE RUN PROGRAM AS ADMINISTRATOR!
****************************************************
""")