Bug 93761 - LibreOffice upgrade will not install due to Error 1303 insufficient privileges in program folder
Summary: LibreOffice upgrade will not install due to Error 1303 insufficient privilege...
Status: RESOLVED DUPLICATE of bug 94216
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
5.0.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: highest blocker
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-29 09:25 UTC by Dirk Munk
Modified: 2016-10-20 17:10 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
installation error window (6.19 KB, image/png)
2015-08-29 09:25 UTC, Dirk Munk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Munk 2015-08-29 09:25:50 UTC
Created attachment 118255 [details]
installation error window

I tried to update from the first x64 5 release to the second release. It failed with an error 1303, the installation procedure could write in the LibreOffice 5 program directory.

I could not install the previous version either (same error), and deleting the program folder was impossible to (Damned Windows 10...)

So I'm left with no LibreOffice at all :-)
Comment 1 m_a_riosv 2015-08-29 11:52:33 UTC
Hi Dirk, thanks for reporting.

Please take a look to this thread.
https://ask.libreoffice.org/en/question/42393/error-1303-the-installer-has-insufficient-priveledges-to-access-this-directory-cprogram-files-x86libreoffice4program-the-installation-cannot-continue/

Resolved as notabug, please if you are not agree reopen it.
Comment 2 Dirk Munk 2015-08-29 16:23:35 UTC
Thanks for your reply.

First of all, I never had to use admin privileges, so this behaviour is different from the many updates I installed before.


Secondly, Windows 10 has no "Install as Administrator" option, so that solution doesn't work. I found a way to add this option (the fix is meant for Windows 8), but that doesn't help, the same error.
( http://www.howtogeek.com/178826/how-to-force-an-msi-package-to-install-using-administrator-mode/ )
Comment 3 Dirk Munk 2015-08-29 16:39:06 UTC
The elevated administrator account is disabled by default in Windows 10. I enabled it, didn't work either.

Even if solutions like these would work, I'm sure you will agree it's not the way consumers should install an office package.
Comment 4 Dirk Munk 2015-08-29 16:49:10 UTC
Since a first install seems to work, I tried to remove the whole LibreOffice 5 directory tree.

I can not delete the program subdirectory, not even in administrator mode:

C:\Program Files\LibreOffice 5>rmdir program
Access is denied.

C:\Program Files\LibreOffice 5>attrib -r -s program
Access denied - C:\Program Files\LibreOffice 5\program
Comment 5 m_a_riosv 2015-08-29 17:18:45 UTC
Sorry but I think how to admin system security to install a package is not a not something that LIbreOffice can and must modify.
 
I can install with Win10x64, system ask me to allow the installation but that's all.

May be some Win configuration option is creating the issue. User without or with limited rights. I think the level established in User Account Control. From 0 to 3 I have level 2.

Delete a program like breOffice by hand it's not the way.

To remove a program there is as option in the system configuration for Aggregate and Remove programs, where to select the program and remove it, it works fine for me with LIbreOffice.
The problem to remove folders, may be is the same limitation than for install or if some LibreOffice program is running in background, the system doesn't allow remove the program file and of course any directory in their path.

Perhaps trying to install with a new administrator user, if working in it, could help you to find the differences in the user's rights.
Comment 6 Dirk Munk 2015-08-29 17:35:54 UTC
This was an upgrade from a previous LibreOffice 5 installation. That installation went fine, no problem what so ever.

If I install the package as administrator, then I have the highest privileges, but that doesn't work either.

The upgrade procedure will remove the previous LibreOffice version, and that happened. So there's nothing to uninstall. It has left the LibreOffice 5 directory and the empty program subdirectory. For some reason that directory can not be romoved.
Comment 7 Dirk Munk 2015-08-29 18:12:15 UTC
After a reboot the program subdirectory was gone. 

It seems the uninstall procedure tried to delete the program directory, but the delete operation did not complete for what ever reason, and left de program subdirectory in an unknown state.

Anyway I also deleted the LibreOffice 5 directory, and then did a new attempt to install the new version, and this time I succeeded.

Anyway, the procedure you advised in your first reply is not possible for Wind 8, 8.1 en 10. There is no install as administrator option !!
Comment 8 m_a_riosv 2015-08-29 23:05:28 UTC
As you like, but in any case it was not a LibreOffice bug.
Comment 9 Dirk Munk 2015-08-29 23:41:30 UTC
Well, the install procedure of the new version calls the uninstall procedure of the previous version. I have the impression that the uninstall procedure wants to delete the program directory, and that went wrong. 

Maybe it was an unfortunate coincidence, a timing problem, I don't know. But the fact remains it did happen in the install procedure of the new version.
Comment 10 Dirk Munk 2016-02-23 17:31:57 UTC
The problem remains. When I am going to install a new 64 bit version of libreoffice, I will first remove the old version (with Program remove from Control Panel).

The program folder in the libreoffice 5 folder will still be visible after the uninstall, but it can't be used or deleted.

After a reboot the program folder is gone, and I can install a new version of libreoffice.
Comment 11 Dirk Munk 2016-02-23 22:03:50 UTC
My previous comment was 5.0.4. I had to remove 5.1 (had to go back to 5.0.5), and that went fine. Even the Libreoffice folder itself was removed!!
Comment 12 Johnny_M 2016-04-18 22:15:34 UTC
This looks like a duplicate of https://bugs.documentfoundation.org/show_bug.cgi?id=94216 after reopening.
Comment 13 Graeme Moffat 2016-05-17 10:07:29 UTC
This behaviour is still present in 5.1.3.2
Windows 7, both 32 bit & 64 bit, running as privileged user, not administrator.
Either after uninstalling first, or attempting to upgrade a previous version.
As noted by others, solution is to reboot to remove the rogue \program directory.
Comment 14 Buovjaga 2016-10-20 17:10:18 UTC

*** This bug has been marked as a duplicate of bug 94216 ***