Automate GAC and REGASM process by code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

is it possible to automate GAC and REGASM process byt code?
i need to do the following procedure using code ,is it possbile?

1. gacutil - i assemblyname
2. regasm assmebname /tlb:name/codebase
 
Process.Start(new ProcessStartInfo("gacutil", "-i " + assemblyPath));
 
Raed said:
is it possible to automate GAC and REGASM process byt code?
i need to do the following procedure using code ,is it possbile?

1. gacutil - i assemblyname
2. regasm assmebname /tlb:name/codebase

It is possible, yes. Alternatively, write a program which creates batch
files to do the job. I wrote something similar for a former employer
which used reflection and a few custom attributes to generate scripts
which the admins could run to register components in the GAC and for
COM+.

I started writing something else to validate and correct the COM+
catalog settings (because sometimes it's asking too much to expect
someone to read, understand and implement a set of simple instructions)
but never had time to finish it. It would be fairly trivial to write a
program which managed the whole process in a more idiot-proof manner
than relying on command line tools and the COM+ explorer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top