Package and Deployment error
I have used the Inno Setup Compiler to create an installer for my VB6 application, which I've developed on an XP machine. I use the resulting setup.exe to successfully install the app on my two Windows 7 machines. However, in both cases, when I try to run the app I get the following error:
Component 'MSWINSCK.OCX' or one of its dependencies not correctly registered: a file is missing or invalid
As far as I know, I do not use this .ocx in my app. (It is in the WINDOWS\system32 directory on my XP machine).
After some sleuthing, I found http://angrybyte.com/windows-hacks/mswinsck-ocx-for-64-bit-windows-7-vista/
. This had me install MSWINSCK.OCX in the Windows\SysWOW64 directory (as opposed to the Windows\System32 directory) on my Windows 7 machine. Unfortunately, an attempt to register this file on my Windows 7 machine [regsvr32 c:\windows\syswow64\MSWINSCK.OCX] gave me the following error:
RegSvr32: The module "c:\windows\syswow64\MSWINSCK.OCX" was loaded but the call to DllRegisterServer failed with the error code 0x8002801c.
More googling finds http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_install/windows-7-pro-error-code-0x8002801c/518c72cd-2a89-47fa-bf01-cb88470b1f0c
, which tells me to obtain an up to date version of mscomct2.ocx (from http://activex.microsoft.com/controls/vb6/mscomct2.cab
). I install this in C:\Windows\SysWOW64 on my Windows 7 machine. However, an attempt to register this gave the same error code 0x8002801c message.
Any thoughts? Thanks in advance for your expert help.