?
Solved

register DLL in ASP..

Posted on 2002-05-09
14
Medium Priority
?
388 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
Independent Software Vendors: 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 180 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

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!

Question has a verified solution.

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

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…
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

649 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