This is a discussion on Register dll or ocx using through code in C# within the C# Programming forums, part of the Software Development category; Hi, I want to register dll or ocx through code in C#. I have tried to register this using the ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, I want to register dll or ocx through code in C#. I have tried to register this using the setup file in C#. But, I am unable to do this. Is there any possibilities to register this through code
__________________ The OXYGEN Delivers edgy, intelligent Technology to all... |
| Sponsored Links |
| |||
| Hi, Using the following function you can register dll or ocx files. public void Register(string[] assemblyNames) { for (int i = 0; i < assemblyNames.Length; i++) { Process proc = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo("Regsvr32.exe"," /s "+ assemblyNames[i]); startInfo.CreateNoWindow = true; startInfo.WindowStyle = ProcessWindowStyle.Hidden; startInfo.UseShellExecute = false; startInfo.RedirectStandardInput = true; startInfo.RedirectStandardError = true; startInfo.RedirectStandardOutput = true; proc.StartInfo = startInfo; proc.Start(); while (!proc.HasExited) { } proc.Close(); } }
__________________ S.Balasubramanian Nothing is impossible |
| |||
| Hi, Thanks for your help. I Have to register dll only once. But this function register dll every time when application opened. So, how can we block this function be called only once.
__________________ The OXYGEN Delivers edgy, intelligent Technology to all... |
| |||
| Hi, You can use xml to register dll only once. Just set a flag in xml. if the dll registered, change the flag status. So, every time application executed, Read the flag in xml and decide whether the function is to be called or not.
__________________ S.Balasubramanian Nothing is impossible |
| |||
| So I created the form, pasted the HTML on my site, and now when I submit my info, it says "This form is not being sent from the url where it is supposed to be located. If you are the owner of this form you need to ensure that the 'Form Location' is specified as (TRUE FORM LINK). To change this, login to the site, click 'edit' next to the form's name, and then click the 'Basic Information' link to change the form's location. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Secure PHP code | vadivelanvaidyanathan | PHP Programming | 4 | 11-17-2008 12:53 AM |
| Zip code,Proximity | kingmaker | Database Support | 3 | 10-11-2007 08:23 AM |
| I want the explanation for the below example code.. | oxygen | PHP Programming | 1 | 07-26-2007 03:39 AM |
| How to create a simple dll using VC++ and how to register it windows XP? | oxygen | C and C++ Programming | 1 | 07-24-2007 05:25 AM |
| optimizing the code | vijayanand | PHP Programming | 0 | 07-17-2007 12:25 AM |