Solved

register DLL in ASP..

Posted on 2002-05-09
14
385 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
Technology Partners: 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

724 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