Change default program for .html

Page 2 of 2 FirstFirst 12

  1. Posts : 1,781
    Windows 7 Professional SP1 32-bit
       #11

    Please elaborate on what you mean by "it didn't work." Exactly how did you proceed?


    The REG_SZ string as it appears in my Registry reads as follows (I did a direct copy/paste from regedit):

    "C:\Program Files\Mozilla Firefox\firefox.exe" -requestPending -osint -url "%1"

    You should change this as follows:

    "C:\Program Files\Mozilla Firefox\firefox.exe" -requestPending -osint -profile "full path to your profile here" -url "%1"

    for example, if your profile is in C:\Users\Me\Some\Path, the string would read:

    "C:\Program Files\Mozilla Firefox\firefox.exe" -requestPending -osint -profile "C:\Users\Me\Some\Path" -url "%1"


      My Computer


  2. Posts : 31
    Windows 7 64bit
    Thread Starter
       #12

    I've attached the errors I get when I click a .url file. I was actually working with FirefoxURL. THe path to the profile is fine, I use it in shortcuts now.
    Attached Thumbnails Attached Thumbnails Change default program for .html-error.jpg  
      My Computer


  3. Posts : 1,781
    Windows 7 Professional SP1 32-bit
       #13

    Could you show me the exact string you put into your Registry for the FirefoxHTML-etc. key?
      My Computer


  4. Posts : 31
    Windows 7 64bit
    Thread Starter
       #14

    "C:\Program Files (x86)\Mozilla Firefox 7\firefox.exe" -requestPending -osint -profile "C:\Users\MyName\AppData\Roaming\Mozilla\Firefox\Profiles\ya51kf7t.default" -url "%1"
      My Computer


  5. Posts : 1,781
    Windows 7 Professional SP1 32-bit
       #15

    OK, the registry key is perfect. That's not the problem. Somehow Firefox just won't load your profile using this method; I don't know why - perhaps you can ask on Mozilla's forums and get an answer there.

    There is another option according to this page:
    Command - Result - Example

    profile "<path>" - Starts with profile located at the given path - firefox.exe -profile "E:\myprofile"

    P "<profile name>"
    - Starts with a given profile name (case sensitive) - firefox.exe -P "Joel User"
    Try using the -P option instead of -profile. Does that work?

    I wonder what the -requestPending and -osint switches do, I can't find any info about them. Perhaps they conflict somehow.
    Last edited by Corazon; 08 Dec 2011 at 10:05. Reason: Quote was screwed up, ugh
      My Computer


  6. Posts : 31
    Windows 7 64bit
    Thread Starter
       #16

    I gave up and made the files open in IE instead. Thanks for your help anyway.
      My Computer


  7. Posts : 2
    Windows 7 Ultimate x64
       #17

    Solved


    I realize this is a ridiculously old thread, but I did a decent amount of searching on two different occasions and this is the only place I could find that mentioned the specific issue I was dealing with.

    Now that I finally determined a solution, I figured I would post it here for anyone else who finds this thread:

    All I had to do was change the order of the profiles as listed in the profiles.ini...

    So you navigate to:

    C:\Users\MyName\AppData\Roaming\Mozilla\Firefox


    And there should be a "profiles.ini"

    Just open that in Notepad and swap the info of the current profile that opens HTML files with the info of the profile that you want.

    Code:
    [General]
    StartWithLastProfile=1
    
    [Profile0]
    Name=default
    IsRelative=1
    Path=Profiles/lkweHj43.default
    Default=1
    
    [Profile1]
    Name=MyCustomProfile
    IsRelative=1
    Path=Profiles/kjwudkfm.MyCustomProfile
    With this configuration, the default profile handles HTML files.
    Just swap the relevant info and put the profile you want under "[Profile0]" and above "Default=1"...

    Code:
    [General]
    StartWithLastProfile=1
    
    [Profile0]
    Name=MyCustomProfile
    IsRelative=1
    Path=Profiles/kjwudkfm.MyCustomProfile
    Default=1
    
    [Profile1]
    Name=default
    IsRelative=1
    Path=Profiles/lkweHj43.default
    Now "MyCustomProfile" will open HTML files.
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:16.
Find Us