Friday, April 28, 2006

Error 1305: Error Reading from File: *.MSI

I was trying to install MySQL on a new server, and I kept getting Error 1305: Error Reading from File: <filename.MSI>. I searched for the error message and most entries pointed to CD problems or MDAC corruption. I was installing a downloaded file, so the CD access problems did not apply. I applied the latest MDAC upgrades (in this case 2.81), but that did not help either. I even used the CSREPAIR tool which cleans up MDAC and JET problems, but that did not help, nor did the Windows Installer Cleanup tool.

I re-downloaded the file, fearing corruption, but that did not help. When I tried to install Apache which was also an .MSI installer, and it too had the same problem, there was something else going on.

It turned out to be a permissions problem. I had created a shared folder with access only by users. I probably explicitly removed all other admin/system accounts, and therein lied the problem. By removing SYSTEM, when the installer tried to run from account which did have access to the file and started to run it, it turned the file over to a system account "Windows Installer" which did not.

To solve the problem, I gave the root folder SYSTEM read access, and then the install was able to complete successfully. The subfolders inherited the needed permission.

Edited: Oct, 2007
For a different twist, see Stasheg's comment below on copying the file to your Desktop. This method would write the file into a folder with your own permissions. However, if you do not have administrator access, or SYSTEM permissions in your Desktop folder, this may not work.

Edited: Mar, 2008
Another comment suggests "giving SYSTEM full access to the temp directory". Of course, there are often several, so try %WINDIR%\Temp and %USERPROFILE%\Local Settings\Temp.

Edited: Mar, 2009
As Meiki has said, a SUBST drive can cause a similar problem. I too have run into a printer driver which fails to save to a SUBST drive because it cannot see it using SYSTEM credentials. So in that case, running it from the original location or copying to an accessible folder should help.



Blogger Joshua said...

Thanks for this - just fixed a problem I had reinstalling a copy of Symantec AV!

6/22/2006 3:07 PM  
Blogger Richard Sleegers said...

Glad to hear it helps someone! And sounds like it's not limited to certain installers.

6/23/2006 10:34 AM  
Blogger g2 said...

Major gratitude to you for posting 'Error 1305' and subsequent resolution. Following your lead I was able to get my ext.HD functional after a week of head-butting.

Thanks again.

8/09/2006 11:20 AM  
Blogger Dan said...

Thanks a lot for sharing your experience!


2/11/2007 5:48 AM  
Blogger Unknown said...

Thanx! Had this problem for a long time, now: solved :D

3/20/2007 2:27 PM  
Blogger chukkee said...

Saved my life - Thank you!!!

4/27/2007 1:13 PM  
Blogger Sank "Da Devil" Daru said...

Thanks a ton dude... I was able to fix MySQL installer following your recommendation of adding SYSTEM account in Security Panel...

5/31/2007 1:05 AM  
Anonymous Anonymous said...

As others have said, THANKS SOOOOOOOO VERY MUCH!!! Like them, I've been fighting my system for QUITE awhile, and was about ready to drop it out a 50-story window! After reading your entry, I was able to "re-take" permissions I had lost (but didn't know) when a so-called computer expert tried to re-configure my laptop. You definitely were a Godsend and I am VERY grateful!

6/01/2007 5:56 PM  
Blogger Richard Sleegers said...

I would have thought that this error would be going away, but it's been over a year since I published it and I'm still hearing about people who had this problem. Well, keep the comments coming and I'll be sure to keep posting other odd errors I am able to correct.

6/03/2007 1:51 PM  
Anonymous Anonymous said...

Had this same error with Mapinfo Exponare and working through your steps, the Windows Installer Cleanup Utility fixed the problem!

8/14/2007 6:36 PM  
Anonymous Anonymous said...

Thank you so much, I was deploying a custom BizTalk interface, and this saved me.

8/17/2007 3:43 PM  
Blogger Shmitty67 said...

Thank you!...I was pulling my hair out trying to figure this out on a Business Objects install, exact same scenario as you.


8/22/2007 4:23 PM  
Anonymous Anonymous said...

I'm not incredibly tech savvy. I think your explanation is clear, but I just don't understand which "root folder" I am supposed to change the setting for. If you could clarify below, I would be very grateful.

9/16/2007 5:51 PM  
Blogger Richard Sleegers said...

To anonymous:
By root folder I meant the C:\ drive. Not everyone installs to C: so it could be any drive. Open up My Computer, then right-click the C: drive and choose Sharing and Security. The exact menu varies depending on your Windows version. This article is for the various Windows XP versions.

9/16/2007 9:13 PM  
Blogger Stashr said...

There in one more solution for this problem
Copy the installer files to the desktop, then install the application.

