ocx issue - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ci3msk
Posts: 10
Joined: Thu Jun 07, 2012 8:44 pm

ocx issue

Having a problem with a particular OCX file once people upgrade their app to our newest version that uses Advanced Installer. It is a "bar code" component (Talbarcd.ox) we have used for many many years. Before this Advanced installer version we used to install this ocx to the System32 directory. When people upgrade to this new version using Advanced install we put the file now at something like: c:\program files\companyname\appname\bin.

Seems to do this on both XP and Windows 7. They 1st are required to uninstall their old version and then install the new version with a user who was a local admin on the machine. People in the local admin group can run the app just fine. However others not in the local administrators group are having a problem with the bar code OCX file. When someone runs my app and they are not in the local admin group it just shows on the screen a box with the error "Bar Code DLL was not found or is not loaded" instead of the barcode image that normally shows.

Also if it matters this file is set: "Auto Register file", "Self register native library"

Any ideas? Never had an issue like this before. The fact that adding this same user to the local admin group makes it work fine has to tell us something but i'm not sure what.

Thanks!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: ocx issue

Hello and welcome to Advanced Installer forums,

I'm not sure why this happens. Do you have permissions set on your installation location?

Also, can you please try to manually install and register your application resources and see if the behavior still reproduce?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ci3msk
Posts: 10
Joined: Thu Jun 07, 2012 8:44 pm

Re: ocx issue

I have one more partial piece of info... we are waiting to hear back full details of this:

I told our support representative to have the customer look for the OCX and DLL files for the Bar Code component and see if they are there in the folder we install them to. From what they said the files are there for the people who it works for and they are not there for the people who it doesn't work for... This is an XP machine. I am going to get more details on this but i'm assuming all the other DLLs are there for both users because they can run the app and don't report any other issues but we will have them check and see.

Any ideas would be helpful
thank you!
ci3msk
Posts: 10
Joined: Thu Jun 07, 2012 8:44 pm

Re: ocx issue

I was able to recreate this issue. Looking for a suggestion as to what to do about it now ASAP as my customer is growing impatient and was supposed to be going live with our product next Monday.

I took a new install of XP and had a user who was a local admin install my software. The software works just fine for this user and anyone else in the local admin group. When running the software as a user or power user the software runs but is unable to load up some of the OCX components it uses. Some work fine, others do not.

I got this work by logging in as the user who is only a member of the users group and manually registered the component using regsvr32. After registration succeeded i ran my app and it was working.

:!: EDIT: The user was actually a member of the Power Users Group (PUG). So when a member of PUG you can register the component and it registers fine and then works in the application. I retested this with people in just the Users Group and you get a successful registration message but it still doesn't work in the software. Also when you register this as someone in the PUG it only works for that person. If you login in as another person else who is in the PUG it is still broken for them until you register in again under that users login. :!:

What's going on here? It's like some components are only registered for local admin user groups? Please advise on what to do on this

thanks!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: ocx issue

Hi,

The option recommended for registering the OCX file is "Extract registration info from native library". When this option is set the registry keys
that register is should be visible in Registry page, so you can check them very easily.

Also, I didn't understood from your previous posts. Is the problem appearing on both XP and Win7 ?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ci3msk
Posts: 10
Joined: Thu Jun 07, 2012 8:44 pm

Re: ocx issue

Bogdan,

Talking to our Support person it seems to be just an XP issue. We have people doing new installs on Windows 7 and it doesn't appear to have this issue.

I will make the change you recommended and retest in house and see if that fixes things.

So do you think changing the option to "Extract registration info from native library" will solve this issue and make it so if the installer is run as someone who is a "local admin" components will be registered for all people who are only in the "Users" group as well?

Also - What is the recommended "Synchronization" options i should selet?

Thanks!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: ocx issue

Hi,
So do you think changing the option to "Extract registration info from native library" will solve this issue and make it so if the installer is run as someone who is a "local admin" components will be registered for all people who are only in the "Users" group as well?
No other users complained about this problem, so it should work for you too.
Also - What is the recommended "Synchronization" options i should selet?
This is up to you. If you know that changes could occur than a build synchronization would be required. But if the file is to not be changed than you can even disable it.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ci3msk
Posts: 10
Joined: Thu Jun 07, 2012 8:44 pm

