Custominstallexec.exe always attempts to execute when starting the game and crashes

Game Version:

  • Build 100.1.36211.0
  • Microsoft Store

Issue:

When clicking on the icon of Age of Empires in Start Menu custominstallexec.exe always prompts for admin rights. It shouldn’t do that (it should only do that once after install).
Looking in Event Viewer, the EXE crashes shortly after:
custominstallexec.exe, version: 10.0.18362.719, timestamp: 0xa5fcb17b
Module name: ucrtbase.dll, wersja: 10.0.18362.387, timestamp: 0x4361b720
exception code: 0xc0000409

Presumably because custominstallexec.exe tries to run C:\Program Files\WindowsApps\Microsoft.Darwin_100.1.36211.0_x64__8wekyb3d8bbwe\Install\aoe1de_url_protocol_msixvc.cmd
Yet “Install” folder does not exist and the CMD file is in C:\Program Files\WindowsApps\Microsoft.Darwin_100.1.36211.0_x64__8wekyb3d8bbwe
(checked using Process Monitor; the last action before crash is attempting to run a non-existent file)

Presumably because of that custominstallexec.exe keeps claiming that dependencies need to be installed for AOE:DE

Reproduction Steps:

  1. Install the update for Age of Empires: Definitive Edition from Microsoft Store or uninstall the game and reinstall it again
  2. Start the game from Start Menu icon
2 Likes

There is also an ugly fix for this as per


Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModel\StateChange\PackageList\Microsoft.Darwin_100.1.36211.0_x64__8wekyb3d8bbwe
and set PackageStatus to 0

1 Like

Why do you believe it is ugly? It works. It’s beautiful :slight_smile:

Well, there is a reason why aoe1de_url_protocol_msixvc.cmd file needs to be run. Not sure what is the reason (no idea what the file does) though :slight_smile:

I believe that developers should know the reason for it to run. But they’re slow, usually very slow in recognizing problems. It’s not the end of the world but somewhat annoying to click Yes every time the game starts. Thanks for the temporary solution.

You can click: “No”! It also works! :slight_smile:
I dream that this file is the one running the firewall configuration for LAN game!