1. Click Start > My Computer.
2. Right click on your CD-ROM/DVD-ROM drive and select Open.
3. Right click on the product name you are trying to install and select Copy.
4. Close all open windows and applications.
5. Right click on a blank area of your desktop and select Paste.
6. After files finish copying, open up the copied folder and run setup.exe and follow the prompts.

10/05/2007 6:24 AM  
Anonymous Anonymous said...

"I gave the root folder SYSTEM read access"

that's it! oh my god.

10/12/2007 11:53 AM  
Anonymous Anonymous said...

Brilliant. Fixed my problem installing JDK. Nice blog! Thanks.

12/17/2007 1:03 AM  
Anonymous Anonymous said...

Wow, this worked for my problem! Thanks for the excellent blog!

12/20/2007 7:18 AM  
Anonymous Anonymous said...

Thank a lot its realy work for me.

12/30/2007 12:12 AM  
Anonymous Anonymous said...

I gave the file full access for "Everyone" and am still getting this error :(. I'll let know if I find the solution.

2/22/2008 1:06 AM  
Anonymous Anonymous said...

Probably it was some security-related problem, because I was able to install it from shared directory on install server, where my colleague downloaded it. But adding SYSTEM did not help (actually it was there)

2/22/2008 1:15 AM  
Anonymous Anonymous said...

Dude you are the MAN... I was ready to start a rebuild of the server, but got a chance to come across your solution and it in fact fixed my problem...

2/25/2008 10:38 PM  
Anonymous Anonymous said...

the first solution didn't work on my computer, but the second one (with copying msi file to the desktop) works fine. that's unbeliveable I couldn't find any reasonable solution for this by couple of hours including microsoft support!!!

3/18/2008 2:48 PM  
Anonymous Anonymous said...

for me, giving SYSTEM full access to the temp directory (rather than the place I wanted the files to go...) solved the problem.

3/22/2008 2:27 PM  
Anonymous Anonymous said...

It solved my problem with .msi installer by adding SYSTEM access to the file.

Thanks a lot for sharing your experience!

3/25/2008 12:18 PM  
Anonymous Anonymous said...

wow...thanks sir for this great post! did help me solve the problem easier

4/14/2008 6:34 AM  
Anonymous Anonymous said...

thanks for the real fix!!!
It is very usefull for my system

5/12/2008 6:09 PM  
Blogger Lenin said...

By giving SYSTEM access the problem was fixed. Thanks!

6/16/2008 9:46 AM  
Anonymous Anonymous said...

Hello! Just adding my thanks! Microsoft's website was ineffectual in solving the problem...

7/21/2008 9:57 AM  
Anonymous Anonymous said...

Thank you very much. You saved my day. Now I got Nebula DigiTV viewer software installed.

8/07/2008 1:39 PM  
Anonymous Anonymous said...

THANKS A LOT!!! I spent two days trying to install Java SDK before finding your solution. Cheers!

10/15/2008 11:18 AM  
Anonymous Anonymous said...

Thanks a million that fix my issue too. I am working in Symantec Software & support & My name is Javed Nawaz

10/30/2008 6:54 PM  
Anonymous Anonymous said...

Wow, thanks for this! Solved all .msi issues I've been having. :)

11/01/2008 11:35 AM  
Anonymous Anonymous said...

None of that worked and I'm not sure if I understood "SYSTEM" access. Or whatever the heck it was. But, I did "extract here" using WinRar, and it
Works? weird.

1/17/2009 9:37 PM  
Blogger Unknown said...

Richard -thanks a lot !
I had the same symptoms - but the cause was something else : I started the install from a mapped drive (e.g. subst e: c:\drive_e). Running the install from E:\setup.msi did not work - but c:\drive_e\setup.msi works.
Thanks a lot - your hint moved me on the right trail.

3/05/2009 7:44 AM  
Anonymous Anonymous said...

Thanks a lot. Giving the SYSTEM user access to the installation files solved my problem.

3/17/2009 3:43 AM  
Anonymous Anonymous said...



3/31/2009 2:53 PM  
Anonymous Anonymous said...

No SYSTEM permissions was the key - thanks for this info!!!

4/01/2009 10:52 AM  
Anonymous Anonymous said...

definitely needed this post... I had the install file on my desktop, but I had partitioned my drive so that programs/system files were separate from my own files (music, documents, desktop, pictures, etc.)

so I just moved the install package (for adobe audition trial) into my system drive, and it worked like a charm.


4/03/2009 5:14 AM  
Anonymous Anonymous said...

Thanks a lot. This helped me to install Business Objects Enterprise XI 3.1. Don't forget to click on "Advance setting permissions" and select "replace permission entries on all childs ..."

4/17/2009 6:12 PM  
Anonymous Anonymous said...

Thanks for the idea about SUBST drives, these were the problem.

6/12/2009 2:58 PM  
Blogger Unknown said...

Thank you so much! I'd been trying to install PhysX for the last 3 hours...

6/26/2009 4:53 PM  
Anonymous Anonymous said...

Thank you so much for giving me this valuable info...


7/25/2009 1:34 AM  
Anonymous Anonymous said...

Saved my day(s) !

11/11/2009 6:53 AM  
Anonymous Anonymous said...

Many thanks.

11/14/2009 11:06 AM  
Anonymous Chris said...

Couldn't install a Java update and nothing helped. Glad that I found this. A few clicks and life is good again. Thanks!

1/20/2010 1:48 PM  
Anonymous one19 said...

In my case, I was installing to a hard drive that was about to fail.

2/11/2010 10:38 AM  
Anonymous Märt said...

MapInfo 10.0 Prof Eval , thank you :)

