Announcement

Collapse
No announcement yet.

Changing file association on Internet Explorer 9 on Windows 7

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing file association on Internet Explorer 9 on Windows 7

    Hello,

    we have made a little program called printcard.exe to open Rich Text Format Files (.rtf).
    We have set this executable as default program for .rtf in Control Panel -> Default Programs
    We have set this executable as default program in context menu Open With.
    We have changed the following registry entry:

    HKEY_CLASSES_ROOT -> Word.RTF.8 -> shell -> Open -> command -> (Default)

    Setting our printcard.exe program as default program.
    Double click on an .rtf file Windows correctly opens it with the executable printcard.exe

    But in Internet Explorer 9 when we click on a link to a .rtf file and we click on Open in "Open, Save, Save as" dialogue box Internet Explorer 9 opens the file with Microsoft Word.

    How can we change Internet Explorer behaviour?

  • #2
    Re: Changing file association on Internet Explorer 9 on Windows 7

    UP!

    Somebody can help us?

    Comment


    • #3
      Re: Changing file association on Internet Explorer 9 on Windows 7

      Ahem...
      We really do not like people bumping posts here - you will get an answer if someone can give you one.

      Remember it has been the weekend, so many users take a bit of time off.

      The link here may help - it is about stopping IE9 opening documents itself but points to a "BrowserFlags" registry key
      http://support.microsoft.com/kb/162059
      Tom Jones
      MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
      PhD, MSc, FIAP, MIITT
      IT Trainer / Consultant
      Ossian Ltd
      Scotland

      ** Remember to give credit where credit is due and leave reputation points where appropriate **

      Comment


      • #4
        Re: Changing file association on Internet Explorer 9 on Windows 7

        MIME type detection depends on a combination of server-supplied MIME type headers, file name extension, and/or the data itself. http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx

        It uses the following information from the Windows Registry,
        • Registry keys to find MIME-type ("Content Type") and progID from file extension == HKEY_CLASSES_ROOT\.rtf
          Mime type: application/rtf, application/x-rtf, text/rtf, text/richtext, application/msword, application/doc, application/x-soffice
          Program ID: rtffile , Word.RTF , Word.RTF.8
        • Registry keys to find the location of the application from progID == HKEY_CLASSES_ROOT\<ProgID>\shell\open\command
          The ProgID and the Location of the application you set by associating an application with the extension, i.e. using the Open With dialog box.
        • Registry keys to find defined document extension from MIME type for URL monikers == HKEY_CLASSES_ROOT\MIME\database\content Type\application/rtf
          Try adding the below registry entry,

          [HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/rtf]
          "Extension"=".rtf"


        (Or, if you control the server, is best to try changing the mime-type of rtf documents there).


        /Rems

        This posting is provided "AS IS" with no warranties, and confers no rights.

        __________________

        ** Remember to give credit where credit's due **
        and leave Reputation Points for meaningful posts

        Comment

        Working...
        X