Microsoft Apps Open and Close Immediately

Having trouble with Microsoft apps opening and closing immediately? Find out the possible causes and solutions in this article.

Troubleshooting solutions for Microsoft apps closing unexpectedly

Microsoft error message prompt.

If you’re experiencing issues with Microsoft apps closing immediately after opening, follow these troubleshooting steps to resolve the problem.

1. Update your apps and Windows 10: Ensure that you have the latest updates for both your Microsoft apps and Windows 10. Outdated software can lead to compatibility issues and unexpected app closures.

2. Clear app cache: Clearing the cache can often resolve app performance issues. To do this, follow these steps:
a. Open the Microsoft Store.
b. Click on your profile picture in the top right corner and select “Downloads and updates.”
c. Under “App updates,” click on “Get updates” to install any available updates.
d. Once the updates are installed, click on “Library” in the Microsoft Store.
e. Select the app that is closing unexpectedly and click on the three dots (…) next to the “Play” button.
f. Choose “App settings” and scroll down to the “Reset” section.
g. Click on “Reset” to clear the app cache and restore it to its default settings.

3. Check for conflicting software: Some third-party applications or antivirus programs may interfere with Microsoft apps, causing them to close unexpectedly. Temporarily disable any recently installed software or antivirus programs to see if the issue resolves.

4. Run the app troubleshooter: Windows 10 includes a built-in troubleshooter that can automatically detect and fix common app issues. To run the troubleshooter:
a. Press the Windows key + I to open the Settings app.
b. Click on “Update & Security” and then select “Troubleshoot” from the left sidebar.
c. Scroll down and click on “Windows Store Apps” troubleshooter.
d. Click on “Run the troubleshooter” and follow the on-screen instructions to fix any detected issues.

5. Reset the app: If all else fails, you can reset the problematic app. This will remove all app data and settings, so make sure to back up any important information before proceeding. To reset the app:
a. Open the Start menu and search for PowerShell.
b. Right-click on Windows PowerShell in the search results and select “Run as administrator.”
c. In the PowerShell window, type the following command and press Enter: Get-AppxPackage -allusers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
d. Wait for the command to complete, then close the PowerShell window.
e. Restart your computer and check if the app still closes unexpectedly.

Resetting and reinstalling Microsoft Store app

Microsoft Store app icon

If you’re experiencing issues with the Microsoft Store app opening and closing immediately, you can try resetting and reinstalling the app to resolve the problem. Here’s how:

1. Open File Explorer and navigate to the following directory: %LocalAppData%\Packages\Microsoft.WindowsStore_8wekyb3d8bbwe\LocalCache

2. In this folder, you’ll find a file named LocalState. Right-click on it and select Delete from the context menu. This will clear the cache for the Microsoft Store app.

3. Next, open the Microsoft Store app and go to the app’s page that you’re having trouble with. Click on the ยทยทยท (more) button and select Uninstall to remove the app from your computer.

4. After uninstalling the app, restart your computer to ensure any lingering processes are terminated.

5. Once your computer has restarted, open the Microsoft Store app again and search for the app you want to reinstall. Click on the Install button to download and install the app.

By resetting and reinstalling the Microsoft Store app, you’re essentially starting fresh, which can help resolve any glitches or issues that were causing it to open and close immediately. This process can also help if you’re experiencing similar problems with other Microsoft apps.

Modifying system folders and services to fix app closing issues

Windows folder icon

To fix app closing issues on your Windows device, you may need to modify system folders and services. Follow these steps to resolve the problem:

1. Open File Explorer by pressing the Windows key + E. This will allow you to navigate through your computer files and folders.

2. Locate the system folder where the problematic app is installed. This folder is usually found under “C:\Program Files” or “C:\Program Files (x86)”.

3. Right-click on the folder and select Properties from the context menu.

4. In the Properties window, go to the Security tab.

5. Click on Edit to modify the permissions for the folder.

6. Make sure that your user account has Full control over the folder. If it doesn’t, click on Add and enter your username to add it to the list of permissions.

7. Check the Replace all child object permissions box and click OK to apply the changes.

8. Restart your computer to ensure that the modifications take effect.

If you are still experiencing app closing issues after modifying the system folders, you may also need to check the services associated with the app. Here’s how:

1. Press the Windows key + R to open the Run dialog box.

2. Type “services.msc” and hit Enter. This will open the Services window.

