HMCL icon indicating copy to clipboard operation
HMCL copied to clipboard

[Feature] Disable Update

Open Vitokhv opened this issue 3 months ago • 10 comments

概述 | Summary

Release 3.6.18 Need disable update

Image

原因 | 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

Vitokhv avatar Oct 11 '25 08:10 Vitokhv

Is it possible to disable updates via a configuration file? launcher_profiles.json hmcl.json

Vitokhv avatar Oct 11 '25 08:10 Vitokhv

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

3gf8jv4dv avatar Oct 11 '25 08:10 3gf8jv4dv

Image

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

Image

The update files need to be downloaded to this user-specified folder, then the problem will disappear

Vitokhv avatar Oct 11 '25 08:10 Vitokhv

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

Vitokhv avatar Oct 11 '25 09:10 Vitokhv

Why system temporary folder and environmental setting is blocked? You shall have fully access on personal computer.

burningtnt avatar Oct 11 '25 10:10 burningtnt

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

Vitokhv avatar Oct 11 '25 11:10 Vitokhv

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.

burningtnt avatar Oct 11 '25 11:10 burningtnt

Image

Not work (

Vitokhv avatar Oct 13 '25 06:10 Vitokhv

Image 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.

zkitefly avatar Oct 13 '25 08:10 zkitefly

Image Not work (

Commands set here influence only the game itself but not the launcher, so of course they don't work.

Calboot avatar Nov 17 '25 13:11 Calboot