harshal119
Posts: 21
Joined: Wed Mar 27, 2019 10:18 am

DLL Registration in different directory

Hi,

We are facing dll registration issue whilst building the installer for MFC VC++ application.

We have application installation directory where installer will place all the application dlls. For example: D:\Application_Dir\.

Now, we need the help of those application DLLs in registering other custom Dlls located in some different directory (i.e. D:\Customer_DLL_Dir). We are facing issues when installer registers those custom DLLs.
Is there any way, we can set a path to application dll before custom dlls are started self registration?

In other words, how to do set path before SelfReg

Thanks
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: DLL Registration in different directory

Hello Harshal,
Is there any way, we can set a path to application dll before custom dlls are started self registration?
For this, you can set a property that will point to your DLL. For instance, if you have a DLL in the "Application Folder", you can create a "SetProperty" custom action (for instance after the "Searches" action group in the "Install Execution Stage" (you can actually set it anywhere in the execution stage, beside the deferred stage). The custom action can look like this:

Property: MY_PROPERTY
Value: [APPDIR][#Sample.dll]
Execution Time: Immediately


Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”