R.Tutus

I have this code in a VS2003 setup Project mySetup.exe that registers the TranslatorHttpHandler.dll in the GAC:

string strCmdLine;
strCmdLine = @"/C C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\gacutil.exe -i TranslatorHttpHandler.dll"
;
System.Diagnostics.Process.Start("CMD.exe",strCmdLine);

Is this command going to look for the file TranslatorHttpHandler.dll in the same folder where mySetup.exe is runing.

What I don t understand, even if I rename the TranslatorHttpHandler.dll to another name the registration (setup project) runs without a problem.

Thanks a lot.




Re: Common Language Runtime help understanding gacutil.exe and the dll path issue

Mattias Sjogren

Why are you invoking Gacutil Setup projects have built in ability to add assemblies to the GAC, don't they






Re: Common Language Runtime help understanding gacutil.exe and the dll path issue

R.Tutus

do you mean even in 2003 version if so i should change the setup then

Thanks






Re: Common Language Runtime help understanding gacutil.exe and the dll path issue

PhilWilson

In the File System view in the setup project you can right-click on that file system node and Add Special Folder - the GAC is one you can add.




Re: Common Language Runtime help understanding gacutil.exe and the dll path issue

R.Tutus

I ll create a setup project then I only had an exe and i shipped the dll with it

Thanks a lot.