This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathCliLauncher.py
97 lines (77 loc) · 2.5 KB
/
CliLauncher.py
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import configparser
import keyboard
import time
import os
import webbrowser
config = configparser.ConfigParser()
configL = configparser.RawConfigParser()
write_config = configparser.ConfigParser()
config.read('WSAU.ini')
name = config['VersionInfo']['ProductName']
codename = config['VersionInfo']['Codename']
ver = config['VersionInfo']['Version']
config.read('WSAU_user.ini')
version_comp = config['System']['supported']
os.system('cls')
if(version_comp == "true"):
print('')
else:
print("It looks like you haven't check if your Windows version is compatible with Windows Subsystem for Android yet. To check, press 0.")
print(f'{name} ({ver} {codename}) command line menu')
print('')
print(
'''
[1]: Install Windows Subsystem for Android [InstallWSA]
[2]: Install APK on Windows Subsystem for Android [InstallAPK]
[3]: Install XAPK files downloaded from APKPure [InstallXAPK]
Additional options:
[A1]: Install Aurora Store
[A2]: Install Microsoft Launcher
[M]: Diagnostics
[Q]: Exit WSAUtilities
'''
)
print('')
selection = input("Please choose your selection and press ENTER: ")
if selection=="0":
os.system('cls')
exec(open("DeviceCheck.py").read())
elif selection=="1":
os.system('cls')
print(
'''
Please select where you want to download Windows Subsystem for Android:
[1]: Install through Windows Store (Recommended for highly technical users)
[2]: Download and Install through this script
'''
)
installwsasel = input("Please choose your selection and press ENTER: ")
if installwsasel=="1":
print('Opening in browser...')
webbrowser.open('https://apps.microsoft.com/store/detail/windows-subsystem-for-android%E2%84%A2-with-amazon-appstore/9P3395VX91NR')
elif installwsasel=="2":
exec(open("InstallWSA.py").read())
elif selection=="2":
exec(open("InstallAPK.py").read())
elif selection=="3":
exec(open("InstallXAPK.py").read())
elif selection=="A1":
exec(open("InstallAurora.py").read())
elif selection=="a1":
exec(open("InstallAurora.py").read())
elif selection=="A2":
os.system('cls')
exec(open("InstallMicrosoftLauncher.py").read())
elif selection=="a2":
os.system('cls')
exec(open("InstallMicrosoftLauncher.py").read())
elif selection=="M":
os.system('cls')
exec(open("Diagnostics.py").read())
elif selection=="m":
os.system('cls')
exec(open("Diagnostics.py").read())
elif selection=="Q":
quit()
elif selection=="q":
quit()