Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 11th, 2004, 01:24 PM
Authorized User
 
Join Date: Jul 2003
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to stalker Send a message via MSN to stalker
Default HELP: How To Register a COM dll in other machine

Hi!! I wrote this dll and suceffully compiled it as a COM Object. Visual studio .Net did the registration and i called it thru a HTA with no problems.

Now I want to register it in other machine so that the HTA can run on other machine. I tried the regsvr32.exe but it keeps saying that it cannot find the DllRegisterServer (or stg like this) entry point.

I cannot uninstall it from my machine with this utility as well.

Does anyone know how to do it?

THKS!
 
Old November 11th, 2004, 03:47 PM
Authorized User
 
Join Date: Jul 2003
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to stalker Send a message via MSN to stalker
Default

All I want to do is the same that VS .NET does when it registers output for Com InterOP.

I've runt regasm and gacutil (as I think they should be runt) but still can do it.. Regasm even made a reg file so that I could use but nothing... :(

Please help me.. is the final step for my work.. after this I shall deliver it to the professor.

Thank in advance
 
Old November 12th, 2004, 10:16 PM
Authorized User
 
Join Date: Jul 2003
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to stalker Send a message via MSN to stalker
Default

I found teh solution. For future reference:

var WINDOWSshell = new ActiveXObject("WScript.Shell");
var windorS = WINDOWSshell.ExpandEnvironmentStrings("%WinDir%");

WINDOWSshell.run(windorS+"\\Microsoft.NET\\Framewo rk\\v1.1.4322\\regasm.exe C:\\yourobj.dll /tlb:yourobj.tlb /silent",0);
WINDOWSshell.run(windorS+"\\Microsoft.NET\\Framewo rk\\v1.1.4322\\gacutil /i C:\\yourobj.dll /silent",0);

To check if a system has .NET framework this is a weak solution but will do:

var FSO = new ActiveXObject("Scripting.FileSystemObject");
if (!FSO.FileExists(caminho+"\\Microsoft.NET\\Framewo rk\\v1.1.4322\\regasm.exe")) { //do it }






Similar Threads
Thread Thread Starter Forum Replies Last Post
Retore Db from a remote machine to a local machine srkvellanki BOOK: Beginning SQL 0 October 3rd, 2008 05:17 PM
Register a com dll in other machine is not working gnanaprakash Jebaraj C# 4 April 25th, 2008 05:04 AM
Install problems - VS 6.0 on XP SCRRUN.DLL PDM.DLL jeff4444 Visual C++ 0 December 6th, 2006 08:48 PM
Copy from one machine to another machine somnath.kartic SQL Server 2000 2 January 12th, 2006 03:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.