473,668 Members | 2,639 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automate GAC and REGASM process by code

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
Nov 17 '05 #1
2 3654
Process.Start(n ew ProcessStartInf o("gacutil", "-i " + assemblyPath));

"Raed Sawalha" <Ra*********@di scussions.micro soft.com> wrote in message
news:62******** *************** ***********@mic rosoft.com...
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

Nov 17 '05 #2
In message <62************ *************** *******@microso ft.com>, Raed
Sawalha <Ra*********@di scussions.micro soft.com> writes
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.

--
Steve Walker
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5850
by: Michael Riggio | last post by:
Hello, Part of the installation process for our program requires regasm.exe to be run. However, I can't find any specific information that says it is freely distributable. I would image it is, but I need something from microsoft that says it is. Does anyone know of any files in the sdk or perhaps a URL that lists the files that can be freely distributed? Thanks, -Mike
3
474
by: Brad Burke | last post by:
From a windows .Net app, I need to 1) check if MSAccess is already open to a certain Access application. If so, then open a form and find a certain record. 2) If not open, then open MSAccess and open a secured Access application and then open a form and find a record. (The Access App is secured not with a database password but with full user name and password security.) I can open the form and find the record OK. I am having problems...
1
4950
by: Mark | last post by:
Hi all, I have a Access 2002 FE/BE scenario where the BE is stored on a network drive. Due to the amount of importing/deleting, the database bloats quite a lot. UP until now, I have been booting the users out of the database and manually compacting it. What I am trying to do is automate the process so I don't have to worry about it. My VB skills are few and far between so this is proving somewhat of a challenge. Because I am trying to...
2
2709
by: Phil Latio | last post by:
We have despatch process which kicks out picking information into text files at hourly intervals. The text files are named sequentially by process; 'ABC.txt', 'ABC01.txt', 'ABC02.txt' for one process, or 'XYZ.txt', 'XYZ01.txt' for another process. The folder contents would look like this; ABC.txt ABC01.txt
4
5151
by: Craig | last post by:
I have created a little C# project that produces a .DLL that is exposed as a COM object using the regasm utility from the .Net Framework. Our formal build process is all VS 6.0 C++ and VB, no .Net development components installed at all. The build is breaking on the C++ code that tries to #import the .tlb produced by regasm with this error message: fatal error C1084: Cannot read type library file: 'DJMsCrmComObj.tlb': Error loading...
0
1737
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, TlbExp.exe and Regasm.exe tools aid us in exporting assembly information to a type library so that non .Net Applications or unmanaged code use this type library information to call .Net assembly. Just like tlbimp which works on the entire COM Component (check out yesterdays article) tlbexp also works on the entire assembly. The entire assembly is converted at the same time. You cannot use it to
3
15071
by: Howard Kaikow | last post by:
I was playing with a COM example in an article at the MSFT web site. This resulted in a DLL, call it x.dll, getting registered. When I was done, I tried to unregister the dll using regasm /u path\x.dll Got an error, don't recall the text of the error. So my fat fingers went into regedit and tried to delete all keys referring
2
4355
by: gopal | last post by:
I installed MS DevEnv 2003 with framework 1.1.I developed a small application which looks out for the assembly vcersion of a .net DLL or EXE via code. But i have a problme durng the registration using RegAsm. My Question is Does the RegASM can be called from anywere like we call RegSvr32 or it will be found only in Visual Studio Tools Path? If the ans is yes, then should i handle this in code.
3
1411
by: mariner92689 | last post by:
Hi all, I am very poor at scripting. My goal is to automate a process that I often have to stand by the computer and wait for each step to finish in order for me to manually proceed to the next one. I do a lot of file converting, and I often have to perform multiple steps. For example, one file, run it through a converter which takes hours, take that converted file and load it into another program, take the result from that program and...
0
8462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8893
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8797
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8656
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6209
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5681
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4380
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1786
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.