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 :-)
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.
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/ )
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.
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
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.
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.
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 !!
As you like, but in any case it was not a LibreOffice bug.
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.
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.
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!!
This looks like a duplicate of https://bugs.documentfoundation.org/show_bug.cgi?id=94216 after reopening.
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.
*** This bug has been marked as a duplicate of bug 94216 ***