VB6 Program does not run after installing with AI 11.7.1 - Advanced Installer Community
fftempest
Posts: 4
Joined: Wed Jan 28, 2015 10:21 pm

VB6 Program does not run after installing with AI 11.7.1

Hello,
I have imported a VB6 project that uses the following ocx's - comctl32, comdlg32, mscomct2, mswinsck, tabctl32, and flexcell. All of these ocx's are in the Application Folder and I selected "Autoregister - Extract registration info from native library" for all of them. I also added the VB6 runtime in the Prerequisites Feature-based. I create the installation, install it on a virgin Windows 7 machine, but then after the install the program does not run. It gives me an error of "Component 'FlexCell.ocx' or one of its dependencies not correctly registered: a file is missing or invalid". I tried manually registering FlexCell.ocx (registration successful), but it still gives me the same error. If I use the Package and Deployment Wizard with Visual Studio 6 it creates the installation and the program runs fine afterwards. I have been working on this for over a week and cannot seem to get it right. Any help would be appreciated.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: VB6 Program does not run after installing with AI 11.7.1

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

This may happen if you are not installing all the dependencies of your application files. You can go to "Files and Folders" page and use the [Add Dependencies] toolbar button to check/add, in turn, all your files dependencies.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fftempest
Posts: 4
Joined: Wed Jan 28, 2015 10:21 pm

Re: VB6 Program does not run after installing with AI 11.7.1

Daniel,
Thank you for your quick reply but I am still confused. I thought if I imported a VB6 project it would figure out all the dependencies. I looked at each installation with InstallWatch and I am copying the same exact files as the Package and Deployment from Visual Studio. Although the VS install puts the ocx's and dll's in both the system32 and the syswow64 directories, and the AI install just puts all those files into the application directory, but I don't think that matters once the files are registered - do you agree? I did have to add one file - VB6STKIT.dll (I added this file long before I posted on this forum) which was being copied by the VS install but not AI, but still no success. I am now using a program called Dependency Walker ver 2.2.6 and it shows the same results when I use either installation (VS or AI) - those results - If I look at the executable of my program with Dependency Walker it shows an error on msvbvm60.dll (can't find file). If I look at FlexCell.ocx it finds msvbvm60.dll but does not find ieshims.dll (path from FlexCell.ocx is FlexCell.ocx -> msvbvm60.dll -> advapi32.dll -> wintrust.dll -> crypt32.dll -> userenv.dll -> shell32.dll -> shdocvw.dll -> ieframe.dll -> ieshims.dll), but like I said the results are identical from both installations. Do you have any other suggestions? I can send you the verbose log along with the project file and text outputs of the files installed and registry entries added from Install Watch.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: VB6 Program does not run after installing with AI 11.7.1

Hello,

Maybe your DLL and OCX registration fails or is done only partially when using the "Extract registration info from native library" registration option. Can you please enable the "Self register native library" option for your files, rebuild the setup and then test again the installation?

Also, can you send us a download link for your .aip (project file) and its built setup package to support at advancedinstaller dot com so we can investigate them on our side?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fftempest
Posts: 4
Joined: Wed Jan 28, 2015 10:21 pm

Re: VB6 Program does not run after installing with AI 11.7.1

Daniel,
Thanks again for the quick response. I also responded to your email, this post is a copy of most of that response, mainly for others researching the same problem.
I did try your suggestion and it was unsuccessful, the program did not run - same error as before. I also got an error during the installation for registering msxml6.dll.
After the installation, I opened up a command prompt (as admin) and successfully registered the dll by typing "regsvr32 msxml6.dll". The program still did not run.
I have also manually registered all the ocx's and dll's after the installation (manual registration successful) but the program still does not run - same errors as before.
I have sent the files you requested in my response email.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: VB6 Program does not run after installing with AI 11.7.1

Hello Frank,

I've tested your installation setup and I was able to replicate the behavior. Unfortunately, the same error still appears even after all the installed files are manually registered. I'm not sure why the error still appears after manually registering the files, but maybe there is still a dependency of your application which wasn't been installed or maybe your application is corrupted. You should try to debug your main application EXE in order to try finding out more details about this error.

Also, can you please send us a download link to the setup package created with Package and Deployment Wizard from Visual Studio 6 (which successfully install and register the application files) so we can investigate this too? Maybe we figure out something by using a diff between the two setups packages.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fftempest
Posts: 4
Joined: Wed Jan 28, 2015 10:21 pm

Re: VB6 Program does not run after installing with AI 11.7.1

Daniel,
Thank you very much for your help. It is now working.
I added all the files you had in your example but it still wouldn't work, then I looked at the version numbers and source locations for each file.
I found the root cause of all the trouble, I was installing a different version of the FlexCell.ocx control. The version AI found during the Visual Basic 6 import was incorrect. It was getting it from the Windows/System32 directory. I found the version of the file you had in your example file (taken from Visual Studios Package & Deployment wizard) and then the install worked. I wound up deleting files (one at a time with testing between) until I got down to the core files I needed, which were actually the ones I started out with long ago (besides the different version of the FlexCell.ocx).
If you would have just given me a list of files without the sample .aip I would have never found my mistake. Thank you for your diligence and prompt assistance.

Return to “Common Problems”