Hi,

I´m trying to use regasm.exe and gacutil.exe from an assembly that I use in a custom 
action in a setup project of mine.  What I´m doing is simply registering some dlls 
both with regasm and gacutil.  Everything seems to work fine and the installation 
completes successfully but when I check the registry and the GAC no entries for these 
DLLs are to be found.  I use the following code to call regasm in my installer class 
for instance:

Process regasmProcess = new Process();
ProcessStartInfo regasmInfo = new ProcessStartInfo(/*path to regasm.exe*/);
regasmInfo.WindowStyle = ProcessWindowStyle.Hidden;
regasmInfo.Arguments = "/tlb /silent " + fileinf.Directory.Parent.FullName + 
"MyDll.dll";               
regasmProcess.StartInfo = regasmInfo;
try
{
        regasmProcess.Start();
        regasmProcess.WaitForExit();
}
catch(Exception e) { throw new InstallException(e.Message); }

No errors come up, but still nothing has been registered or installed into the GAC?  
What is going on here?

Cordially,
Dadi Ingolfsson - Software Engineer
EJS Inc.
Services and Software Dep.
tel: 563-3000

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to