imagemagickobject.dll failed to register

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
pekkle
Posts: 2
Joined: 2010-12-14T00:49:46-07:00
Authentication code: 8675308

imagemagickobject.dll failed to register

Post by pekkle »

Actually the problem has been here for a long time, we have to manually register the object.
Today, I've tried to figure out the problem, and find the problem is caused by the install script.

Code: Select all

[Run]
...
Filename: "regsvr32"; Parameters: "/c /s""{app}\ImageMagickObject.dll"""; StatusMsg: "Registering ImageMagickObject DLL..."; Tasks: "install_Magick_DLL"; MinVersion: 0.0,5.0; 

[UninstallRun]
...
Filename: "regsvr32"; Parameters: "/u /s""{app}\ImageMagickObject.dll"""; StatusMsg: "Unregistering ImageMagickObject DLL..."; Tasks: "install_Magick_DLL"; MinVersion: 0.0,5.0; 
There should be a space between /s and quotes... and it should be /s ""

Could someone verify and fix the problem please?
User avatar
pekkle
Posts: 2
Joined: 2010-12-14T00:49:46-07:00
Authentication code: 8675308

Re: imagemagickobject.dll failed to register

Post by pekkle »

More information for developers, please fix the problem ASAP.

From the source ImageMagick-6.6.6-8.zip

The problem is caused by :-
ImageMagick-6.6.6\VisualMagick\installer\inc\run-register-com.isx line 20...

Code: Select all

Filename: "regsvr32"; Parameters: "/c /s""{#MagickLibDirectory}\ImageMagickObject.dll"""; StatusMsg: "Registering ImageMagickObject DLL..."; Tasks: install_Magick_DLL
should be changed to

Code: Select all

Filename: "regsvr32"; Parameters: "/c /s ""{#MagickLibDirectory}\ImageMagickObject.dll"""; StatusMsg: "Registering ImageMagickObject DLL..."; Tasks: install_Magick_DLL
ImageMagick-6.6.6\VisualMagick\installer\inc\uninstallrun-unregister-com.isx line 20...

Code: Select all

Filename: "regsvr32"; Parameters: "/u /s""{#MagickLibDirectory}\ImageMagickObject.dll"""; StatusMsg: "Unregistering ImageMagickObject DLL..."; Tasks: install_Magick_DLL
should be changed to

Code: Select all

Filename: "regsvr32"; Parameters: "/u /s ""{#MagickLibDirectory}\ImageMagickObject.dll"""; StatusMsg: "Unregistering ImageMagickObject DLL..."; Tasks: install_Magick_DLL
The missing of space would cause register or unregister failed via the installer.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: imagemagickobject.dll failed to register

Post by magick »

We'll get a patch in ImageMagick 6.6.6-9 with your patch. Thanks.
Post Reply