Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8386479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:57:03+00:00 2026-06-09T17:57:03+00:00

We provide Flash tutorial videos that install on the local (Windows) hard disk with

  • 0

We provide Flash tutorial videos that install on the local (Windows) hard disk with our application. Our app uses ShellExecute to open the html file (in whatever browser is associated with html files) in which they are embedded.

Apparently there’s a bug in Chrome’s more recent Flash players that fails to play local files (but files over the web are fine.)

(Frankly, I’m astonished that this bug hasn’t been fixed by Google. Seems like a big one to me… but maybe not many people play Flash from locations other than the web?)

There’s a work-around on the about:plugins screen in Chrome, but we can’t ask our users to do that. Here’s a discussion of the work-around: http://techsmith.custhelp.com/app/answers/detail/a_id/3518

I want to provide my users with an option to open our html files IE. If Chrome is their default browser, then I’d show a checkbox that says something embarrassing like “If our tutorial videos fail to play, check this box to try them in IE.”

Is this XE2 code (from two years ago on SO: link) still reasonable?

if pos('CHROME', UpperCase(GetAssociation('C:\Path\File.html')) > 0 then
  // Chrome is the default browser

function GetAssociation(const DocFileName: string): string;
var
  FileClass: string;
  Reg: TRegistry;
begin
  Result := '';
  Reg := TRegistry.Create(KEY_EXECUTE);
  Reg.RootKey := HKEY_CLASSES_ROOT;
  FileClass := '';
  if Reg.OpenKeyReadOnly(ExtractFileExt(DocFileName)) then
  begin
    FileClass := Reg.ReadString('');
    Reg.CloseKey;
  end;
  if FileClass <> '' then begin
    if Reg.OpenKeyReadOnly(FileClass + '\Shell\Open\Command') then
    begin
      Result := Reg.ReadString('');
      Reg.CloseKey;
    end;
  end;
  Reg.Free;
end;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:57:04+00:00Added an answer on June 9, 2026 at 5:57 pm

    If you have an actual full path to an existing file on disk, you can use FindExecutable instead. It’s easier, and doesn’t require access to the registry, but it does require that an actual file exists.

    Here’s a console app for XE2 that demonstrates use:

    program Project1;
    
    {$APPTYPE CONSOLE}
    
    {$R *.res}
    
    uses
      SysUtils, ShellAPI, Windows;
    
    var
      Buffer: array[0..MAX_PATH] of Char;
      Res: Integer;
    
    begin
      FillChar(Buffer, SizeOf(Buffer), #0);
      Res := FindExecutable(PChar('C:\Path\File.html'), nil, Buffer);
      if Res > 32 then
        Writeln('Executable is ' + Buffer)
      else
        WriteLn(SysErrorMessage(Res));
      Readln;
    end.
    

    The method you show will work, but FindExecutable is easier (less code) and works on XP and above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am curious that if Flash Plahyer 11+ has ability to provide Stage 3D
I was wondering if it is possible to drive Flash application programatically to provide
Right now, FusionCharts 3.1 Flash charts provide a context menu that, if you configure
I have a Flash application that is hosted from within a Drupal page. Some
I have implemented an application helper to dynamically provide the class of a flash
I'm building a site that uses web sockets (technically Flash sockets) in order to
We provide a web application with a frontend completely developed in Adobe Flash. When
I have a Adobe Flash Builder GUI application that connects to Red5 to communicate.
First off, The Problem: We have a Web App with a Flash front-end that
I'm making a server with Java that will provide chat services for flash clients.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.