Page 1 of 1

[Solved] Error 1304 under Vista

Posted: Fri Dec 05, 2008 3:23 pm
by Marcel_Cote
Hello

For 3 days now I browse forum's to find the solution to my problem.


I'm technician for several years now and I install Open Office in customers computer who do not wont to pay for Microsoft Office.

My problem that I have right now is. On 2 computers Acer Extensa 5630Z with Windows Vista Premium SP1 FR when I try to install Open Office 3.0. I always have that error 1304. Error writing to file c: \ programdata \ Microsoft \ Windows \ templates \ soffice.odg. Check that you are authorized to access this directory.

Please do not redirected me to another forum or other link because I was doing all those links and forum for 3 days now. It must have someone who find the solution for that problem!

Re: Error 1304

Posted: Fri Dec 05, 2008 3:39 pm
by bobban
Please do not redirected me to another forum or other link because I was doing all those links and forum for 3 days now.
I won't do that, except to say I think this will be a difficult situation because I tried extensively to help the last user that had this problem and I suspect you have already been through this thread. Unfortunately his solution was a reformat, which is not good.

The problem is something to do with the 'junction point' at "c: \ programdata \ Templates".

Or perhaps the points that this resolves to. I would look hard at the security permissions on the junction and the folder it points to.

It would be great to find a solution to this problem...

Re: Error 1304

Posted: Fri Dec 05, 2008 3:50 pm
by Marcel_Cote
i already make that solution i make a restor of those computer but with the same resolt. Thos computers are new

Re: Error 1304

Posted: Fri Dec 05, 2008 3:55 pm
by bobban
What happens when you open this folder? "c: \ programdata \ Microsoft \ Windows \ templates"

Re: Error 1304

Posted: Fri Dec 05, 2008 3:58 pm
by Marcel_Cote
i receive a windows error and the explorer close and open again

Re: Error 1304

Posted: Fri Dec 05, 2008 4:01 pm
by bobban
How about try to rename it as a backup, then make a new folder "c: \ programdata \ Microsoft \ Windows \ templates"?

Kind of risky, make a system backup first.

Re: Error 1304

Posted: Fri Dec 05, 2008 4:04 pm
by Marcel_Cote
i'm unable to rename that directory

Re: Error 1304

Posted: Fri Dec 05, 2008 4:10 pm
by bobban
Try this to change the permissions on the folder:

Right click - Properties - Security - Advanced - Owner - Edit
Then select your account (Mike), and check the box that says "Replace owner on subcontainers and objects"
Apply
Click Yes to replace all permissions
Click on all the Ok's to get you back out.


Also, have you tried "Run as administrator" on the installer?

Re: Error 1304

Posted: Fri Dec 05, 2008 4:19 pm
by Marcel_Cote
is i try with the administrator but with no resolte


i even try in safe mode and same thing

Re: Error 1304

Posted: Fri Dec 05, 2008 4:20 pm
by bobban
Did you turn UAC off?

How did you go, renaming the folder as I said??

Re: Error 1304

Posted: Fri Dec 05, 2008 4:24 pm
by Marcel_Cote
yes the UAC is turn off

Re: Error 1304

Posted: Fri Dec 05, 2008 4:57 pm
by bobban
The only thing I can suggest is renaming the folder and creating a new one call "Templates".

I would also just try just deleting it and not replacing it

I just tried this myself. Interestingly this folder gets recreated by the installer as soon as you run it. I really think renaming or deleting the original "Templates" folder is your best chance. Other than that I really don't know what to suggest.

Re: Error 1304

Posted: Fri Dec 05, 2008 5:13 pm
by thomasjk
This is a windows error. Have you tried right clicking on the installer and selecting "Run As Administrator". I'd also suggest a Google search on this error.

Re: Error 1304

Posted: Fri Dec 05, 2008 5:16 pm
by TheGurkha
+1.

If you Google 1304 and Vista you'll see it affects all sorts of applications.

Re: Error 1304

Posted: Fri Dec 05, 2008 5:19 pm
by Marcel_Cote
I find the solution

this is the way to do it

Windows Vista:

