Highlighted
Absent Member.
Absent Member.
536 views

[archive] Vista - activex controls

[Migrated content. Thread originally posted on 22 March 2007]

We are testing Vista and have realized that we can no longer register the activex controls that we release without executing the runtime as an administrator. We are using a C$SYSTEM call to regsvr32.

If we execute the runtime as an administrator (option in the icon or in the right mouse click menu), the controls register fine. If not, they don't get registered. After much research on the web, this is a commonly known "feature" of Vista.

Does anyone know of a way to get around this? Or another way to register controls? I don't want to force users on Vista to execute the runtime as an administrator...

Thanks,
Rob
0 Likes
7 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] Vista - activex controls

Hi,

Search the forum for "The process of determining if a control is installed" posted by Gisle - a good resource. He has another way of registering controls by calling DllRegisterServer of the AX control.

Hope this helps. I would be interested to know how you get on. We will be testing our apps on Vista soon and we will have the same problem.

Please keep us posted.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Vista - activex controls

An alternative yes, but it will not help for his issue, which is a matter of privileges. There is an API mechanism to let an application run itself in another security context than it actually is, but that would nevertheless involve administrator username and pwd. So not of much help that either am I afraid.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Vista - activex controls

I had the same problem and atm the only one work-around i found is deactivate 'Use User Account Control (UIC) to help protect your computer' check in the user account management. Doing that all work like Windows XP.

I know is not a nice solution skip the new feature of Vista, but i didn't know what to do in waiting for some solution from Acu in the new Runtime Vista compatible (i hope).
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Vista - activex controls

Donant,

Unfortunately, I don't believe a fix is coming about this from Acucorp. I think it's a Vista "feature". I think we'll need to be looking for Microsoft to give more flexibility or perhaps a third party solution. If I'm wrong, I'm sure Gisle will chime in and give us good news!

Rob
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Vista - activex controls

This is indeed a Vista feature, ACUCOBOL-GT is not the only environment getting into this kind of trouble. If we can find a good solution to this is too early to tell yet.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Vista - activex controls

I think that at a minimum, if there were a way to prompt the user to enter their vista admin user and password for a one time registration of activex controls, that it wouldn't be so bad.
Gisle, do you know if the DllRegister windows api call does this?
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Vista - activex controls

I presume you know of the executable RunAs? If you use this one to execute the runtime, e.g.:

runas /user:localmachinename\administrator wrun32 cobolapp

The user will be prompted for a password, but the instance of wrun32.exe will have administrator privileges and as such be able to do what you want.

Another alternative, more complex but gives you much more control is to use the CreateProcessWithLogonW. You will spawn of a separate version of the runtime, but nevertheless, it is given the required privileges.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.