|
-
May 7th, 2005, 04:34 PM
#1
Thread Starter
Fanatic Member
How to Register
I m facing a problem.
i have forgotten what is the way to register dll in Application Directory on
Form Load Event ....
Thx in Advance
-
May 7th, 2005, 04:50 PM
#2
Re: How to Register
Use the windows directory, for xp, it is like this:
VB Code:
shell "c:\windows\system32\regsvr32 myapp.dll"
-
May 7th, 2005, 05:12 PM
#3
Thread Starter
Fanatic Member
Re: How to Register
 Originally Posted by dglienna
Use the windows directory, for xp, it is like this:
VB Code:
shell "c:\windows\system32\regsvr32 myapp.dll"
Sorry DG it is not working ..
Is there any way that i can put my DLL in resource file so that it will also become safe from renaming or such type of other issues ...?
-
May 7th, 2005, 05:14 PM
#4
Junior Member
-
May 7th, 2005, 05:33 PM
#5
Thread Starter
Fanatic Member
Re: How to Register
What i exactly want is that
When i will give source code + DLL to others
Then they should not place this dll in System32 and then Project | Reference | Blah Blah...
I want to facilitate them without any headache and my program should automatically look in Application folder for given name of DLL and then register it .. without telling user about that....
-
May 7th, 2005, 06:24 PM
#6
Re: How to Register
I hope you put the .exe on the regsvr32 I forgot it, as it runs from the run command.
You could try this. I did, and it registered my dll.
VB Code:
Option Explicit
Private Sub Form_Load()
Shell "C:\Windows\System32\regsvr32.exe C:\Windows\System32\myapp.dll "
End Sub
-
May 7th, 2005, 08:16 PM
#7
Thread Starter
Fanatic Member
Re: How to Register
 Originally Posted by dglienna
I hope you put the .exe on the regsvr32  I forgot it, as it runs from the run command.
You could try this. I did, and it registered my dll.
VB Code:
Option Explicit
Private Sub Form_Load()
Shell "C:\Windows\System32\regsvr32.exe C:\Windows\System32\myapp.dll "
End Sub
But there is one problem ...
It displays Msg Box about Registration of DLL ...
it will disturbs my user....
-
May 7th, 2005, 08:30 PM
#8
Lively Member
Re: How to Register
Add /s after "C:\Windows\System32\regsvr32.exe", should work..
So like
VB Code:
Shell "C:\Windows\System32\regsvr32.exe /s C:\Windows\System32\myapp.dll"
Last edited by BefunMunkToloGen; May 7th, 2005 at 08:38 PM.
-
May 7th, 2005, 08:35 PM
#9
Re: How to Register
I think you have a typo, except that you did the same thing twice
VB Code:
Shell "C:\Windows\System32\regsvr32.exe /s C:\Windows\System32\myapp.dll"
Where the /s is SILENT
-
May 7th, 2005, 08:37 PM
#10
Lively Member
Re: How to Register
Yeah thanks for correcting that
-
May 8th, 2005, 01:18 AM
#11
Re: How to Register
vbPoet,
That is not a good idea, unless the dll/ocx/exe you are registering are of your own making. The reason being that if you re-register a file that is already on the system you will replace it with yours, and you know what happens if you load an dll that the user has been using and then their apps stop working and yours is the only one that does work?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|