The tough part about these situations is there is no fixed reason it happens. It can be because of a permission issue or storage problem or installation issue. Possibilities are immense. That said, in this post, we will suggest some solutions to the problem where Windows 11/10 apps open and close immediately. Here we will talk about both the classic programs and the UWP Apps. The UWP apps include games as well. So if any of the games you downloaded from the store is causing the problem, it will help you resolve it.

Windows Programs close unexpectedly

If a Microsoft Store UWP app or a classic exe Program closes unexpectedly as soon as you launch it, you can reset, repair or reinstall it. Let’s take a look at Win32 programs first.

1] Repair the Program

Many programs come with a built-in repair option, or the developer offers a program that can help you repair the software. As we are not talking about one particular software, you may have to search if the program in question offers anything similar. You can repair the installed program via Settings or the Control Panel.

2] Launch with Admin Privileges

Maybe the application needs to launch with admin permission to work properly. Usually, the programs will make sure the UAC prompt appears, but if, for some reason, it is not able to bring it up, then here is what you can do. Every time you want to launch the program, right-click and choose the “Run as Administrator” option. Or you can follow this guide to set it to always launch with admin privileges. 

3] Uninstall and Reinstall Programs

If nothing else works, you may uninstall and then reinstall the program. This time when you do it, make sure to run the installer with admin permission. That will make sure it will have all the permission that it needs.

Windows 11/10 apps open and close immediately

Try the following methods to see if it helps UWP apps from following this behavior, to resolve the problem.  You will need admin permission for some of them.

1] Run the Windows Apps Troubleshooter

Go to Windows 10 Settings (Win+1), and navigate to Update & Security > Troubleshoot.  Run the Windows Store Apps troubleshooter. When you run this App troubleshooter, it automatically fixes some of the basic issues that might be preventing your Store or apps from running – such as lower screen resolution, incorrect security or account settings, etc.

2] Repair or Reset UWP Application

Like we repair or reinstall the classic programs, UWP apps can be reset. Once the reset is made, it will behave as if the program has been installed again.

Open Windows 10 Settings (Win + 1) and go to the Apps section.Select the app, and click on the Advanced options linkScroll to find the Reset section, and you have two options.Repair—It will help if the app isn’t working right. App’s data is not affected.Reset—If the above option doesn’t help, then the app will be reinstalled and reverted to default settings

Make sure first to use Repair, and then the Reset option.

3] Reinstall Windows Store Apps

If reset and repair don’t work, it would be best to Reinstall Windows Store apps. You will have first to uninstall it, and here you can use PowerShell Command, Windows Settings, or 10AppsManager. Having done that, visit the Microsoft Store to download and install it.

When I click on an App it closes immediately

If your apps open when you click on it and close automatically immediately, then either its installation has become corrupted or a 3rd-party process is interfering with its smooth functioning. Repairing the app or troubleshooting the issue in Clean Boot State is sure to help. Read: Microsoft Store not opening or closes immediately after opening. I hope the post was easy to follow.