Automatically open EXE files in firefox

Edit the following file nsHelperAppDlg.js  under /components

Find the following lines and Comment it out : Using (//) at the beginning of each one:

  1. 360       var mimeType = this.mLauncher.MIMEInfo.MIMEType;
    361       if (mimeType == "application/octet-stream" || 
    362           mimeType == "application/x-msdownload" ||
    363           this.mLauncher.targetFile.isExecutable()) {
    364         rememberChoice.checked = false;
    365         rememberChoice.disabled = true;
    366       }
    367       else {

    (leave line 368 as it is)

    369       }

    (skip ahead about 170 lines)

    538       if (this.mLauncher.targetFile.isExecutable() || (
    539           (mimeType == "application/octet-stream" ||
    540            mimeType == "application/x-msdownload") && 
    541            !openWithDefaultOK)) {
    542         this.dialogElement("open").disabled = true;
    543         var openHandler = this.dialogElement("openHandler");
    544         openHandler.disabled = true;
    545         openHandler.selectedItem = null;
    546         modeGroup.selectedItem = this.dialogElement("save");
    547         return;
    548       }

  2.  Next time , when you  click on EXE file in Firefox  and when normal download box appears
  3. Select it, and choose “Other…”. Then browse and select C:\Windows\Explorer.exe 

kiran

About kiran

Kiran Bulusu is an a strategic results-oriented field applications engineer and account management professional in Design Automation Industry with expertise in managing key accounts, developing strategic relation ships, pre & post sales campaigns and product management.
This entry was posted in General. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>