I have used the free version of libreoffice for years, downloaded and directly installed. I also have scripts which automate some tasks using the soffice.exe binary. I recently purchased libreoffice from the Microsoft store and got Version 24.2. But now, I can’t find the exe files to use in my scripting. They seem to not be on the system. Where are they? or how can i script them from the command line as I was able to do using the much older free version.
LibreOffice is still free and a version for regular install is available at Download LibreOffice | LibreOffice - Free and private office suite - Based on OpenOffice - Compatible with Microsoft
It might be easier to use this for your scripts (unless your Windows is in restricted s-mode).
This is a question of how MS stores its “WindowsApps” (MSIX) packaged applications. It’s far from trivial.
The way to discover the .exe placement can be:
- Run LibreOffice;
- Open Task Manager;
- On its Processes pane, locate “LibreOffice”;
- Expand its node, to see (maybe several) inner LibreOffice element(s);
- Right-click an inner element, and choose “Open file location”.
You will discover, that the answer is
C:\Program Files\WindowsApps\TheDocumentFoundation.LibreOfficeMSIX_24.2.7.0_x64__vv1d32z7hj13r\VFS\ProgramFilesX64\LibreOffice\program
and some of the intermediate directories are protected and unreachable.
Look like this can change with every update.
Hi there
You may still use those binaries with your scripts by creating an instance with CreateObject method.
If you cannot do this, the binary in question does not exist or is not registered in the Windows registry.
Folders that you don’t have access to in Windows are not a barrier. You can always check the physical location by using the find function in regedit.