[Feature] Disable Update
概述 | Summary
Release 3.6.18 Need disable update
原因 | Reason
It's easier for us to manually update the launcher, download the required launcher file, and place it in the game folder Because the launcher update doesn't work due to access to the game folder, and there are constant errors during the update (temporary folders are used during the update, which lead to the Windows user profile, not everyone has access to it)
详情 | Description
No response
Is it possible to disable updates via a configuration file? launcher_profiles.json hmcl.json
Currently, HMCL has no plans to add a separate option to disable updates.
However, the maintainer of the launcher has provided a workaround:
Add a variable named JAVA_TOOL_OPTIONS in the system environment variable options. Set its value to: -Dhmcl.update_source.override=<url>. Replace <url> with a non-existent address, such as http://127.0.0.1.
But I'm more curious about why you encountered update issues. If possible, could you elaborate on the following statement?
Because the launcher update doesn't work due to access to the game folder, and there are constant errors during the update (temporary folders are used during the update, which lead to the Windows user profile, not everyone has access to it)
EDIT: clarify system variables
The cause of the update problem is a temporary folder located in the Windows user profile, or the system itself is blocking access, or the user profile itself may be corrupted in some way If the update used the temporary folder specified by the user, there would never have been any update problems
The update files need to be downloaded to this user-specified folder, then the problem will disappear
Add a variable named JAVA_TOOL_OPTIONS in the system environment variable options. Set its value to: -Dhmcl.update_source.override=
. Replace with a non-existent address, such as http://127.0.0.1
This solution isn't suitable because it involves changing Windows system settings A solution for the launcher itself is needed
Why system temporary folder and environmental setting is blocked? You shall have fully access on personal computer.
Why system temporary folder and environmental setting is blocked? You shall have fully access on personal computer
It doesn't matter, just give us the ability to set the path for the temporary update download folder ourselves Or add a setting to the config file to disable updates
I get this error from most users Figuring out why someone doesn't have access doesn't make sense, it will be an endless problem
Temporary files are used not only in updating HMCL, but also in other essential features like downloading files, making Users who encoutered this issue fail to download any files.
Not work (
Not work (
https://docs.hmcl.net/launcher/jvm-options-and-env.html
If you're not setting environment variables here, you can refer to this article or Google it.
Not work (
Commands set here influence only the game itself but not the launcher, so of course they don't work.
Not work (
Not work (