3. Look for the service related to the problematic app. The name of the service is usually the same as the app or its vendor.

4. Right-click on the service and select Properties.

5. In the Properties window, go to the General tab and make sure the Startup type is set to Automatic.

6. Click Apply and then OK to save the changes.

7. Restart your computer to apply the modifications to the service.

By modifying system folders and services, you can address app closing issues on your Windows device. If the problem persists, you may consider resetting your device or seeking further assistance from Microsoft support.

import subprocess

# Replace "application_name" with the name of the Microsoft application you want to open
application_name = "excel.exe"

# Open the Microsoft application
print(f"{application_name} opened successfully.")

# Wait for some time (e.g., 5 seconds)
# You may add your own logic or operations here

# Close the Microsoft application
subprocess.Popen(f"taskkill /F /IM {application_name}")
print(f"{application_name} closed successfully.")
except Exception as e:
print(f"An error occurred: {str(e)}")

Installing necessary updates and feature packs

1. Check for Updates: Open Microsoft Store on your Windows device and click on the three dots in the top-right corner. From the drop-down menu, select “Downloads and updates.” Click on “Get updates” to install any pending updates for your Microsoft apps.

2. Update Windows: Keeping your operating system up to date is crucial for app performance. Go to the “Settings” app on your computer and select “Update & Security.” Click on “Check for updates” and install any available updates for your Windows system.

3. Install Feature Packs: Some apps require additional feature packs to function properly. Visit the Microsoft Store and search for the specific app that is causing the issue. If a feature pack is available for that app, download and install it to enhance its performance.

4. Clear App Cache: Cached data can sometimes cause apps to malfunction. To clear the cache, press the Windows key + R to open the Run dialog box. Type “%localappdata%” and press Enter. Open the folder related to the problematic app and delete its cache folder.

5. Reinstall the App: If the issue persists, try uninstalling and reinstalling the app. Go to the “Settings” app and select “Apps.” Locate the problematic app, click on it, and select “Uninstall.” Once uninstalled, visit the Microsoft Store and download the app again.

Preventing apps from closing by disabling startup programs

  • Identify the apps that open and close immediately.
  • Determine if these apps are set to run at startup.
  • Access the Startup tab in the Task Manager.
  • Disable unnecessary programs from running at startup.
  • Restart your device to apply the changes.
  • Test if the apps still open and close immediately.
  • If the issue persists, try a clean boot to identify conflicting programs.
  • Update the problematic apps to the latest version.
  • Consider reinstalling the apps if the problem persists.
  • Contact Microsoft Support for further assistance if needed.
    Consider reinstalling the apps if the problem persists.
Contact Microsoft Support for further assistance if needed.

Resolving app closing issues through Safe Mode and uninstalling updates

If you are experiencing issues with Microsoft apps opening and closing immediately, you can try resolving them by using Safe Mode and uninstalling updates. These steps can help you troubleshoot and fix the problem.

To start, you can boot your Windows device into Safe Mode. Safe Mode allows you to start your computer with minimal drivers and services, which can help identify if a third-party app or driver is causing the problem. Here’s how you can enter Safe Mode:

1. Press the Windows key + R to open the Run dialog box.
2. Type “msconfig” and press Enter.
3. In the System Configuration window, go to the “Boot” tab.
4. Check the “Safe boot” option and select “Minimal” under it.
5. Click on “Apply” and then “OK”.
6. Restart your computer.

Once your computer is in Safe Mode, try opening the Microsoft app that was previously closing immediately. If the app works fine in Safe Mode, it indicates that a third-party app or driver is causing the issue. You can then proceed with further troubleshooting steps to identify and remove the problematic app or driver.

If the issue persists even in Safe Mode, you can try uninstalling recent updates that might have caused the problem. Here’s how you can uninstall updates:

1. Press the Windows key + I to open the Settings app.
2. Go to “Update & Security” and select “Windows Update” from the left menu.
3. Click on “View update history”.
4. Click on “Uninstall updates” at the top.
5. In the list of installed updates, locate the recent updates that you suspect might be causing the issue.
6. Right-click on the update and select “Uninstall”.
7. Follow the on-screen instructions to complete the uninstallation process.

After uninstalling the updates, restart your computer and check if the Microsoft app is working properly now. If not, you may need to consider other troubleshooting steps or seek further assistance from Microsoft support.

Was this article helpful?
Scroll to Top