Kiran Bulusu’s Blog

Automatically open EXE files in firefox

by kiran on Dec.19, 2006, under General

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 


Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!