forked from EmuDeck/emudeck-we
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall.ps1
24 lines (22 loc) · 907 Bytes
/
uninstall.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
. "$env:APPDATA\EmuDeck\backend\functions\all.ps1"
$result = yesNoDialog -TitleText "EmuDeck uninstall" -MessageText "Hi! Are you sure you want to uninstall EmuDeck? If you are having issues do a Custom Reset, if that doesn't fix your issue visit the EmuDeck Discord or Reddit for support. For links, see: https://www.emudeck.com/#download" -OKButtonText "Uninstall" -CancelButtonText "Cancel"
if ($result -eq "OKButton") {
#Decky
taskkill /IM decky-loader-win.exe /F
#Steam Input
SRM_removeSteamInputProfiles
#Cloud service
cloud_sync_uninstall_service
#Emulation folder.
rm -fo -r "$toolsPath"
#Launchers
rm -fo -r "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\EmuDeck"
#Backend
rm -fo -r "$env:APPDATA\EmuDeck"
rm -fo -r "$env:USERPROFILE\EmuDeck"
rm -fo -r
#App
& "$env:USERPROFILE\AppData\Local\Programs\EmuDeck\Uninstall EmuDeck.exe"
} else {
echo "Nope"
}