Skip to content

Commit fd9c264

Browse files
authored
Add files via upload
1 parent 3e69a92 commit fd9c264

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Ace-Ventura-Overlay/Get-Aced.ps1

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
$pythonPath = Join-Path $env:LOCALAPPDATA "Programs\Python"
2+
3+
if (Test-Path -Path $pythonPath) {
4+
} else {
5+
6+
$installerUrl = "https://www.python.org/ftp/python/3.10.0/python-3.10.0-amd64.exe"
7+
8+
$installerPath = Join-Path $env:TEMP "python_installer.exe"
9+
Invoke-WebRequest -Uri $installerUrl -OutFile $installerPath
10+
11+
Start-Process -FilePath $installerPath -Args "/quiet InstallAllUsers=1 PrependPath=1" -Wait
12+
13+
Remove-Item -Path $installerPath
14+
15+
}
16+
17+
$scriptUrl = "https://raw.githubusercontent.com/calinux-py/Python/main/Overlay-AceVentura/Overlay-Ace.py"
18+
19+
$scriptPath = Join-Path $env:TEMP "Overlay-Ace.py"
20+
21+
Invoke-WebRequest -Uri $scriptUrl -OutFile $scriptPath
22+
23+
try {
24+
Start-Process -FilePath "pip" -Args "install pyautogui keyboard" -NoNewWindow -Wait
25+
} catch {
26+
Start-Process -FilePath "pip3" -Args "install pyautogui keyboard" -NoNewWindow -Wait
27+
}
28+
29+
try {
30+
& python $scriptPath
31+
} catch {
32+
& python3 $scriptPath
33+
}
34+

0 commit comments

Comments
 (0)