Re: ocx issue

Bogdan,

I did as you suggested and still have same issue.

After changing and recompiling a new install - on my test machine i 1st unregistered the OCX component in question and then uninstalled the application. I then installed the app as a user with local admin rights and everything works great for this local admin user. I then logged in as a user with only "power user" rights and the component doesn't load in the app. I logged back in with local admin again and gave this user local admin rights. Then when logging in as the user it works fine for them. Also as the user with just power user rights if i manually register the file with them logged in using regsvr32 it will work under their profile.

Any other ideas i could try?
thanks
ci3msk
Posts: 10
Joined: Thu Jun 07, 2012 8:44 pm

Re: ocx issue

Any other thoughts would be appreciated as my customer is about to blow a gasket.

As a side note i tested this same "new" install out in a Windows 7 environment and it does not have this issue, so it appears to be limited to XP.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: ocx issue

Hi,

We'll have to analyze the following to get more details:

1) When you set the file to register with the extract info option can you please go to Registry page and check to see if the registry entries are extracted under HKCU or HKLM?

2) Can you please try to launch your application with the option "Run as" and select an admin user from the list?

3) You should check to see if your application requires to run elevated for the first time in order to load the DLL. Normally this is not the case, but some application do this for various reasons.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ci3msk
Posts: 10
Joined: Thu Jun 07, 2012 8:44 pm

Re: ocx issue

Bogdan,

I created a simple VB6 test project and simple installer that just installs the exe and the 2 barcode DLLs in the zipped attachment. I was able to recreate the issues with this. (I didn't include the VB6 runtime merge modules in the installer because that made the zip too large to upload, you may not need them anyways)

Steps to recreate:
1) on an XP machine install the app as someone with local admin rights. The app will run fine for all in local admin group - all it does is show a barcode image if it works.
2) create and login as a user who only has "user" rights on the machine. The app will run but not display the barcode graphic.

I will also look at what you suggested in your last post
thanks
Attachments
Barcodetester.zip
test installer
(895.53 KiB) Downloaded 381 times
ci3msk
Posts: 10
Joined: Thu Jun 07, 2012 8:44 pm

Re: ocx issue

Bogdan wrote: 1) When you set the file to register with the extract info option can you please go to Registry page and check to see if the registry entries are extracted under HKCU or HKLM?
2) Can you please try to launch your application with the option "Run as" and select an admin user from the list?
3) You should check to see if your application requires to run elevated for the first time in order to load the DLL. Normally this is not the case, but some application do this for various reasons.
1) Went to the registry page in AI and it looks like the component info is only listed under HK_Classes_Root. I don't see any entries under HKCU or HKLM. I looked on the test machine in question and I see the entries added under HKCR also.
2) Yes if I right click and run as and select a user with local admin rights it runs the app just fine.
3) Where would I check for this? I'm assuming not since I was able to recreate this issue in the very simple example installer i attached above.
ci3msk
Posts: 10
Joined: Thu Jun 07, 2012 8:44 pm

Re: ocx issue

With some assistance, we narrowed it down to the fact that on this particular machine when logged in as a 'user' or a 'power user' it was trying to access "HKCR\CLSID\{C917E12F-9757-11D2-85DB-F01851C10000}\InprocServer32" with full permissions and failing. That is the entry relating to the component we are having issues with: Talbarcd.ocx

I logged in as a local admin and gave full permissions to that registry entry to 'users' and 'power users' on the machine and then everything started working fine under both of those profiles!

Any thoughts as to what we could do to solve this?
thanks!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: ocx issue

You can try to apply those permissions to the registry entries extracted by Advanced Installer in Registry page, when you have the option "Extraction registration information" enabled for the file.

Also, very important, make sure that synchronization is disabled in this case, so the registry entries are not refreshed by Advanced Installer automatically, which would lead to losing your customized permissions settings.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ci3msk
Posts: 10
Joined: Thu Jun 07, 2012 8:44 pm

Re: ocx issue

Bogdan,

This sure look slike it solved my issue. I told it to give the Users and Power Users groups full control over this one particular key and it appears to have made everything work now under those two user groups. I appreciate the help, thanks!

Return to “Common Problems”