Add FiveM

This commit is contained in:
Mylloon 2024-04-11 21:55:48 +02:00
parent dfa5a386af
commit dbb260eb3e
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -396,6 +396,22 @@ PowerShell -Command "" ^
"Start-Process -Wait $outFile '/SUPPRESSMSGBOXES', '/VERYSILENT';" ^ "Start-Process -Wait $outFile '/SUPPRESSMSGBOXES', '/VERYSILENT';" ^
"Remove-Item -Force $outFile" "Remove-Item -Force $outFile"
:: === FiveM ==
ECHO FiveM...
PowerShell -Command "" ^
"$baselink = 'https://runtime.fivem.net/client';" ^
"$exe = 'FiveM.exe';" ^
"$path = \"$env:LOCALAPPDATA\FiveM\";" ^
"$outFile = Join-Path -Path $path -ChildPath $exe;" ^
"Invoke-WebRequest -Uri \"https://runtime.fivem.net/client/$exe\" -OutFile $outFile;" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\FiveM.lnk');" ^
"$Shortcut.WorkingDirectory = \"$path\";" ^
"$Shortcut.TargetPath = $outFile;" ^
"$Shortcut.Save()"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\fivem" /f /v DisplayName /t REG_SZ /d "FiveM"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\fivem" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\FiveM"
:: === DaVinci Resolve == :: === DaVinci Resolve ==
ECHO Lien utile pour télécharger la dernière version de DaVinci Resolve : ECHO Lien utile pour télécharger la dernière version de DaVinci Resolve :