Solved issue with context menu not displaying

オープン
#792 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 9 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
csharp
領域
desktop

調査の方向性

This is a user-reported diagnosis rather than an actionable task: a bad %LOCALAPPDATA%\FileConverter\Settings.user.xml apparently suppresses the Explorer context menu even though COM registration is fine. Start by reproducing with the attached Settings.user.xml, then read the shell extension initialization code (FileConverterExtension) to find how user settings are parsed and what happens on malformed values. Done means identifying the corrupting field and adding validation or a safe fallback.

索引モデルが issue の本文から書いたものです。

説明

I ran into what appears to be the same or a closely related issue to #554 on Windows 10 with File Converter 2.2.0.

The File Converter context menu disappeared completely.

Troubleshooting performed

I initially suspected the shell extension registration, but after troubleshooting:

  • FileConverterExtension was enabled in ShellExView (Disabled = No)
  • CLSID {AF9B72B5-F4E4-44B0-A3D9-B55B748EFE90} was correctly registered in the 64-bit registry
  • HKCR\*\shellex\ContextMenuHandlers\FileConverterExtension correctly referenced that CLSID
  • The extension was not present in either Shell Extensions\Blocked location
  • EnforceShellExtensionSecurity was not enabled
  • The COM class could successfully be instantiated from 64-bit PowerShell
  • FileConverter.exe version was 2.2.0.0
  • FileConverterExtension.dll version was 1.2.1.0

What fixed it

Renaming:

%LOCALAPPDATA%\FileConverter\Settings.user.xml

to:

Settings.user.xml.BACKUP

and then restarting Windows Explorer immediately restored the File Converter context menu.

So in my case, the shell extension and registry registration were fine. Something in Settings.user.xml was causing the extension not to expose the context menu.

Misleading ShellExView path

One potentially confusing symptom was that ShellExView displayed the extension path as:

C:\WINDOWS\system32\C:/Program Files/File Converter/FileConverterExtension.DLL

However, the actual registry CodeBase value was:

file:///C:/Program Files/File Converter/FileConverterExtension.DLL

which appears to be a valid .NET/RegAsm file URI.

So the malformed-looking ShellExView path turned out to be a red herring.

Possible implication

A repair or reinstall may not solve this issue if the existing:

%LOCALAPPDATA%\FileConverter\Settings.user.xml

is preserved.

Removing or renaming that file caused the context menu to return immediately.

I still have the old Settings.user.xml.BACKUP file and can provide it if that would help reproduce the issue.

Settings.user.xml

主要言語
C#
スター
15.7k
フォーク
947
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Tichau/FileConverter のほかの issue

Tichau/FileConverter の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。