Skip to content

Commit

Permalink
uninstall decky loader
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Nov 1, 2024
1 parent 66d23f2 commit 9f9f36e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 3 additions & 4 deletions functions/ToolScripts/emuDeckPlugins.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ function Plugins_installPluginLoader(){

$url = getLatestReleaseURLGH 'emudeck/decky-loader-win' 'exe' '_noconsole'
download $url "decky-loader-win.exe"
cp "$temp/decky-loader-win.exe" "$toolsPath"

Move-Item -Path "$temp/decky-loader-win.exe" -Destination "$toolsPath" -Force

$scriptContent = @"
#Move-Item -Path "$temp/decky-loader-win.exe" -Destination "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup" -Force
$appPath = ""$toolsPath\decky-loader-win.exe"
$appPath = "$toolsPath\decky-loader-win.exe"
# Define la clave de registro para el inicio
$regPath = "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run"
Expand All @@ -27,6 +26,7 @@ $appName = "Decky Loader"
# Agrega la aplicación al inicio en el Registro
Set-ItemProperty -Path $regPath -Name $appName -Value $appPath
"@
taskkill /IM decky-loader-win.exe /F
startScriptWithAdmin -ScriptContent $scriptContent
mkdir "$HOME/homebrew/plugins" -ErrorAction SilentlyContinue
Start-Process "$toolsPath\decky-loader-win.exe" -ErrorAction SilentlyContinue
Expand All @@ -44,7 +44,6 @@ function Plugins_installEmuDecky(){
echo "true"



}

function Plugins_installDeckyRomLibrary(){
Expand Down
3 changes: 3 additions & 0 deletions uninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
$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
Expand All @@ -14,6 +16,7 @@ $result = yesNoDialog -TitleText "EmuDeck uninstall" -MessageText "Hi! Are you s
#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 {
Expand Down

0 comments on commit 9f9f36e

Please sign in to comment.