ActiveX object stops working after Windows 7 upgrd

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
gning
Posts: 4
Joined: Tue May 11, 2010 6:01 pm

ActiveX object stops working after Windows 7 upgrd

Post by gning » Tue May 11, 2010 6:06 pm

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?

User avatar
gning
Posts: 4
Joined: Tue May 11, 2010 6:01 pm

ActiveX object stops working after Windows 7 upgrd

Post by gning » Tue May 11, 2010 6:06 pm

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?

User avatar
gning
Posts: 4
Joined: Tue May 11, 2010 6:01 pm

ActiveX object stops working after Windows 7 upgrd

Post by gning » Wed May 12, 2010 4:28 am

I've contacted the maker of the DLL to ask if they know of any incompatibility with Windows 7.

User avatar
jvierra
Posts: 13392
Joined: Tue May 22, 2007 9:57 am
Contact:

ActiveX object stops working after Windows 7 upgrd

Post by jvierra » Wed May 12, 2010 4:22 pm

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.


User avatar
gning
Posts: 4
Joined: Tue May 11, 2010 6:01 pm

ActiveX object stops working after Windows 7 upgrd

Post by gning » Wed May 12, 2010 4:36 pm

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.

Locked