From 00bb66a7d91edf872b7dc8a295c221ca72225cc9 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 21 Dec 2023 16:40:39 +0100 Subject: [PATCH] fix deceive installation (finally) --- windows11.bat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/windows11.bat b/windows11.bat index 57f8cd1..eb87d3f 100644 --- a/windows11.bat +++ b/windows11.bat @@ -271,18 +271,18 @@ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\vry" /f /v Ins :: Install Deceive ECHO Deceive... -MKDIR "%ProgramFiles%\Deceive" 2>NUL +MKDIR "%LOCALAPPDATA%\Deceive" 2>NUL PowerShell -Command "" ^ "$exe = 'Deceive.exe';" ^ "$link = 'https://github.com/molenzwiebel/Deceive/releases/latest/download/' + $exe;" ^ - "$outfile = Join-Path -Path '%ProgramFiles%\Deceive' -ChildPath $exe;" ^ - "Invoke-WebRequest -Uri $link -OutFile '$outfile';" ^ + "$outfile = Join-Path -Path '%LOCALAPPDATA%\Deceive' -ChildPath $exe;" ^ + "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ "$WshShell = New-Object -comObject WScript.Shell;" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Deceive.lnk');" ^ "$Shortcut.TargetPath = $outfile;" ^ "$Shortcut.Save()" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v DisplayName /t REG_SZ /d "Deceive" -REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Deceive" +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\Deceive" :: :: Install Topgrade :: ECHO Topgrade...