You are here

Can 'install' portable application to path that includes "Program Files" string, but cannot launch

3 posts / 0 new
Last post
DIV
Offline
Last seen: 1 day 23 hours ago
Joined: 2025-08-26 00:50
Can 'install' portable application to path that includes "Program Files" string, but cannot launch
Note: already posted to https://bugs.documentfoundation.org/show_bug.cgi?id=167337 , but directed from that forum to post here.

Description: I recently downloaded LibreOffice version 25.2.3.0 Portable MultilingualStandard (*.paf.exe). I am running Windows 10 (x64).
Today I ran the EXE file and chose to install to C:\Program Files (portable)\LibreOfficePortable Note that while C:\Program Files is a system folder C:\Program Files (portable) is a folder that I created myself, with no special properties.

The EXE file 'installed'/extracted all of the files to the specified path.

However, when I tried to launch directly from the end-of-installation dialogue box, or when I try to run any of the 'installed' EXE files, I get an error:

LibreOffice Portable cannot be run from inside C:\Program Files.  This location is for standard local software only.  Please use this application from another location.  

Steps to Reproduce: 1. Download portable installer 2. 'Install' to "C:\Program Files (portable)\LibreOfficePortable" 3. Try to run application.

Actual Results: Unable to run application.
Get error in message box:

LibreOffice Portable cannot be run from inside C:\Program Files.  This location is for standard local software only.  Please use this application from another location.  

Expected Results: There are THREE problems:
(i) The documentation does not match the behaviour. If there is a need to prevent installation into paths such as "C:\Program Files (portable)\LibreOfficePortable", it should be specified in the documentation.
(ii) The portable installer allows extraction of the files to a path from which they cannot be run. The criteria to assess the path should be the same for the installer as for the launch algorithm. If the application would not be launchable from a specified path, then the installer should EITHER refuse to extract to that path OR extract only after showing a warning to the user and asking for specific confirmation.
(iii) The launch algorithm seems to be incorrectly checking only the first few characters of the path, rather than properly assessing what the top-level directory actually is!!! This is indicated by the display of the wrong information in the error message!

Reproducible: Always

User Profile Reset: No

Additional Info: "Known issues" Long Paths and Odd Characters - LibreOffice doesn't like running from overly long paths. So, while it will work directly from your desktop... if you have it within a subdirectoy on your desktop, it will probably fail claiming that some files are corrupted. LibreOffice also doesn't like certain characters like dollar signs in the path. This is why it's best to have the LibreOfficePortable directory in the root of your drive, or within a PortableApps directory in the root of your drive. The launcher attempts to check this for you and will let you know. https://portableapps.com/support/libreoffice_portable

Unable to copy here the information from menu Help - About LibreOffice, because I cannot run the application :-/ It's obviously not related to the UserProfile.

ANTICHRISTUS REX
ANTICHRISTUS REX's picture
Offline
Last seen: 7 hours 32 min ago
Translator
Joined: 2019-07-19 07:09
TLDR; Sorry.

https://portableapps.com/support/portable_app#installing

Note that installing to the C:\Program Files or equivalent is not supported.

Similar topics

'Joy is ephemeral, live it before realizing the truth'
― Neo Buddha ―

John T. Haller
John T. Haller's picture
Online
Last seen: 6 min 39 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Use C:\PortableApps

There are numerous older launchers and installers that have an issue with anything beginning with C:\Program Files regardless of what is after that. Please use C:\PortableApps instead. I fixed the lockout on the Pa.c Installer and with custom launchers. All newer apps will work with it eventually but we have lots of older apps like games and things that haven't had a new version in years and won't work with that path.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments