MattFW
Posts: 18
Joined: Fri Jul 06, 2007 4:54 am

DLL Registration Failing on Second Install

I have an installer that installs 2 Thumbnail Viewer DLLs on to the target system along with an executable. The thumbnail DLLs are set to self register via their properties in AI, they have exported the DllRegisterServer function. The DLLs are a 32-bit and 64-bit variant of the same thing, and there are two sets: One for XP one for Vista/7, with installation of the set controlled by a conditional that appears to work correctly.

The installer seems to work the first time it is used. However, if a user then installs an updated executable from a new installer built from a duplicate of the file with updated product IDs and executable (but the same DLL binaries) the thumbnail viewers stop working, particularly on 64 bit operating systems. We have heard from some users that after installing the update, they can manually register the DLLs, but I am wondering if there is something I can do to get the system working.

To try and correct the problem I have changed my conditionals to make sure the 32-bit version is only installed on a 32-bit OS, and the 64-bit on a 64 bit OS (this is to be tested shortly). I have also tried to change from 'Self register native library' to 'Extract registration info from native library'. When I select this option, the 32-bit DLLs extract their data and the registry section of the installer is updated, but both 64-bit DLLs inform me that they could not be registered, and the option is deselected. I am running Win7 64-bit with AI 8.2.

I'm wondering if I should be looking to prevent the installer trying to install them if they already exist (and how to check), or if there is something I can do to get my 64-bit versions registering via the 'Extract registration info from native library' option. Any info on what might be causing the problem when the second installer is run would be fantastic, thanks!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: DLL Registration Failing on Second Install

Hello,

You can try the workaround described in this thread.

Also, can you please send us both versions .AIPs (projects) and both verbose logs of their installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”