Follow

DIA error: "Ocx not correctly registered" after playback on FPC or in the VDI pool.

Product: ProfileUnity

Product Version: 5.5

Expires on: 365 days from publish date

Updated: November, 20 2013

 

 

Problem:

Application (FoodWorks 7) is trowing an error message after playback on FPC (FlexApp Packaging Console) or in the VDI pool.

Error: "Component 'name_here.Ocx' or one of its dependencies not correctly registered: a file is missing or invalid - 339'."

 

Symptoms:

FoodWorks7 DIA Example:

Ocx_component.jpg

 

Possible Resolution(s):

The application's registered components were not captured correctly. 

The log file (FW2013111_143814.LOG) contains following line:

"Description: Component 'Vsflex7L.ocx' or one of its dependencies not correctly registered: a file is missing or invalid"

By trial and error the list incorrectly registered dlls was compiled. Following commands are necessary to register the Ocx (Active X components)

regsvr32 /s Vsflex7L.ocx
regsvr32 /s comctl32.Ocx
regsvr32 /s sysinfo.ocx
regsvr32 /s MSCOMCTL.OCX
regsvr32 /s comctl32.Ocx
regsvr32 /s ComDlg32.OCX
regsvr32 /s graphs32.ocx
regsvr32 /s mscomct2.ocx
regsvr32 /s mscomctl.OCX
regsvr32 /s MSINET.Ocx
regsvr32 /s msmapi32.Ocx
regsvr32 /s sysinfo.Ocx
regsvr32 /s TabCtl32.Ocx
regsvr32 /s vspdf.ocx
regsvr32 /s vsprint7.ocx

After registering all components the application should be able to launch.

Note: to register components the regsvr32 must be launched from:

x86 system from: "c:\windows\system32"

x64 system from: "c:\windows\syswow64"

To add this registration to the package follow these steps:

Step 1) Create "OCXRegistration.cmd" file with list of commands registering all missing components.

Step 2) Edit DIA package in FPC (FlexApp Packaging Console)

Select "Add scripts to the package"

Example:

scirpts.jpg

Step 3) Select "cmd.exe-386", Post activation and path to the cmd.

Example:

scirpts_2.jpg

Step 4) Ok, Ok save the package and try playing back the package after refreshing the snapshot. 

Step 5) If there are still some components missing or if the application continue to crash add this additional steps to packaging the application.

 

First delete the old DIA package. Verify that you reverted to the last snapshot!!!

Before running FlexApp Packaging console Edit this file: "C:\Program Files\Liquidware Labs\FlexApp Packaging Console\lwl_userapp.xml"

 

In the section "We will redirect all that matches these"

Add following line:

<target type="filesystem" path="C:\" />

Example:

lwluserapp.jpg

Save. 

Open FPC (FlexApp Packaging Console) and attempt to capture package again following steps 1-4

Related KB: FlexApp Packaging Console does not recognize .msi packages when trying to select installation package.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.