Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Register dll's

Status
Not open for further replies.

thefox149

Technical User
Nov 22, 2004
158
AU
Probably not the right forum as I only know I comand. I wanna create a .bat file to copy and register some dll's
not sure on the rest of the command

COPY C:\test.dll C:\WINNT\system32\test.dll

Then how do you register??
 
regsvr32 C:\winnt\system32\test.dll /s

The /s part causes the regsvr to operate in silent mode (no window for success).



-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Save the following as yourname.reg and double click it.



REGEDIT4

// This adds the ability to Right-Click on a .dll or .ocx
// and get the Register / UnRegister options.

// .DLL files
[HKEY_CLASSES_ROOT\.dll]
@="dllfile"

[HKEY_CLASSES_ROOT\dllfile]
@="App Extension"

[HKEY_CLASSES_ROOT\dllfile\Shell\Register\command]
@="regsvr32.exe \"%1\""

[HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""


// .OCX files
[HKEY_CLASSES_ROOT\.ocx]
@="ocxfile"

[HKEY_CLASSES_ROOT\ocxfile]
@="App Extension"

[HKEY_CLASSES_ROOT\ocxfile\Shell\Register\command]
@="regsvr32.exe \"%1\""

[HKEY_CLASSES_ROOT\ocxfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\
 
thanks guys

franks i used that before. I am distributing an access database with an activex componet so i will need the target audience to install the dll's. The intended audeience we can assume has no real idea other than click buton please show me result....(We are talking management)

gmmastros suggestion works a treat
 
here is my script it's not working properly however...It will only copy if the destination name of the file is different and will not allow me to copy a shortcut to the desktop or I am doing it wrong


copy "C:\COLModel\Data Files\COL\Crystl32.ocx" C:\WINNT\system32\Crystl32.ocx

this is the shortcutline
copy "C:\COLModel\Data Files\COL" Wanna copy to desktop

regsvr32 C:\WINNT\system32\Crystl32.ocx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top