fix deceive installation (finally)

This commit is contained in:
Mylloon 2023-12-21 16:40:39 +01:00
parent 3c4ebc476e
commit 00bb66a7d9
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -271,18 +271,18 @@ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\vry" /f /v Ins
:: Install Deceive :: Install Deceive
ECHO Deceive... ECHO Deceive...
MKDIR "%ProgramFiles%\Deceive" 2>NUL MKDIR "%LOCALAPPDATA%\Deceive" 2>NUL
PowerShell -Command "" ^ PowerShell -Command "" ^
"$exe = 'Deceive.exe';" ^ "$exe = 'Deceive.exe';" ^
"$link = 'https://github.com/molenzwiebel/Deceive/releases/latest/download/' + $exe;" ^ "$link = 'https://github.com/molenzwiebel/Deceive/releases/latest/download/' + $exe;" ^
"$outfile = Join-Path -Path '%ProgramFiles%\Deceive' -ChildPath $exe;" ^ "$outfile = Join-Path -Path '%LOCALAPPDATA%\Deceive' -ChildPath $exe;" ^
"Invoke-WebRequest -Uri $link -OutFile '$outfile';" ^ "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^ "$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Deceive.lnk');" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Deceive.lnk');" ^
"$Shortcut.TargetPath = $outfile;" ^ "$Shortcut.TargetPath = $outfile;" ^
"$Shortcut.Save()" "$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 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 :: :: Install Topgrade
:: ECHO Topgrade... :: ECHO Topgrade...