zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Adding assemblies to the GAC

I was wondering what the best practise is for adding assemblies to the GAC? In order to register the assemblies for the GAC (in the Assemblies section) they have to be added to the project as a file. I don't want them to appear in my application folder once the application has been installed but there is no GAC folder in file and folders section as an alternative.

Thanks

David
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Adding assemblies to the GAC

Hello David,

As far as I know, the assemblies which have been registered for the GAC (in the Assemblies section) will not actually be deployed in the installation folder when the application will be installed.
Have you encountered any weird behavior?

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Adding assemblies to the GAC

I have not encountered any behaviour (I have not really got that far with this install). I just felt unintuitive to add them to a folder when they were not going to be installed there. I came from having using Visual Studio Setup and Deploy projects where there is a folder for GAC in the standard folder list so it seemed strange to add it to the application folder only for it then not to appear there.

David
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Adding assemblies to the GAC

Hi David,

Yes, indeed the folders structure for GAC is a little bit misleading. We'll try improving it in the future.

Basically now you have to first add the assemblies in Files and Folders page, then go to Assemblies page and add them as assemblies in the package.
After this you will have the option for each assembly to specify if it is going to perform a GAC (or default) or a private install.

If you go with GAC install the assemblies will not be placed in your application folder, but in the system GAC folder.
If you go with private install then the assemblies will be available only for your application, and you will see them in the application installation folder.

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

Return to “Building Installers”