Automatically open EXE files in firefox
Edit the following file nsHelperAppDlg.js under
Find the following lines and Comment it out : Using (//) at the beginning of each one:
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 }
- Next time , when you click on EXE file in Firefox and when normal download box appears
- Select it, and choose “Other…”. Then browse and select C:\Windows\Explorer.exe
Add comment December 19th, 2006