diff --git a/functions/ToolScripts/emuDeckPlugins.ps1 b/functions/ToolScripts/emuDeckPlugins.ps1 index 1e1b17a3..c66cb0d2 100644 --- a/functions/ToolScripts/emuDeckPlugins.ps1 +++ b/functions/ToolScripts/emuDeckPlugins.ps1 @@ -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" @@ -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 @@ -44,7 +44,6 @@ function Plugins_installEmuDecky(){ echo "true" - } function Plugins_installDeckyRomLibrary(){ diff --git a/uninstall.ps1 b/uninstall.ps1 index 042704e9..9b07e72a 100644 --- a/uninstall.ps1 +++ b/uninstall.ps1 @@ -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 @@ -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 {