Register a .Dll file a second time - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Koen
Posts: 21
Joined: Thu May 06, 2010 7:49 am

Register a .Dll file a second time

Hi,

I've created an installer that contains a .dll file. I've specified in it's property's that the dll should be registered during the installation. But when I execute the installer a second time, in the same folder. I don't want to install the dll file again. But I do need to register the current dll again. Is this possible?

Regards,
Koen
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Register a .Dll file a second time

Hello Koen,
But when I execute the installer a second time, in the same folder.
I'm not sure what you mean by this. By the second install do you mean a repair, an upgrade or .. ?
Also, can you please give me an example scenario of what you are trying to achieve?

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Koen
Posts: 21
Joined: Thu May 06, 2010 7:49 am

Re: Register a .Dll file a second time

Hi,

The installer that I've created contains a singel file "wf.dll". The installer installs this file in the user selected directory and automaticlly registers the dll. Many of our costumers already have installed a different installer which contains hounderds of files that some up our company software, including an unregisterd "wf.dll" file.

What I want to achieve in this case is that when my new installer is executed and detects the presence of a "wf.dll" file in the selected folder. Then I want the installer to register the existing "wf.dll" file without installing the "wf.dll" file from the installer. Is this possible?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Register a .Dll file a second time

Hi Koen,

You can implement this behavior yourself from within a custom action attached to the installation.
Although, what you are trying to achieve is the typical behavior of an upgrade for your company's software. I recommend you include this change in an upgrade project for your old application that will replace the existing "wf.dll" from your customers' machines with the new installed registered one.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Koen
Posts: 21
Joined: Thu May 06, 2010 7:49 am

Re: Register a .Dll file a second time

Hi,
The custom action aspect is just what I needed. But can the project be programmed to execute the script after the welcome dialog, and depending on the feedback of the script, jump to the exit dialog that says that the program is successfully installed? I'm having trouble with the last part, because I can't seem to skip the part where the .dll file is installed. Or could this be solved with a conditional install setting for the dll?

Regards,
Koen
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Register a .Dll file a second time

Hello Koen,
Or could this be solved with a conditional install setting for the dll?
Yes, this is correct. You can add a search for the "wf.dll" in the "Search" page and use the result public property to condition its installation.
This can be done in the "Organization" page where you can edit your "wf.dll" component with the "Condition" field set to something like:

Code: Select all

MY_FILE
where MY_FILE is the search name.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”