-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
103 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | ||
# | ||
|
||
|
||
UNAME_S := $(shell uname -s) | ||
|
||
ifneq ($(findstring _NT-, $(UNAME_S)),) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
@echo off | ||
REM =========================================================== | ||
REM uninstall_windows.bat | ||
REM | ||
REM Written by Renato Fermi <repiazza@gmail.com> in March 2024 | ||
REM | ||
REM Script to uninstall Cattie | ||
REM | ||
REM =========================================================== | ||
|
||
REM Use PowerShell to get the My Documents folder path | ||
for /f "usebackq tokens=*" %%a in (`powershell -Command "[Environment]::GetFolderPath('MyDocuments')"`) do set "baseDir=%%a\cattie" | ||
|
||
set "shortcutName=%APPDATA%\Microsoft\Windows\Start Menu\Programs\cattie.lnk" | ||
|
||
REM Checking if user is running as administrator | ||
NET SESSION >nul 2>&1 | ||
if %errorLevel% NEQ 0 ( | ||
echo This script must be run as Administrator | ||
exit /b 1 | ||
) | ||
|
||
echo. | ||
echo ####################### | ||
echo # Uninstalling cattie # | ||
echo ####################### | ||
|
||
REM Remove the app directory and all its contents | ||
if exist "%baseDir%" ( | ||
rmdir /s /q "%baseDir%" | ||
echo Removed cattie directory from My Documents. | ||
) else ( | ||
echo Cattie directory not found. | ||
) | ||
|
||
REM Remove the shortcut | ||
if exist "%shortcutName%" ( | ||
del /f /q "%shortcutName%" | ||
echo Removed cattie shortcut. | ||
) else ( | ||
echo Cattie shortcut not found. | ||
) | ||
|
||
echo. | ||
echo Cattie was uninstalled successfully! | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters