jayaram

jayaram

  • NA
  • 83
  • 36.8k

how to register and silent install of activex dll's in client side by using vbscript

Feb 24 2011 6:48 AM
hi sir,
I have written to register and silent install in client side in the following way by using vbscript.
But it gave an error as "failed to load", so please tel me correct code.
In this process I have to use DPFPDevX.dll,DPFPCtlX.dll,DPFPEngX.dll,DPFPShrX.dll.
These Dll files are available in "Activex" folder of "ActiveXWebsite" website.


"DIM oShell
Set oShell = CreateObject("WScript.Shell")
iReturn = oShell.Run("CMD /C regsvr32.exe ""http://localhost/aspnetvir/ActiveXWebsite/Activex/DPFPDevX.dll""", , True)"


But,
It works when I use following way but in my requirement i dont have to use this way

iReturn = oShell.Run("CMD /C regsvr32.exe ""D:\New folder\ActiveXWebsite\Activex\DPFPDevX.dll""", , True)


Answers (3)