Sunday, October 15, 2023

Set Chrome Portable as Default Browser for Windows 10

 - To set Portable Chrome as default browser you need to run the following VBscript :

'Registers Google Chrome Portable with Default Programs or Default Apps in Windows
'chromeportable.vbs - created on May 20, 2019 by Ramesh Srinivasan, Winhelponline.com
'v1.1 13-June-2019 - Enclosed file name parameter in double-quotes.
'v1.2 10-Sept-2020 - Fixed ApplicationIcon path. And added other supported URL protocols.
'v1.3 23-July-2022 - Minor bug fixes.

Option Explicit
Dim sAction, sAppPath, sExecPath, objFile, oFSO, sbaseKey, sbaseKey2, ArrKeys, regkey
Dim WshShell : Set WshShell = CreateObject("WScript.Shell")
Dim oFS0 : Set oFSO = CreateObject("Scripting.FileSystemObject")

Set objFile = oFSO.GetFile(WScript.ScriptFullName)
sAppPath = oFSO.GetParentFolderName(objFile)
sExecPath = sAppPath & "\GoogleChromePortable.exe"

Monday, July 3, 2023

Enable Long Paths in Windows 10

 Open regedit, and go to this key :

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem] "LongPathsEnabled"=dword:00000001

Then change the value of "LongPathsEnabled" from 0 to 1. Then reboot your PC.

Tuesday, June 20, 2023

Lost Saga Origin Vfun Launcher

Create batch file inside Vfun folder and copy paste the following script :

@echo off
reg export HKEY_CURRENT_USER\SOFTWARE\Valofe vfun.reg /y
exit

Then save it as "Update registry vfun.bat"

Create another batch file inside Vfun folder and copy paste the following script

@echo off
regedit /s vfun.reg
start "" RegAsm.exe loginSNS.dll /silent
start "" "VFUNLauncher.exe
exit

Then save it as "Vfun_launcher.bat". Use it as Launcher for client.

Wednesday, March 29, 2023

Thursday, February 16, 2023

EA App Diskless Launcher

- First cut folder "C:\Program Files\Electronic Arts", then paste in your game drive.

- Then cut %LocalAppData%\Nvidia , then paste it in Electronic Arts folder you moved.

- Create batch file and rename it to "Update registry EA.bat". Then copy the following script :

@echo off
reg export HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EABackgroundService reg1.reg
reg export "HKEY_CURRENT_USER\SOFTWARE\Electronic Arts" reg2.reg
reg export "HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts" reg3.reg
reg export "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Electronic Arts" reg4.reg
reg export HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Respawn reg5.reg
reg export HKEY_LOCAL_MACHINE\SOFTWARE\Respawn reg6.reg
copy /Y reg*.reg final.reg
del reg*.reg
exit

- Then create another batch file and rename it to "EA_Launcher.bat"  Then copy the following script :

@echo off
set batdir=%~dp0
regedit /s final.reg
mklink /J "C:\Program Files\Electronic Arts" "%~dp0"
rmdir /S /Q %LocalAppData%\Nvidia
mklink /J "%LocalAppData%\Nvidia" "Nvidia"
sc create EABackgroundService binPath="C:\Program Files\Electronic Arts\EA Desktop\EA Desktop\EABackgroundService.exe -start" obj=LocalSystem start=auto DisplayName="EABackgroundService"
start "" "C:\Program Files\Electronic Arts\EA Desktop\EA Desktop\EALauncher.exe"
exit

- Use EA_Launcher.bat as diskless launcher for client. Done.

Sunday, December 25, 2022

Reset Mobile Legends Account ( No stuck id ) Diskless Launcher for LDPlayer

The key is adb root, in order to make adb can remove files and folder in LDPlayer.

@echo off
adb kill-server&&adb start-server
adb root
adb connect 127.0.0.1:5037
adb shell rm -rf /data/data/com.mobile.legends/shared_prefs/com.mobile.legends_preferences.xml
adb shell rm -rf /data/data/com.mobile.legends/shared_prefs/com.mobile.legends.v2.playerprefs.xml
adb shell rm -rf /data/data/com.mobile.legends/shared_prefs/com.mobile.legends.v2.playerprefs.xml.bak
adb shell rm -rf /data/system/users/0/accounts.db
adb shell pm clear com.google.android.play.games
adb shell pm clear com.google.android.gms
adb shell pm clear com.android.vending
adb shell pm clear com.google.android.gsf
adb shell pm clear com.facebook.lite
adb shell pm clear com.facebook.katana
adb shell pm clear com.android.browser
Msg * "Reset Account ML Success"
exit

Saturday, December 17, 2022

Disable registry optimizer Windows 10 at Boot

- Open notepad and paste the following registry code :
 
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Configuration Manager\Defrag]
"LastRun"="12:31:2999"
"TotalBytesSaved"=hex(b):ff,ff,ff,ff,ff,ff,ff,fe

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"Skip Windows Registry Optimizer At Boot"="reg import \"C:\\Windows\\skip_windows_reg_optimizer_at_boot.reg\""


- Save it as "skip_windows_reg_optimizer_at_boot.reg".

- Super user one of client, copy the reg file into "c:\windows" then import the registry file. 

- Shutdown the client and save the change made by super user.

Kredit & Source : Kroco Latoz ( https://tools-warnet.blogspot.com )

Sunday, December 4, 2022

Logitech G Hub Diskless Launcher

- First install LG Hub in diskless server

- Then create LG HUB folder in Gamedisk.

- Then create batch file for exporting registry of LG HUB. Copy paste the following script into the file :

@echo off
reg export "HKEY_CURRENT_USER\SOFTWARE\Logitech" reg1.reg
reg export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{521c89be-637f-4274-a840-baaf7460c2b2}" reg2.reg
copy /Y reg*.reg lghub.reg
del reg*.reg
exit

- Run this batch file just once in diskless server.

- Then create 3 folders : ProgramData, Local, Roaming.

- Cut LGHUB folder from "C:\Program Files", then paste the folder in LG HUB folder in Gamedisk.

Wednesday, November 9, 2022

Fix Blue Screen "Driver Power State Failure" on Windows 10

- Open command prompt and run it as administrator, Copy paste the following command then press enter :

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service"

- Then run second command :

net start msiserver

- Done.

Friday, November 4, 2022

Auto Login Steam Account based on computer name

Create batch file and paste the following script :
@echo off
if %computername% equ PC01 Start "" "D:\Steam\steam.exe" -silent -noverifyfiles -cafeapplaunch -noreactlogin -login username1 password1 steam://rungameid/1677740

if %computername% equ PC02 Start "" "D:\Steam\steam.exe" -silent -noverifyfiles -cafeapplaunch -noreactlogin -login username2 password2 steam://rungameid/1677740

exit

Note :
- Change PC01 to your computer's name
- Change D:\Steam\steam.exe to your steam directory
- Change username1 and password1 to your steam account username and password
- Change 1677740 to id of the steam game

For new Steam launcher, remove -noverifyfiles.  Because it can cause data sync problem with diskless client

Install driver via command prompt

pnputil.exe -i -a "full of path of the inf file\example.inf"

For example :

pnputil.exe -i -a "E:\bat\intelmanagement\heci.inf"