Update dll every installation - Advanced Installer Community
tardas
Posts: 2
Joined: Wed Mar 22, 2017 7:10 am

Update dll every installation

Hi,

I have created a setup file to add/update dll to GAC.
When the dll is not present in GAC, setup installs dll.
When the dll assembly versions is different between, setup installs dll again.
When the dll assembly versions is same, setup does not reinstall/update dll and logs as "Skipping installation of assembly component: {0491544C-D0F4-4784-ADBB-619E5A18F5C1} since the assembly already exists"
I want to install dll to GAC every installation, how can i do it?

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

Re: Update dll every installation

Hello Tardas and welcome to Advanced Installer forums,

In the Files and Folders page right click on the DLL and select "Properties" from the context menu. Go to "Operations" tab and try using the "Always overwrite existing file" option.

Hope this helps,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tardas
Posts: 2
Joined: Wed Mar 22, 2017 7:10 am

Re: Update dll every installation

Hi Mihai,

Sorry, it doesn't worked. It can work for overwriting files on filesystem but not for GAC. Any ideas?

Thanks
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Update dll every installation

Hi,

As you said, the option Mihai recommend applies only for normal files, from File table, not for assemblies.
I don't believe this is possible for assemblies with the same version number. Here is a similar talk on SO.com.

The version number you define in Assemblies page, or directly in your assembly manifest must be increased.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”