Gentlemen, Just come across a really weird problem whilst installing some software on a new machine. It uses MSCAL.OCX as an ActiveX component which on the majority of machines is installed by default. However in this case it isn't and hence requires regsvr32 to register it - or (as I thought) simply to place the ocx into the folder of the application where it should be picked up automaticall - which it is NOT doing!
Is this just a feature of MSCAL.OCX i.e it can't be put into the application folder and why doesn't it work!!!
Unfortunately the machine(s) I am loading it on are locked down as non administrator users and nobody seems to know the administrator password on the network due to the network being managed by a 3rd party who are not available...
Any ideas?
Dave
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
IIRC the only way you can have an OCX that doesn't require registration is if you include a manifest file with it. That OCX is part of MS Access, can you install Office on the PC?
Isn't there a way to add the registry settings needed to the HKCU node?
Tracy
On February 27, 2017 8:25:45 AM EST, Alan Bourke alanpbourke@fastmail.fm wrote:
IIRC the only way you can have an OCX that doesn't require registration is if you include a manifest file with it. That OCX is part of MS Access, can you install Office on the PC?
Dne 27.2.2017 v 14:18 Dave Crozier napsal(a):
Gentlemen, Just come across a really weird problem whilst installing some software on a new machine. It uses MSCAL.OCX as an ActiveX component which on the majority of machines is installed by default. However in this case it isn't and hence requires regsvr32 to register it - or (as I thought) simply to place the ocx into the folder of the application where it should be picked up automaticall - which it is NOT doing!
Is this just a feature of MSCAL.OCX i.e it can't be put into the application folder and why doesn't it work!!!
Unfortunately the machine(s) I am loading it on are locked down as non administrator users and nobody seems to know the administrator password on the network due to the network being managed by a 3rd party who are not available...
Any ideas?
There is a way how to registr OCX from your code, but without admin rights I am affraid it does not help:
cOCXname=GetFile([OCX], [ActiveX]) DECLARE LONG DllRegisterServer IN "&cOCXname." IF DllRegisterServer() = 0 MessageBox([Registration of]+chr(10)+cOCXname+chr(10)+[O.K.]) ELSE MessageBox([Registration of]+chr(10)+cOCXname+chr(10)+[failed]) ENDIF
* You can use DllUnregisterServer to unregister the ocx.
Dave
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
fwiw Google tells me it is now deprecated by ms
Many years ago I used it in a webpage - for users who didn't have it there was a way for them to download it (<obj> tag?? - it's been a looong time), ... but don't know whether that would work without admin privs or with a locked-down browser profile.