Halo wars its not working in pc

Hello. Just yesterday I bought halo wars 2 on DVD. During the installation from the disc, when after unpacking from all the discs the correct installation starts, I get an error saying that the package cannot be installed, because the resources are currently in use. And when I download from the win store, after clicking on the game icon, the game logo appears for a few seconds and disappears and nothing else happens.

Basically same thing happens when installed through xbox app from game pass. Xbox app closes though, the window for halo wars 2 appears for 1-2 seconds and then it’s gone.