Windows 11 forbidden LO install

8 views
Skip to first unread message

Dean Babic

unread,
Apr 1, 2026, 2:38:50 AMApr 1
to Jam.py Users Mailing List
Hi all, 

looks like LibreOffice portable version is the solution:
https://www.libreoffice.org/download/portable-versions/

Because Jam.py does not know anything about portable LO,
we must the code:
    def convert_report(self, report, ext):
        converted = False
        with self.task.lock('$report_conversion'):
            try:
                from subprocess import Popen, STDOUT, PIPE
                if os.name == "nt":
                    pass
                    #regpath = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\soffice.exe"
                    #root = OpenKey(HKEY_LOCAL_MACHINE, regpath)
                    #s_office = QueryValue(root, "")
                else:
                    s_office = "soffice"
                conversion = Popen([r"C:\Users\dba\Downloads\LibreOfficePortable\App\libreoffice\program\soffice", '--headless', '--convert-to', ext,
                    report.report_filename, '--outdir', os.path.join(self.work_dir, 'static', 'reports')],
                    stderr=STDOUT,stdout=PIPE)

Use your path on the above and everything will work.

Enjoy
Reply all
Reply to author
Forward
0 new messages