Product Version: 5.5
Expires on: 365 days from publish date
Updated: November, 20 2013
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'."
FoodWorks7 DIA Example:
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"
Note2: Another option would be to switch to directory where are all dll files are and run this command:
FOR %1 IN (*.DLL) DO REGSVR32 /S %1
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"
Step 3) Select "cmd.exe-386", Post activation and path to the cmd.
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:\" />
Open FPC (FlexApp Packaging Console) and attempt to capture package again following steps 1-4