I FOUND A FIX AROUND THIS PROBLEM
But devs, please add a native support to microsoft store version.
___
Go to your .minecraft folder (ex: "C:\Users\username\AppData\Roaming\.minecraft")
Copy and paste "launcher_profiles_microsoft_store.json"
Rename the new copy to "launcher_profiles.json"
Use the installer to install the client.
After it's done, change the name from "launcher_profiles.json" to "launcher_profiles_microsoft_store.json" (or just edit it's content with notepad++)
Don't forget to get a backup while you're doing that.