[ 
https://jira.nuxeo.com/browse/LIVED-155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=93124#comment-93124
 ] 

Olivier Lacroix commented on LIVED-155:
---------------------------------------

The following code retrieve the correct path, and falls back to a default if 
the key is not found

        var cmdString = "C:\\Program Files\\Nuxeo\\Nuxeo Live Edit MsOffice 
IE\\nuxeo-liveedit-msoffice-launcher.exe";
        var wrk = 
Components.classes["@mozilla.org/windows-registry-key;1"].createInstance(Components.interfaces.nsIWindowsRegKey);
        wrk.open(wrk.ROOT_KEY_LOCAL_MACHINE,"SOFTWARE",wrk.ACCESS_READ);
        if (wrk.hasChild("Nuxeo")) {
                var nuxeokey = wrk.openChild("Nuxeo",wrk.ACCESS_READ);
                if (nuxeokey.hasChild("NuxeoLiveEdit")) {
                        var LiveEditkey = 
nuxeokey.openChild("NuxeoLiveEdit",wrk.ACCESS_READ);
                        if (LiveEditkey.hasValue("InstalledPath")) {
                                cmdString = 
LiveEditkey.readStringValue("InstalledPath")+"nuxeo-liveedit-msoffice-launcher.exe";
                        }
                        LiveEditkey.close();
                }
                nuxeokey.close();
        }
        wrk.close();

> Autodetect Liveedit path in Firefox LiveEdit handler addon
> ----------------------------------------------------------
>
>                 Key: LIVED-155
>                 URL: https://jira.nuxeo.com/browse/LIVED-155
>             Project: Nuxeo Live Desktop
>          Issue Type: Improvement
>            Reporter: Olivier Lacroix
>            Assignee: Benjamin Jalon
>
> The path of LiveEdit addon should be registered at install and used by the FF 
> addon for mapping auto-generation. Installing LiveEdit on x64 machines puts 
> LiveEdit in "Program Files (x86)", and as a result, the auto-generated paths 
> need to be modified by hand.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to