LibreOffice Draw - Win 7 - PDF - Setting Right Click Open With List

asked 2016-11-10 20:45:46 +0200

Ryan55 gravatar image

updated 2016-11-10 22:53:55 +0200

Hello we're new to using LibreOffice and I'm packaging it for silent unattended installation and deployment to a group of users. I'd like LibreOffice Draw to show in the Open With list when they right click on a PDF and I'd like this to be added automatically during installation.

There doesn't appear to be an installation switch for this. I've tried setting it and scouring the registry for the .pdf openwithlists and I've found a couple but when I apply them on a workstation without using the GUI to do it I get an error message from LibreOffice Draw when opening a document which says the document does not exist. I'm missing something which is being set when you do this from the GUI.

[HKEY_CURRENT_USER\Software\Classes\Applications\sdraw.exe\shell\open\command] @="\"C:\Program Files (x86)\LibreOffice 5\program\sdraw.exe\" \"%1\""

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.pdf\OpenWithList] "c"="sdraw.exe" "MRUList"="abc"

Edit: I realized it might also be helpful to include our command line for the installation. It's VBS but you can see the switches we're using.

WshShell.Run "msiexec.exe /i " & Chr(34) & CurrentScriptPath & "\LibreOffice_5.1.6_Win_x86.msi" & Chr(34) & " ADDLOCAL=ALL CREATEDESKTOPLINK=1 REGISTER_NO_MSO_TYPES=1 REMOVE=gm_o_Onlineupdate RebootYesNo=No -qb!",1,True

edit retag flag offensive close merge delete