IE ActiveX control installation with inActive Dir?
IE ActiveX control installation with inActive Dir?
Author
Discussion

Don

Original Poster:

28,378 posts

308 months

Monday 17th May 2004
quotequote all
I'm trying to persuade our Active Directory to publish some ActiveX controls to authenticated users on our Domain. These controls are written by ourselves and are usually installed via Internet Component Download (a CAB file on the Web Server and some IE wizardry).

The controls are part of our web app. Now of course the ICD method of installation is all very well until you come across a highly controlled environment and then the controls can't install due to lack of permissions.

So IE is supposed to be able to *transparently* visit the Active Directory for any controls mentioned in OBJECT tags on its web pages and Install from there if it doesn't have permissions to do it the "old-fashioned" way.

But it does not bloody work!

I've done the registry setting thing for IE and the end user can go to Control Panel/Add Remove Programs and install the control manually but will IE do it automatically? No it bloody won't.

Anyone actually made this work? Information leading to an arrest will ensure the poster gets bought a beer.

Don

Original Poster:

28,378 posts

308 months

Monday 17th May 2004
quotequote all
BTW: I have Visual Installer etc and have made an MSI file according to the instructions..

GregE240

10,857 posts

291 months

Monday 17th May 2004
quotequote all
Don, this sounds like IE6?

I seem to recall they tightened up IE6 security to prevent this sort of thing - I was trying to write a similar sort of thing a while back, and gave up basically - the customer site had SMS set up so just got the packaging monkeys to script the damn thing.

Sorry I can't be of any further help. What error do you get? Or you don't get anything at all?

GT

Don

Original Poster:

28,378 posts

308 months

Monday 17th May 2004
quotequote all
GregE240 said:
Don, this sounds like IE6?

I seem to recall they tightened up IE6 security to prevent this sort of thing - I was trying to write a similar sort of thing a while back, and gave up basically - the customer site had SMS set up so just got the packaging monkeys to script the damn thing.

Sorry I can't be of any further help. What error do you get? Or you don't get anything at all?

GT


Thanks for the reply, Greg. Yep - I am using IE6. And the error message is the usual "Object does not support this property or method" one that one gets when a control fails to load.

We've been making CAB'd installs work great for years. This Active Directory malarchy works fine too - its just the IE "transparent installation" that doesn't seem to...

Its driving me potty!

Thanks again...anyone else have an idea?

Plotloss

67,280 posts

294 months

Monday 17th May 2004
quotequote all
Tried the script debugger so you can see exactly when its bombing out?

Its not a silly syntax error in the script is it?

Don

Original Poster:

28,378 posts

308 months

Monday 17th May 2004
quotequote all
Plotloss said:
Tried the script debugger so you can see exactly when its bombing out?

Its not a silly syntax error in the script is it?


Nope. The pages all work fine with the control installed - the Script is good. Its the fact that the control isn't there causes the error.

And the control gets there just fine via the "Signed CAB" method. It gets there fine if I go to the Control Panel and install the package using Add/Remove programs. Internet Explorer seems unwilling to trigger the installation, though. Very strange. The Microsoft web-site has a couple of articles on how to make it work which I have followed to the letter.

It just D.F.W.

Don

Original Poster:

28,378 posts

308 months

Monday 17th May 2004
quotequote all
Any other suggestions?

andyf007

863 posts

282 months

Monday 17th May 2004
quotequote all
The settings on the IE advanced settings page are set correctly for unsigned active x controls etc?

Don

Original Poster:

28,378 posts

308 months

Tuesday 18th May 2004
quotequote all
andyf007 said:
The settings on the IE advanced settings page are set correctly for unsigned active x controls etc?


Yep. And we actually sign the controls and mark them "safe for scripting" too.

Bit of a stumper...

andyf007

863 posts

282 months

Tuesday 18th May 2004
quotequote all
You say that you can install it through Add/Remove, but does the user have the same admin rights etc.?

Have you tried changing the settings in the group policy under computer/administrative templates/windows installer? In particular the "...elevated privileges...." and the "...IE security prompt..." ones etc, can be used to allow background installs, but be aware of the security risks.

Don

Original Poster:

28,378 posts

308 months

Tuesday 18th May 2004
quotequote all
andyf007 said:
You say that you can install it through Add/Remove, but does the user have the same admin rights etc.?

Have you tried changing the settings in the group policy under computer/administrative templates/windows installer? In particular the "...elevated privileges...." and the "...IE security prompt..." ones etc, can be used to allow background installs, but be aware of the security risks.


I'll look into that now. Thanks!

Don

Original Poster:

28,378 posts

308 months

Tuesday 18th May 2004
quotequote all
Andy!


WHAT A STAR! It was the Disable IE Security Prompt for Windows Installer Scripts policy. I needed to Enable it. Then it just worked!



Now I need to figure out how to ensure all computers on the domain have the

HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentversionInternet Settings, UseCoInstall

registry value set to 0x1

How do you propagate registry settings using Active Directory (sorry I am such an Administration numpty) and all help very gratefully (and humbly) recieved...

GregE240

10,857 posts

291 months

Tuesday 18th May 2004
quotequote all
Don said:
Andy!


WHAT A STAR! It was the Disable IE Security Prompt for Windows Installer Scripts policy. I needed to Enable it. Then it just worked!



Now I need to figure out how to ensure all computers on the domain have the

HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentversionInternet Settings, UseCoInstall

registry value set to 0x1

How do you propagate registry settings using Active Directory (sorry I am such an Administration numpty) and all help very gratefully (and humbly) recieved...

You could save it as a .REG file and use Group Policy to distribute it?

Don

Original Poster:

28,378 posts

308 months

Tuesday 18th May 2004
quotequote all
GregE240 said:

You could save it as a .REG file and use Group Policy to distribute it?


Sounds good. Thanks, Greg! OK...I'll google up on how to do that...

Don

Original Poster:

28,378 posts

308 months

Friday 21st May 2004
quotequote all
Oh dear.

So I rebuilt all my controls into nice MSI packages...and now nothing will deploy again.

You can see the packages in Add/Remove programs but IE won't do an automatic transparent install. Bugger knows what's changed but its not working.


Any other suggestions?