Environment
- Windows 11 Pro, build 10.0.22631
- eM Client 11.0.1201.0 x64, installed as a packaged app (
eMClient.20054CA46072C_11.0.1201.0_x64__veq4nz3ze5v72); reproduced with 11.0.1267.0 as well (see below) - Microsoft Outlook 2010 32-bit (14.0.7268.5000), installed side by side
- Installed via
winget install --id eMClient.eMClient -e. This installs only the MSI “eM Client (Updater)” (C:\Program Files (x86)\eM Client\MailClient.exe), which downloads and installs the MSIX package when eM Client is started.
Problem
After installing eM Client, Outlook can no longer open or export .ics files. Opening an .ics file first showed “Either there is no default mail client or the current mail client cannot fulfill the messaging request” (while eM Client was the default MAPI client). After setting Outlook as the default mail client, the error became “The file … is not a valid Internet Calendar file”. This happened even with minimal, well-formed .ics files. Exporting one of Outlook’s own appointments with AppointmentItem.SaveAs(path, olICal) also failed (“The operation failed”).
Findings
- A Process Monitor trace of the failing export shows that Outlook reads
HKCU\Software\Clients\MailandHKLM\SOFTWARE\Clients\Mailand then opensHKLM\SOFTWARE\Clients\Mail\PackagedMail\eMClient.20054CA46072C_11.0.1201.0_x64__veq4nz3ze5v72, including itsClsidExtendedvalue, immediately before the operation fails. It never touches the target file. - With that registry key removed, the error changed to “Cannot find this file”, so the failing step depends on the packaged registration.
- After uninstalling the eM Client package and restarting Outlook,
.icsexport and import work normally again. - Reproduced: after the package had been removed and Outlook worked again, I started
MailClient.exefrom the updater. It reinstalled the MSIX package, this time as 11.0.1267.0. After restarting Outlook, the iCalendar export failed again (“The operation failed”), andHKLM\SOFTWARE\Clients\Mailhad been reset toPackagedMailby the installation (it wasMicrosoft Outlookbefore;HKCUstayedMicrosoft Outlook). After removing the package, resetting theHKLMvalue and restarting Outlook, the export worked again. - The behaviour is therefore not limited to an upgrade from an older version: a fresh install via winget leads to the packaged variant and to the same failure.
- Outlook has to be restarted after installing or removing the package, because it appears to read the list of registered mail clients at startup.
Relation to the known “default email program” message
This is related to, but goes beyond, the thread “Error on Windows 11 with eM Client v11: Microsoft Outlook (Classic) is not running as the default email program” (Error on Windows 11 with eM Client v11 Microsoft Outlook (Classic) is not running as the default email program). There, the message is attributed to Outlook and the advice is to set Outlook as the default mail client. In my case, setting Outlook as the default (HKCU and HKLM) removed only the first message. Outlook’s iCalendar handling stayed broken until the packaged eM Client was uninstalled, so this is not just a question of the default mail client setting.
Request
Please check why the MAPI registration of the packaged eM Client (PackagedMail, ClsidSimple/ClsidExtended) interferes with Outlook, and whether a non-packaged installer avoids the problem.