Select Start > Computer.
Open the C: drive and locate the ProgramData folder. If you do not see the ProgramData folder, take these additional steps to make it visible:
Select Organize > Folder And Search Options.
In the Folder Options window, select the View tab.
In Advanced Settings, select Show Hidden Files And Folders.
Click OK to close the Folder Options window.
Right-click ProgramData and select Properties.
In the ProgramData Properties window, select the Security tab. Click Advanced.
In the Advanced Security Properties For ProgramData window, select the Owner tab. Click Edit.
Select the Administrators group under Change Owner To. Select Replace Owner On Subcontainers And Objects. Click OK. If a Windows Security dialog appears, click Yes to continue.
In the Advanced Security Properties For ProgramData window, select the Permissions tab. Click Edit.
Select Include Inheritable Permissions From This Object's Parent. Select Replace All Existing Inheritable Permissions On All Decendents With Inheritable Permissions From This Object. Click OK. If a Windows Security dialog appears, click Yes to continue.
Click OK to close the Advanced Security Properties for ProgramData window.
Click OK to close ProgramData Properties dialog box.
Install Open Office.


The error that we do is we always try to change the template directory so we have to change the ProgramData one


I think i will to and grabe a beer!!!!


Thanks guys

Re: Error 1304

Posted: Fri Dec 05, 2008 5:26 pm
by bobban
thomasjk wrote:This is a windows error. Have you tried right clicking on the installer and selecting "Run As Administrator". I'd also suggest a Google search on this error.
TheGurkha wrote:If you Google 1304 and Vista you'll see it affects all sorts of applications.
Yes, it's certainly Windows related. I googles extensively myself on this but not been unable to find anything substantial on it. It's permissions related but nobody has fixed this yet by doing all the usual things to elevate privileges etc.

Funnily enough when I deleted the the templates directory to try reproduce this error, OOo still installed without a complaint. :cry:
 Edit: Great to see you found a solution and thanks for posting back. :D

This is the most promising solution yet, and indicates the problem was with the Templates junction point at ProgramData, rather than the Templates folder itself. 

Re: Error 1304

Posted: Fri Dec 05, 2008 5:30 pm
by Marcel_Cote
if i can help other persone to solve that probleme

thanks for the help guys

Re: [Solved] Error 1304 under Vista

Posted: Sun Jan 04, 2009 12:11 pm
by higgowoman
This doesn't work either............nothing works. I don't know what to do anymore. :? This is the first time I'm seriously hating Vista. I even tried installing RegCure, what a waste of money. Does anyone have any other solutions??

Re: Error 1304

Posted: Sun Jan 04, 2009 12:26 pm
by higgowoman
Finally!! A solution that worked!! Thank you!

bobban wrote:The only thing I can suggest is renaming the folder and creating a new one call "Templates".

I would also just try just deleting it and not replacing it

I just tried this myself. Interestingly this folder gets recreated by the installer as soon as you run it. I really think renaming or deleting the original "Templates" folder is your best chance. Other than that I really don't know what to suggest.

Re: [Solved] Error 1304 under Vista

Posted: Mon Feb 09, 2009 8:03 pm
by michaelmichael
I am having the exact same issues with Vista 64 and OO 3.0

It is causing an issue during a trial. Ouch

No solutions? Tried all of the below. CRASHES VISTA EXPLORER EVERY TIME

UPDATED:

Deleting the directory in question before install seems to have solved it on Vista 64 OOO 3.0!

Re: [Solved] Error 1304 under Vista

Posted: Tue Sep 15, 2009 3:31 pm
by uncleop
This sure seems to be an Acer-specific issue. Happened to me on my "new/refurb" Acer Aspire notebook running Vista Home Basic. I solved it by opening a DOS window "Run as Administrator" and renaming the old Templates directory. Install then when right through. Using the latest OOo download as of the date of this posting (well, actually it was last night).

Re: [Solved] Error 1304 under Vista

Posted: Fri Jan 01, 2010 1:46 am
by Antikythera
I have an Acer Aspire 8730 with Vista 64 and I had this problem. The permissions solution didn't work but renaming Templates and creating a new Templates folder did. The old Templates folder actually seemed to be a shortcut, not a folder, and I was unable to open it at all.

Re: [Solved] Error 1304 under Vista

Posted: Sat Feb 06, 2010 7:19 pm
by Bill
Antikythera wrote:I have an Acer Aspire 8730 with Vista 64 and I had this problem. The permissions solution didn't work but renaming Templates and creating a new Templates folder did. The old Templates folder actually seemed to be a shortcut, not a folder, and I was unable to open it at all.
"Templates" in C:\ProgramData\Microsoft\Windows should definitely be a folder in Vista, not a shortcut (junction point). To maintain compatibility with pre-Vista software "Templates" in C:\ProgramData should be a shortcut (junction point) pointing to the "Templates" folder in C:\ProgramData\Microsoft\Windows. Trying to open any junction point should result in an "Access Denied" message.

See Junction Points in Vista for a list of junction points in Vista and instructions for making a list of junction points on the C: drive.