Windows7 ActiveX Control for Access 2003 won't register

Rx_

Nothing In Moderation
Local time
Today, 11:30
Joined
Oct 22, 2009
Messages
2,795
Suggestions for register of ActiveX for Access runtime on Windows 7?

I was called in to help another site with Access 2003 runtime.
There is a folder with ActiveX controls for calander, treeview, and several others.

The folder has a register.bat file that worked perfectlly on three other XP laptops. But, on Windows 7, the application failed.

Just to verify that it was the problem, the Register.Bat was not run on one of the XP portables. The error was exactly the same as the Windows 7 computer. After running Register.Bat on the XP, the Access runtime application worked just fine.

While this is probably a Windows 7 quesiton, it might be something that other Access users have encountered.
 
When anything registers something on Windows 7 you need to use elevated permissions. You can't just run it under normal permissions, even if you are logged in as the administrator of the account. You would have to run the bat file AS ADMINISTRATOR (which would use the elevated permissions).
 
I'm going to make a wild guess here and assume that Windows 7 is 64-bit:

What does the path the register.bat uses to look up the controls? If it's going in C:\Windows\System32\, then that is incorrect for a 64-bit OS. You should be using instead C:\Windows\SysWOW64\ to look up 32-bit DLLs. When you add references via VBA, the redirection will happen automatically but when you're doing it in external process like batch file, you have to adjust path accordingly.

If your Windows 7 isn't 64-bit then this does not apply and more information is needed.
 
Thanks to both of you!
I was logged in as Administrator, will look more into that.
And, the 64 bit quesiton (in the old days it was the 64 dollar question) is something I will verify now.

Someone at the coffee machine mentioned running in XP mode?
Might as well throw that out while I check into the other two.
 
Again, it matters not if you were logged in as Administrator. When you do certain things in Windows 7 (or Vista) you need to run the process "As Administrator" which means that you have to right click on the file and select RUN AS ADMINISTRATOR (even if you are logged in as administrator) so it will run with elevated permissions. If you have an automated process then you have to provide a "manifest" with the program so that it can know if elevated permissions are required. So, I have not had to do that but you can do a search on Windows 7 manifest and find out more about that.
 

Users who are viewing this thread

Back
Top Bottom