Home All Groups Group Topic Archive Search About

Ngen.Exe and building setup.

Author
7 Feb 2007 11:57 AM
trialproduct2004
Hi all,

I am having one setup project wherein in global assembly cache folder
i am adding one dll.

So that is getting installed into gac but when i am uninstalling my
application that is also getting uninstall which i don't want.
Can anyone tell me how to prevent it. As my shared assembly will
getting used by more than one application.

I want to do something like this while building setup project:-

say i have one shared dll used in 2 application. I build setup for 2
application so in setup i want to check if shared dll is already in
gac if yes then don;t install o.w install.

But while uninstalling project i don't want to uninstall this dll from
gac.

How will i do this?

And one more thing , can anyone tell me how ngen.exe works. means
after adding dll using ngen in 'codebase' properties path is empty. so
Is it like it create image of file in memory. IF yes then suppose i
want to add reference of dll install using ngen in my application, how
will i do this.
Because when i click on 'add reference' -> and try to find this shared
dll i am not getting this dll.

Please help me asap.

thanks in advance.

AddThis Social Bookmark Button