From dbb260eb3eab5654fc770b0a7c20487c6515bf3c Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 11 Apr 2024 21:55:48 +0200 Subject: [PATCH] Add FiveM --- windows11.bat | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/windows11.bat b/windows11.bat index 152d696..4cfc4a0 100644 --- a/windows11.bat +++ b/windows11.bat @@ -396,6 +396,22 @@ PowerShell -Command "" ^ "Start-Process -Wait $outFile '/SUPPRESSMSGBOXES', '/VERYSILENT';" ^ "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 == ECHO Lien utile pour télécharger la dernière version de DaVinci Resolve :