b.biene
Posts: 66
Joined: Thu Nov 08, 2012 4:21 pm

Assemblies

Hi,

is there a way to overwrite existing GAC-Assemblies with a newer binary?
The new binary has the same version number.

with the gacutil i woul use the /f parameter = force.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Assemblies

Hello,

Have you tried to enable the Always overwrite existing file option from the File properties -> File Operations Tab of the related dll and see if the behaviour still persist?

You can also take a look on the Why some files are missing from the installation folder when performing an upgrade? article which may be useful to you.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
b.biene
Posts: 66
Joined: Thu Nov 08, 2012 4:21 pm

Re: Assemblies

Thanks for the tip, but it did not change the behavior.
The GAC-Assambly remains in the previous version.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Assemblies

Hello,

In this case, you may need to uninstall the old version manually before installing the upgraded version. For this, you can use the predefined Uninstall previous versions custom action.

It is recommended to schedule this custom action before "Wizard Dialogs Stage" -> "Paths Resolution". This way it will run right before the installation starts.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
b.biene
Posts: 66
Joined: Thu Nov 08, 2012 4:21 pm

Re: Assemblies

There is no way that you implement a "overwrite" function?
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Assemblies

Hi,

We are using the predefined support from Windows Installer which does not provide this functionality.

I have added your request on our TODO list but for the moment there are not immediate plans. We'll consider this in a future version. Thank you for your suggestion.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
b.biene
Posts: 66
Joined: Thu Nov 08, 2012 4:21 pm

Re: Assemblies

Windows Installer has no "force" option for registering assemblies? Btw. the AssemblyFileVersion is higher just the AssemblyVersion remain the same.

Other installer has support for this. Do you have any ideas for a work-around?
b.biene
Posts: 66
Joined: Thu Nov 08, 2012 4:21 pm

Re: Assemblies

As in this Blog-Post, ther should be a Windows-Installer support for this request:

http://blogs.msdn.com/b/astebner/archiv ... 47259.aspx

Return to “Feature Requests”