Auto Dll registration - Advanced Installer Community
DragonZeal
Posts: 8
Joined: Fri Mar 10, 2017 9:21 am

Auto Dll registration

I have a batch file with a regsvr32 command to register multiple dll's

I know of the Auto Registration tab for a dll file but the explanation on the site is not clear enough to know what setting to use.

Can somebody shed some light on this?

Thx
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Auto Dll registration

Hello,

You should know what option is best to register your .dll. For example, you cannot select the Self register native library option from the Registration Tab if your file does not export the DllRegisterServer function. Please note that a self registrable native library should export the DllRegisterServer function. If this function is not exported, you cannot use the registration support from Advanced Installer. Also, the self registration method of registering components has many drawbacks (like not being able to roll back the changes if something fails later in the install). Read more about in the SelfReg article.

The Extract registration info from native library option is the recommended one. By selecting this option all the necessary registry entries and keys are installed separately. You can see them in the Registry and COM pages.

If you make changes to the source file or change the file directory in Advanced Installer it is recommended to synchronize the file's registration.

Please let us know if you have any questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DragonZeal
Posts: 8
Joined: Fri Mar 10, 2017 9:21 am

Re: Auto Dll registration

Sadly my knowledge of dll files goes as far as doing a regsvr32 with it :-)

Is there a way to do the same in AI?

Regards
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Auto Dll registration

Hello,

Can you please tell us if your .dlls are successfully registered when using the Extract registration info from native library option? If everything is working as expected, then you do not need to use the regsvr32 to register the .dll files.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”