Solved

register DLL in ASP..

Posted on 2002-05-09
14
383 Views
Last Modified: 2012-05-04
I want to register certain Dll at runtime from an ASP page, without using shell command. I mean, there should not be any command line displayed while registering, this has to be done at the background. using regsvr32.exe will take the control to the command line. Is there a way i can use any server objects to accomplish this task.
0
Comment
Question by:sureshrao72
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
  • 3
  • +1
14 Comments
 
LVL 20

Expert Comment

by:jitganguly
ID: 6999721
Suresh,
I am not sure you can do it at all.

You need adminitrative access to run regsvr32 from your web pages
WHat do you mean by background ? A scheduled process ?

Questions Asked 6
Last 10 Grades Given B C  
Please close few questions Suersh, you are getting free help here and we spend time to solve your problems and on return you should encourage people with some good grades
0
 
LVL 15

Expert Comment

by:robbert
ID: 6999733
jitganguly is right. I'd have a solution which would require VB/COM knowledge.
0
 

Author Comment

by:sureshrao72
ID: 6999737
well, in the singon page of ASP im gonna call a DLL which is gonna download some files (includes dll's,ocx,mdb) to the client machine. These dll's and ocx's has to be registered without the users interaction, the user is a dumb user.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 20

Expert Comment

by:jitganguly
ID: 6999744
>>well, in the singon page of ASP im gonna call a DLL which is gonna download some files

Nope. Download automatically ? then automatically start registerting ? Impossible to achieve that.
Thats the security. You can't really forcefully do it, even on a lowest security setup in your users browser
0
 
LVL 15

Expert Comment

by:robbert
ID: 6999750
For that purpose, you would probably use a regular setup program, like generated by the VB P&D wizard, or Wise, or Installshield.

You can do all that by client-side script but this would require the user to lower his Internet Explorer security settings, and thus, would only work for intranet users.
0
 

Author Comment

by:sureshrao72
ID: 6999755
Impossible!!! When a VB exe can be called from a ASP page where the VB exe resides in the client machine, why not do the same to download those files..into client machine..
0
 
LVL 15

Expert Comment

by:robbert
ID: 6999756
You can delete this question now.
0
 

Author Comment

by:sureshrao72
ID: 6999760
Impossible!!! When a VB exe can be called from a ASP page where the VB exe resides in the client machine, why not do the same to download those files..into client machine..
0
 
LVL 20

Expert Comment

by:jitganguly
ID: 6999762
Becuase security does not allow you . and Robbert is right with his last posting
0
 

Author Comment

by:sureshrao72
ID: 6999763
Impossible!!! When a VB exe can be called from a ASP page where the VB exe resides in the client machine, why not do the same to download those files..into client machine..
0
 

Author Comment

by:sureshrao72
ID: 6999769
I dont know how my comments got posted thrice. sorry about that. But Mr. Robert i know whether to delete or save my question, u r not supposed to tell me that..
0
 

Accepted Solution

by:
RCFox earned 60 total points
ID: 7005222
'  An example ASP file
'Find the full path to the DLL
'Enter the path\filename in the text input
'Check radio button for 'Register'
'Uncheck the box for 'Unregister'
'The following would be a file named RegUnReg.asp:

<%
Dim Scriptname
ScriptName = "RegUnReg.asp"
if Request.Form("SUBMIT") = "" Then
With Response
.write "<CENTER><FORM ACTION=""" & ScriptName & """ METHOD=POST>"
.write "<INPUT TYPE=TEXT NAME=FILEPATH SIZE=120>Full Path/Filename to Reg/UnReg<BR>"
.write "<INPUT TYPE=CHECKBOX NAME=ACTIONTYPE CHECKED>Checked=Register; Unchecked=Unregister<BR>"
.write "<INPUT TYPE=SUBMIT NAME=SUBMIT VALUE=SUBMIT></CENTER>"
.write "</FORM>"
end with
else
Set fso = Server.CreateObject("Scripting.FileSystemObject")
RegSrv = fso.GetSpecialFolder(1) & "\REGSVR32.EXE /s "
Set WshShell =CreateObject("WScript.Shell")
runstring = "CMD /C " & RegSrv & " /u "
if Request.Form("ACTIONTYPE")="on" then runstring = "CMD /C " & RegSrv
Return = WshShell.Run(runstring & Request.Form("FILEPATH"), 1, True)
Response.Write "Result: " & Return
Set fso=Nothing
Set WshShell = Nothing
end if
%>
0
 

Author Comment

by:sureshrao72
ID: 7006786
well, i have'nt tried RCFox's answer. meanwhile i have a question..how will i search a string in a textfile using FSO object..
0
 
LVL 15

Expert Comment

by:robbert
ID: 7009477
Try Instr(). ;-)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Button to go back 3 39
Diminish Pop-up  in 3 seconds 7 65
Html CheckBox obtain Its Value 5 36
return false must be hit after calling certain command 10 43
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question