gtdcomputer
Thành viên
- Tham gia ngày
- 31/08/2015
- Bài viết
- 93
Cái đó mình có nói ở trên rồi mà. Bác ấy có làm cái update data, nhưng đôi khi nó hông hoạt động. Nên chạy bằng tay kiểu:túc la sẻvẻ up xong ma cilent vẵn chưa up đó anh
- Chạy update trên máy chủ
- Đăng xuất launcher, thoát hoàn toàn
- Chạy file Change Update Data đợi nó báo OK, lúc này trong thư mục Config sẽ có 3 thư mục, tương ứng với 3 tập tin RAR SFX ở dưới.
- Mở từng fileSFX bằng Winrar, ném thư mục tương ứng vào
Bây giờ mình làm file BAT để update file RAR (bước cuối). AE thích thì tham khảo:
Mã:
@echo off
set cur=%cd%\Config
echo %cur%
mkdir "%cur%\Backup"
del "%cur%\Backup\Config Vanguard.exe"
move "%cur%\Config Vanguard.exe" "%cur%\Backup\Config Vanguard.exe"
echo ;The comment below contains SFX script commands>"%TEMP%\SfxOptions.txt"
echo/>>"%TEMP%\SfxOptions.txt"
echo Path=%%LocalAppData%%>>"%TEMP%\SfxOptions.txt"
echo Silent=^1>>"%TEMP%\SfxOptions.txt"
echo Overwrite=^1>>"%TEMP%\SfxOptions.txt"
"%ProgramFiles%\WinRAR\Rar.exe" a -c -cfg- -ep1 -idq -m5 -mdg -r -s -sfx -y "-z%TEMP%\SfxOptions.txt" "%cur%\Config Vanguard.exe" "%cur%\SettingValorant\*"
del "%TEMP%\SfxOptions.txt"
del "%cur%\Backup\Riot Game Local.exe"
move "%cur%\Riot Game Local.exe" "%cur%\Backup\Riot Game Local.exe"
echo ;The comment below contains SFX script commands>"%TEMP%\SfxOptions2.txt"
echo/>>"%TEMP%\SfxOptions2.txt"
echo Path=C:\ProgramData>>"%TEMP%\SfxOptions2.txt"
echo Silent=^1>>"%TEMP%\SfxOptions2.txt"
echo Overwrite=^1>>"%TEMP%\SfxOptions2.txt"
"%ProgramFiles%\WinRAR\Rar.exe" a -c -cfg- -ep1 -idq -m5 -mdg -r -s -sfx -y "-z%TEMP%\SfxOptions2.txt" "%cur%\Riot Game Local.exe" "%cur%\ProgramData\*"
del "%TEMP%\SfxOptions2.txt"
del "%cur%\Backup\Riot Games Config.exe"
move "%cur%\Riot Games Config.exe" "%cur%\Backup\Riot Games Config.exe"
echo ;The comment below contains SFX script commands>"%TEMP%\SfxOptions3.txt"
echo/>>"%TEMP%\SfxOptions3.txt"
echo Path=%%LocalAppData%%>>"%TEMP%\SfxOptions3.txt"
echo Silent=^1>>"%TEMP%\SfxOptions3.txt"
echo Overwrite=^1>>"%TEMP%\SfxOptions3.txt"
"%ProgramFiles%\WinRAR\Rar.exe" a -c -cfg- -ep1 -idq -m5 -mdg -r -s -sfx -y "-z%TEMP%\SfxOptions3.txt" "%cur%\Riot Games Config.exe" "%cur%\AppDataLocal\*"
del "%TEMP%\SfxOptions3.txt"