2 Replies - 4168 Views - Last Post: 20 December 2012 - 12:05 PM Rate Topic: -----

#1 don57  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 56
  • Joined: 15-March 12

Trouble with forced download of .msi file

Posted 20 December 2012 - 09:51 AM

I use the following routine to force a download it appears to work with all files except .msi (microsoft installer)


header('Content-disposition: attachment; filename='.$file_dl);
header('Content-type: application/exe');
readfile('../downloads/'.$file_dl);




changing Content-type to application.msi has no effect
Is This A Good Question/Topic? 0
  • +

Replies To: Trouble with forced download of .msi file

#2 laytonsdad  Icon User is offline

  • Cheese and Sprinkles
  • member icon

Reputation: 436
  • View blog
  • Posts: 1,840
  • Joined: 30-April 10

Re: Trouble with forced download of .msi file

Posted 20 December 2012 - 11:47 AM

Try application/octet-stream
see if this helps.
Was This Post Helpful? 0
  • +
  • -

#3 don57  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 56
  • Joined: 15-March 12

Re: Trouble with forced download of .msi file

Posted 20 December 2012 - 12:05 PM

Got it working Thanks


header('Content-type: application/x-ole-storage');



Was This Post Helpful? 0
  • +
  • -

Page 1 of 1