Installing Orthanc

456 views
Skip to first unread message

Marcos Fernandes de Sousa Júnior

unread,
Oct 17, 2018, 5:18:54 PM10/17/18
to Orthanc Users
Hello there! Although i've managed to build and even modify it a little bit, so far i've been using the downloadable installer from https://www.orthanc-server.com/download-windows.php and replacing the corresponding .dll files, 
what would i need to do to install orthanc from scratch?

I tried running the Install project but i'm getting the following error:

Severity Code Description Project File Line Suppression State
Error MSB3073 The command "setlocal
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1. INSTALL C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133
 

Sébastien Jodogne

unread,
Oct 18, 2018, 3:16:41 AM10/18/18
to Orthanc Users
Check out the build instructions for Windows ("Native Windows build with Microsoft Visual Studio"):

Sébastien-

Djiinbables XD

unread,
Oct 18, 2018, 10:04:56 AM10/18/18
to Sébastien Jodogne, orthan...@googlegroups.com
Maybe i wasn't as clear as i should've been, 
my problem isn't with compiling/building orthanc but with creating a self installed version of orthanc like the one we get from the email link at  https://www.orthanc-server.com/download-windows.php.
The link you posted is for building Orthanc, which i already did...
--

Sébastien Jodogne

unread,
Oct 18, 2018, 10:40:05 AM10/18/18
to Orthanc Users
The Orthanc installers are automatically generated by our continuous integration server using InnoSetup:

Djiinbables XD

unread,
Oct 18, 2018, 4:07:29 PM10/18/18
to Sébastien Jodogne, orthan...@googlegroups.com
Would it be possible for you to provide the installer script for InnoSetup?

Sébastien Jodogne

unread,
Oct 19, 2018, 3:05:55 AM10/19/18
to Orthanc Users
Our InnoSetup scripts are auto-generated, and this auto-generation is too tight to our own build infrastructure to be useful to anyone else.

You should give a try learning InnoSetup by yourself: This is really easy, and you'll quickly have your own installer.

The "innounp" decompiler can assist you in this task by retrieving the content of the official installers:

"innounp" will notably extract a file named "install_script.iss" that contains the source of the original InnoSetup script.

Djiinbables XD

unread,
Oct 19, 2018, 2:12:21 PM10/19/18
to Sébastien Jodogne, orthan...@googlegroups.com
Thx for the help, there are a few issues with this though, it uses some files that the basic compilation of orthanc did not generate like:
PatchDefaultConfiguration.exe, OrthancService.exe, OrthancWSIDicomizer.exe, OrthancWSIDicomToTiff.exe or any of the .json files...

Sébastien Jodogne

unread,
Oct 23, 2018, 11:16:58 AM10/23/18
to Orthanc Users
Check out the downloads page, for instance the following page contains "OrthancWSIDicomizer.exe" and "OrthancWSIDicomToTiff.exe":

Regarding the JSON files, they are readily extracted by "innunp.exe".

The only missing files are "PatchDefaultConfiguration.exe" and "OrthancService.exe". I'll try and open-source them in the following next months, but this is very low-priority topic.

Djiinbables XD

unread,
Oct 23, 2018, 11:29:02 AM10/23/18
to Sébastien Jodogne, orthan...@googlegroups.com
Oks, in the meantime i can probably use the files that the innounp extracted right?
There was a few problems when trying to compile the extracted .iss though...

I've gotten errors regarding all files in the "embedded" folder, which weren't extracted by innounp and aren't generated by building the orthanc source code

[Setup]
LicenseFile=embedded\License.rtf
WizardImageFile=embedded\WizardImage0.bmp
WizardSmallImageFile=embedded\WizardSmallImage0.bmp

[Languages]
Name: "default"; MessagesFile: "embedded\default.isl"; 

I've also gotten errors regarding the following function(that couldn't be found):
[Dirs]
Name: "{code:GetOrthancDir}"; 

[Registry]
Root: HKLM32; Subkey: "SOFTWARE\Orthanc\Orthanc Server"; ValueName: "OrthancDir"; ValueType: String; ValueData: "{code:GetOrthancDir}"; MinVersion: 0.0,5.0; Flags: uninsdeletekey 

Any tips or suggestions regarding these problems?

Sébastien Jodogne

unread,
Oct 23, 2018, 11:36:31 AM10/23/18
to Orthanc Users
Oks, in the meantime i can probably use the files that the innounp extracted right?

Yes, that's exactly the point of my previous answers.


 
There was a few problems when trying to compile the extracted .iss though...
I've gotten errors regarding all files in the "embedded" folder, which weren't extracted by innounp and aren't generated by building the orthanc source code
[...]
Any tips or suggestions regarding these problems?

Read the InnoSetup manual:

Djiinbables XD

unread,
Oct 26, 2018, 4:31:08 PM10/26/18
to Sébastien Jodogne, orthan...@googlegroups.com
Thanks for the help! 
I managed to get a functional customized installer working! Couldn't find anything about the  {code:GetOrthancDir}  function though, so i ended up just ignoring it and replacing it with {app}. 
It would be nice to be have the code and be able to customize and generate versions of "PatchDefaultConfiguration.exe" and "OrthancService.exe" though, it would be nice if you could get in touch when you eventually upload the code for those!
Thanks again!

Sébastien Jodogne

unread,
Oct 27, 2018, 3:19:56 AM10/27/18
to Orthanc Users
By the way, if you produce a derived work of Orthanc that is shipped to clients (which is the case if you build your own installer), I remember that the GPL/AGPL licensing model of Orthanc requires you to publicly share your code using the same license:

Please make sure that your work complies with these requirements.

Djiinbables XD

unread,
Oct 29, 2018, 1:34:25 PM10/29/18
to Sébastien Jodogne, orthan...@googlegroups.com
To be honest we didn't do much, in summary we just removed the modules that we're not using, set up different default folders and updated the .json with the default configuration that we'll be using, do you really think that that warrants a share?
Ill check on the gpl-faq nonetheless!
Reply all
Reply to author
Forward
0 new messages