2/16/2010 8:52 AM  
Blogger görünen ad said...

thanks from Turkey

2/17/2010 4:14 PM  
Anonymous Indian said...

thank you for your help

3/12/2010 3:00 PM  
Anonymous Anonymous said...

Gracias for this post. Fixed the problem with msi install failing.

3/16/2010 2:31 PM  
Anonymous Anonymous said...

does giving it permission usually take this long (when i say "this long" i mean 10mins. and counting). well, i really hope it works. im trying to reinstall java. well, "thanks" in advance.

-Call Me Daddy

7/05/2010 8:35 PM  
Anonymous xanpipherk said...

I did have the installer on my desktop, but it wouldn't work. Giving SYSTEM Read & Execute permission did the trick.

Thanks for the post!!!

8/13/2010 9:10 PM  
Anonymous Anonymous said...

Thank you from such simple way to make msi working aagain!

9/01/2010 2:31 PM  
Blogger MaryM said...

Thanks, Your suggestion worked on Windows 7 where I was tring to install Apache.


9/11/2010 4:43 PM  
Anonymous Anonymous said...

Only READ permission on %user%/AppData didn't solve the problem. Gave it WRITE permission on %user%/AppData/ as well which did.

Thanks for the hint which ended a long time of fiddling with my system.

11/20/2010 11:06 AM  
Blogger Mike Shimniok said...

Thanks! That solved it for me too! I had previously horked up perms on my home directory.

4/26/2011 4:51 PM  
Anonymous Anonymous said...

Cheers for your help!!
Granting Full Control to SYSTEM account allowed Netbackup to install.

5/03/2011 10:20 PM  
Anonymous Anonymous said...

Thanks a million!
permitting SYSTEM user to read the directory in which the installer file resides, solved the problem.
Microsoft docs only mention CD issues!

6/30/2011 5:11 AM  
Anonymous Anonymous said...

Fixed my Visual Studio 2010 problem

8/08/2011 6:39 PM  
Blogger Suzanne said...

Thank you! Moving the .msi file to the desktop worked for me. You and everyone else who added helpful hints will hopefully get much good karma for sharing your knowledge with the world-at-large.

9/24/2011 5:13 PM  
Blogger A.S said...

Thanks a lot!!

10/12/2011 11:36 PM  
Anonymous Anonymous said...

Thanks a lot you saved me from re-loading windows... I've been fighting this for a couple of days now..

10/15/2011 1:48 PM  
Anonymous wenus said...

Worked for me too. I had the installer in my "secured" folder and had no permissions for SYSTEM accounts. Your solution worked a charm. What a life saver. !!

11/14/2011 5:27 AM  
Anonymous celebrity cartoon said...

you saved my day!
thanks so much for this article.

ive been wondering all this time why cant i install some applications on my computer. the installers just exit without giving any explanation.

thanks to your article, i add the SYSTEM to security setting of my folder, and tadaaaa... the installation process went smooth..

12/13/2011 12:10 AM  
Blogger Ceelie said...

Nice! This solved my problem with installing MSSQL 2008 r2 on Win 2k3 Server completely. Thanks so much!!
- celia

1/23/2012 5:08 PM  
Anonymous Anonymous said...

Thanks, this worked for installing a symantec program update!

10/04/2012 9:15 AM  
Blogger Bere said...

Thanks a lot!!! Finally I've installed MySQL and Visual SVN Server.
So happy now :D

6/12/2013 9:15 PM  
Blogger Bere said...

Thanks a lot!!! Finally I've installed MySQL and Visual SVN Server...
So happy now :D

6/12/2013 9:16 PM  
Anonymous Anonymous said...

Thanks! That resolved my problem with jdk installation. ^_^

10/24/2015 5:09 AM  
Anonymous Anonymous said...

Well, thx a lot for sharing the solution.
Greets from another 1305 victim. ^^

5/17/2016 3:49 PM  
Blogger Unknown said...

Same problem, my msi package had two permission on System, one to allow all and the other to deny all, I removed the deny one and the problem was solved.

10/29/2018 9:43 AM  

Post a Comment

<< Home