Solved

register DLL in ASP..

Posted on 2002-05-09
14
379 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
  • 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
 
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now