How can I manually register a DLL with a CustomAction?
I'm repackaging MSDN98 for VB6. I've come across a DLL which refuses to self-register and causes silent installation to fail. Therefore I removed the offending DLL from the Selfreg table which allows for a successful installation.
Which leads me to the question: how do I register the DLL manually? I can't do <DLL> /regserver, but regsvr32 <DLL> works. How do I translate the latter to a customaction? I tried a type 34 pointing the source to system32 and the target regsvr32.exe <DLL>, but installation just froze upon executing the CA.
Thanks
Which leads me to the question: how do I register the DLL manually? I can't do <DLL> /regserver, but regsvr32 <DLL> works. How do I translate the latter to a customaction? I tried a type 34 pointing the source to system32 and the target regsvr32.exe <DLL>, but installation just froze upon executing the CA.
Thanks
0 Comments
[ + ] Show comments
Answers (9)
Please log in to answer
Posted by:
wiseapp
19 years ago
Hi Meas:
In that case you could probably write a vbscript that shall do the task and then include it within your package, A sample VBScript is enclosed here in:
On Error Resume Next
'Setting tool and paths
strComputer = "."
Set ObjRegistry = GetObject("winmgmts:{impersonationLevel = impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
strRegsvr = "regsvr32.exe"
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run(strRegsvr& " C:\vmmreg32.dll")'the name of the dll can be changed here. Please keep a space between the quote and the path of the dll.
I hope this would definitely help.
In that case you could probably write a vbscript that shall do the task and then include it within your package, A sample VBScript is enclosed here in:
On Error Resume Next
'Setting tool and paths
strComputer = "."
Set ObjRegistry = GetObject("winmgmts:{impersonationLevel = impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
strRegsvr = "regsvr32.exe"
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run(strRegsvr& " C:\vmmreg32.dll")'the name of the dll can be changed here. Please keep a space between the quote and the path of the dll.
I hope this would definitely help.
Posted by:
MSIPackager
19 years ago
Posted by:
wiseapp
19 years ago
Posted by:
meastaugh1
19 years ago
Posted by:
MSIPackager
19 years ago
Posted by:
MSIPackager
19 years ago
Posted by:
meastaugh1
19 years ago
Posted by:
wiseapp
19 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.