Skip to content

Commit a7a9582

Browse files
PjortRadNotRed
andauthored
feat: remove python aliases script
### Description Adds a script to remove Python Store execution aliases, addressing issue #1020. ### Changes Made - Added `Remove Python Store Prompt.cmd` script that: - Removes python.exe and python3.exe executables from WindowsApps directory - Removes 'python' and 'python3' PowerShell aliases - Prevents unwanted Windows Store prompts when Python is already installed ### Testing ✔️ Script has been tested and successfully: - Removes Python executables from WindowsApps directory - Removes Python aliases if they exist - Handles cases where files/aliases don't exist gracefully ### Related Issue Fixes #1020 --------- Co-authored-by: rad <[email protected]>
1 parent ae8c153 commit a7a9582

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@echo off
2+
3+
echo Attempting to remove Python executables from WindowsApps...
4+
powershell -NoProfile -ExecutionPolicy Bypass -Command "Remove-Item -Path \"$env:LOCALAPPDATA\Microsoft\WindowsApps\python*.exe\" -Force -ErrorAction SilentlyContinue; if (Test-Path Alias:python) { Remove-Item Alias:python }; if (Test-Path Alias:python3) { Remove-Item Alias:python3 }"
5+
6+
echo -----------------------------------------
7+
echo Cleanup completed.
8+
pause
9+
exit /b

0 commit comments

Comments
 (0)