Opened 12 months ago

Closed 11 months ago

Last modified 11 months ago

#15821 closed defect (fixed)

[MSW] wxFileType::GetOpenCommand() fails under Windows 7 under certain circumstances

Reported by: ericj Owned by:
Priority: normal Milestone:
Component: wxMSW Version: dev-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: yes

Description

When installing "Microsoft Word Viewer" or "Microsoft Powerpoint Viewer", wxFileType::GetOpenCommand() fails for their supported file types under Windows 7. The reason is that these application don't register themselves under the "open" command in the registry, but use "show" instead.

As a quick fix, i'm attaching a small patch that implements a fallback behavior for this case.

Attachments (1)

msw_getopencommand.patch download (407 bytes) - added by ericj 12 months ago.

Download all attachments as: .zip

Change History (4)

Changed 12 months ago by ericj

comment:1 Changed 11 months ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [75605]) Support file associations using "show" verb under MSW too.

If we failed to find the "open" command, try the "show" one as some programs
(notable Microsoft viewers for Office file formats) only define the latter but
not the former.

Closes #15821.

comment:2 Changed 11 months ago by VZ

(In [75606]) Support file associations using "show" verb under MSW too.

If we failed to find the "open" command, try the "show" one as some programs
(notable Microsoft viewers for Office file formats) only define the latter but
not the former.

Closes #15821.

comment:3 Changed 11 months ago by ericj

Patch using "AssocQueryString" still coming. Sorry for the delay.

Note: See TracTickets for help on using tickets.