MSWINSCK.OCX dependency problem on Domain

Posted on 2005-04-20
Last Modified: 2013-11-22

This is driving me nuts!  I've never had this problem and then all of a sudden poof!

I'm setting up a new windows 2000 pro computer.  I then add it to my work domain.  Then I re-login as Admin on the local account so I can install my VB6 program.  When I test it, it works fine.  I then select the folder from Program File and change the security settings  for Users->Full Control. Then I login as a domain account and start the program.  Now I get...

"Run-Time Error 339
Component 'MSWINSCK.OCX' or one of it's dependencies not correctly registered: a file is missing or invalid."

I checked the system.  The mswinsck.ocx is in C:\winnt\system32 and I even re-registered it myself with regsvr32.exe just to be sure.  The program opens fine when opened from Administrator (local), but when I try another users (doman) it won't work!!!

What really drives me crazy is that I got this program installed in about 20 locations and they all work fine with domain logins.

The only difference I can think of is that I remade the installer using the new Visual Studio Installer instead of the regular Package and Deployment Wizard.  I don't want to remake the installer with the old wizard because I've already made many untested changes to the sourcecode and I don't have time to fully complete the changes and debug!  This is turning into a disaster!  

I thought maybe the Visual Studio Installer somehow didn't install the OCX in a domain-friendly manner, so I uninstalled my program and re-installed an older version packaged with the old deployment wizard.  Even this won't run!!!!

So to repeat:
- I've done this fine about 20 times
- Now only the local accounts open the program.  Accounts from the domain give the above error. (This only applies to fresh installations of Windows 2000.  Old installations work no prob)
- MSWINSCK.OCX is properly installed and registered.

Anyone have any ideas???  I need to get this working today!


Question by:MasterWoodsman
    LVL 1

    Author Comment

    I just thought of 2 more things to point out...

    1)  I've had a few problems with the LDAP server.  I restarted it yesterday all they all seem to be fixed.  I don't know if something got screwed up in there.  But all the old workstations are working just fine.

    2) Any new (LOCAL) account with admin priviledges will open the program no problem also!
    LVL 29

    Accepted Solution

    When you install visual studio, it writes to the registry giving you rights to use dependencies files for the account you installed it on.

    Have you tried copying mswinsck.ocx from the admin account and dropping it into the domain system32 directory.

    obviously the issue might not be mswinsck.ocx itself, it could be one of its dependencies,

    Run package and deployment wizard, read the setup.lst file it creates..

    [Boot strap]
    you want to ship all these files with

    [Setup Files]
    List of your dependecies.

    Try to install it using package and deployment wizard see if it works using the setup.


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
    In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now