@@ -5543,7 +5543,7 @@ DisplayServer::WindowID DisplayServerWindows::_create_window(WindowMode p_mode,
55435543 PROPVARIANT val;
55445544 String appname;
55455545 if (Engine::get_singleton ()->is_editor_hint ()) {
5546- appname = " Godot.GodotEditor." + String (VERSION_BRANCH );
5546+ appname = " Godot.GodotEditor." + String (VERSION_FULL_CONFIG );
55475547 } else {
55485548 String name = GLOBAL_GET (" application/config/name" );
55495549 String version = GLOBAL_GET (" application/config/version" );
@@ -6071,7 +6071,7 @@ DisplayServerWindows::DisplayServerWindows(const String &p_rendering_driver, Win
60716071
60726072 String appname;
60736073 if (Engine::get_singleton ()->is_editor_hint ()) {
6074- appname = " Godot.GodotEditor." + String (VERSION_BRANCH );
6074+ appname = " Godot.GodotEditor." + String (VERSION_FULL_CONFIG );
60756075 } else {
60766076 String name = GLOBAL_GET (" application/config/name" );
60776077 String version = GLOBAL_GET (" application/config/version" );
@@ -6086,6 +6086,17 @@ DisplayServerWindows::DisplayServerWindows(const String &p_rendering_driver, Win
60866086 }
60876087 clean_app_name = clean_app_name.substr (0 , 120 - version.length ()).trim_suffix (" ." );
60886088 appname = " Godot." + clean_app_name + " ." + version;
6089+
6090+ #ifndef TOOLS_ENABLED
6091+ // Set for exported projects only.
6092+ HKEY key;
6093+ if (RegOpenKeyW (HKEY_CURRENT_USER_LOCAL_SETTINGS, L" Software\\ Microsoft\\ Windows\\ Shell\\ MuiCache" , &key) == ERROR_SUCCESS) {
6094+ Char16String cs_name = name.utf16 ();
6095+ String value_name = OS::get_singleton ()->get_executable_path ().replace (" /" , " \\ " ) + " .FriendlyAppName" ;
6096+ RegSetValueExW (key, (LPCWSTR)value_name.utf16 ().get_data (), 0 , REG_SZ, (const BYTE *)cs_name.get_data (), cs_name.size () * sizeof (WCHAR));
6097+ RegCloseKey (key);
6098+ }
6099+ #endif
60896100 }
60906101 SetCurrentProcessExplicitAppUserModelID ((PCWSTR)appname.utf16 ().get_data ());
60916102
0 commit comments