PostgreSQL plugins on Windows

Where do I put these 2 plugins?:

OrthancPostgreSQL-2.0-Index.dll
OrthancPostgreSQL-2.0-Storage.dll

Do I put them in:
C:\Orthanc
or
C:\Program Files (x86)\Orthanc\Orthanc Server 1.1.0

This is my config:

  // List of paths to the custom Lua scripts that are to be loaded
  // into this instance of Orthanc
  "LuaScripts" : [
  ],
  "PostgreSQL" : {
    "EnableIndex" : true,
    "EnableStorage" : true,
    "Host" : "localhost",
    "Port" : 5432,
    "Database" : "postgres",
    "Username" : "postgres",
    "Password" : "*****"
  },
  // List of paths to the plugins that are to be loaded into this
  // instance of Orthanc (e.g. "./libPluginTest.so" for Linux, or
  // "./PluginTest.dll" for Windows). These paths can refer to
  // folders, in which case they will be scanned non-recursively to
  // find shared libraries.
  "Plugins" : [
    "c:\orthanc\OrthancPostgreSQL-2.0-Index.dll",
    "c:\orthanc\OrthancPostgreSQL-2.0-Storage.dll"
   ],

This is my error from the log:
W1115 18:52:50.790535 main.cpp:1222] Orthanc version: 1.1.0

W1115 18:52:50.790535 OrthancInitialization.cpp:135] Reading the configuration from: "Configuration.json"

E1115 18:52:50.790535 OrthancInitialization.cpp:148] The configuration file does not follow the JSON syntax: "Configuration.json"

E1115 18:52:50.790535 main.cpp:1247] Uncaught exception, stopping now: [Cannot parse a JSON document] (code 28)

W1115 18:52:50.837335 main.cpp:1280] Orthanc has stopped

Thanks for your help

AFAIK you need to place them in the base folder wherever your OrthanC is installed. So basically wherever your OrthanC.exe is, that's where your plugins need to be.

What do I put for the plugins path?

"Plugins" : [
OrthancPostgreSQL-2.0-Index.dll,
OrthancPostgreSQL-2.0-Storage.dll
],

Hello,

Your issue is here:

“Plugins” : [
“c:\orthanc\OrthancPostgreSQL-2.0-Index.dll”,
“c:\orthanc\OrthancPostgreSQL-2.0-Storage.dll”
],

This is my error from the log:
W1115 18:52:50.790535 main.cpp:1222] Orthanc version: 1.1.0

W1115 18:52:50.790535 OrthancInitialization.cpp:135] Reading the configuration from: “Configuration.json”

E1115 18:52:50.790535 OrthancInitialization.cpp:148] The configuration file does not follow the JSON syntax: “Configuration.json”

You have to escape the backslashes "" as “\”. Otherwise, you don’t respect the JSON syntax.

As an alternative to avoid this syntax error, you could also replace all the backslashes "" by forward-slashes “/”.

HTH,
Sébastien-

When you install Orthanc on Windows I had problems running plug-ins.
Give an example of its configuration file for those who also faced this problem.

My Orthanc was installed in the following path: F:/Orthanc/Orthanc Server 1.2.0/

Plugins added to the folder with the app installed.

It works!
``

`
// List of paths to the custom Lua scripts that are to be loaded
// into this instance of Orthanc
“LuaScripts” : [
],
“PostgreSQL” : {
“EnableIndex” : true,
“EnableStorage” : true,
“Host” : “localhost”,
“Port” : 5432,
“Database” : “postgres”,
“Username” : “postgres”,
“Password” : “456945”
},

// List of paths to the plugins that are to be loaded into this
// instance of Orthanc (e.g. “./libPluginTest.so” for Linux, or
// “./PluginTest.dll” for Windows). These paths can refer to
// folders, in which case they will be scanned non-recursively to
// find shared libraries.
“Plugins” : [
“F:/Orthanc/Orthanc Server 1.2.0/OrthancDicomWeb-0.3.dll”,
“F:/Orthanc/Orthanc Server 1.2.0/OrthancWebViewer-2.2.dll”,
“F:/Orthanc/Orthanc Server 1.2.0/OrthancPostgreSQL-2.0-Index.dll”,
“F:/Orthanc/Orthanc Server 1.2.0/OrthancPostgreSQL-2.0-Storage.dll”
],
`