-
Notifications
You must be signed in to change notification settings - Fork 61
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
1 parent
31f125c
commit 2f035fd
Showing
7 changed files
with
122 additions
and
10 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
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,31 @@ | ||
@echo off | ||
|
||
if "%xtd_version%"== "" ( | ||
echo ERROR : Use uninstall.cmd from root folder | ||
exit /B 1 | ||
) | ||
|
||
echo Uninstall xtd libraries version %xtd_version%, copyright Gammasoft, 2022 | ||
echo. | ||
|
||
:: check if administrator mode | ||
whoami /Groups | find "12288" > nul 2>&1 | ||
if %ERRORLEVEL% neq 0 ( | ||
echo You are not in administrator mode! | ||
echo Run cmd as administrator before execute install. | ||
exit /B 1 | ||
) | ||
|
||
echo WARNING : You will unsinstall xtd. | ||
echo Press ENTER to continue or CTRL-C to stop... | ||
pause > nul 2>&1 | ||
|
||
echo Removing wxwidgets files... | ||
del /F /S /Q "%ProgramFiles(x86)%\wxwidgets" > nul 2>&1 | ||
echo Removing xtd files... | ||
del /F /S /Q "%ProgramFiles(x86)%\xtd" > nul 2>&1 | ||
del /F /S /Q "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\xtd" > nul 2>&1 | ||
|
||
echo. | ||
echo xtd is uninstalled. | ||
echo If you want to use xtd again, you will have to reinstall it. |
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,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -z ${xtd_version+x} ]; then | ||
echo "ERROR : Use ./uninstall from root folder" | ||
exit 1 | ||
fi | ||
|
||
echo "Uninstall xtd libraries version $xtd_version, copyright Gammasoft, 2022" | ||
echo "" | ||
|
||
echo "WARNING : You will unsinstall xtd." | ||
read -p "Press ENTER to continue or CTRL-C to stop..." | ||
|
||
manifest_files=("/usr/local/share/xtd/wxwidgets_release_install_manifest.txt" "/usr/local/share/xtd/wxwidgets_debug_install_manifest.txt" "/usr/local/share/xtd/xtd_release_install_manifest.txt" "/usr/local/share/xtd/xtd_debug_install_manifest.txt") | ||
|
||
# removing files | ||
for manifest_file in ${manifest_files[@]}; do | ||
if test -f "$manifest_file"; then | ||
input="$manifest_file" | ||
while IFS= read -r line; do | ||
sudo echo "Removing \"$line\"..." | ||
sudo rm -f "$line" >/dev/null 2>&1 | ||
done < "$input" | ||
sudo echo "Removing \"$manifest_file\"..." | ||
sudo rm -f "$manifest_file" >/dev/null 2>&1 | ||
fi | ||
done | ||
|
||
echo "" | ||
echo "xtd is uninstalled." | ||
echo "If you want to use xtd again, you will have to reinstall it." |
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,7 @@ | ||
#!/usr/bin/env bash | ||
# This code was generated by CMake script. | ||
# | ||
# Changes to this file may cause incorrect behavior and will be lost if the file is regenerated. | ||
|
||
export xtd_version=0.2.0 | ||
scripts/install/uninstall.sh "$@" |
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,7 @@ | ||
@echo off | ||
:: This code was generated by CMake script. | ||
:: | ||
:: Changes to this file may cause incorrect behavior and will be lost if the file is regenerated. | ||
|
||
set xtd_version=0.2.0 | ||
call scripts\install\uninstall.cmd %* |