Page 1 of 1

ActiveX object stops working after Windows 7 upgrd

Posted: Tue May 11, 2010 6:06 pm
by gning
I have this WSH script that I used for a long time on an old computer (Windows 2000!). It calls a third-party ActiveX control to handle the task of reading an image file to determine its width and height. I moved the script to a new Windows 7 machine, and it no longer works -- the "new ActiveXObject(name)" line now bombs out with "Automation server can't create object". I have installed the ActiveX DLL and Regsvr32'd it with apparent success.

I assume that the problem is security -- Windows 7 has to be reassured that the unknown DLL is safe, or something. How do I persuade it to use this ActiveX object?

Or maybe what I need to do is replace it with something newer. Does anyone know of an up to date way for a Windows 7 WSH script to measure the dimensions of a GIF or JPG image file?

ActiveX object stops working after Windows 7 upgrd

Posted: Tue May 11, 2010 6:06 pm
by gning
I have this WSH script that I used for a long time on an old computer (Windows 2000!). It calls a third-party ActiveX control to handle the task of reading an image file to determine its width and height. I moved the script to a new Windows 7 machine, and it no longer works -- the "new ActiveXObject(name)" line now bombs out with "Automation server can't create object". I have installed the ActiveX DLL and Regsvr32'd it with apparent success.

I assume that the problem is security -- Windows 7 has to be reassured that the unknown DLL is safe, or something. How do I persuade it to use this ActiveX object?

Or maybe what I need to do is replace it with something newer. Does anyone know of an up to date way for a Windows 7 WSH script to measure the dimensions of a GIF or JPG image file?

ActiveX object stops working after Windows 7 upgrd

Posted: Wed May 12, 2010 4:28 am
by gning
I've contacted the maker of the DLL to ask if they know of any incompatibility with Windows 7.

ActiveX object stops working after Windows 7 upgrd

Posted: Wed May 12, 2010 4:22 pm
by jvierra
Editong the path for this in the registry may not be a vrey good idea as it's effect would be global.

Yes - No activex controls will run correctly in a 64 bit session unless they have been built correctly.

Glad you found the problem. Checking first with the vendor of a third party tool is usually quickest.


ActiveX object stops working after Windows 7 upgrd

Posted: Wed May 12, 2010 4:36 pm
by gning
What really amazes me is, given that this problem is both quite simple and quite general, and therefore should have bitten lots of people... how utterly impossible it was to find any useful information about it by prolonged web searching.