Packaging Kofax Capture 8.0

Hey guys,

I've ran into a package that's proving to be quite a challenge. We're talking about Kofax Capture 8.0. Let me try to sketch the process so far...

1) did an install capture with snapshots, opened the result, cried abit and decided to find another way
2) good thing I did because I found out parts of this install are actually MSIs (or equivalent), I have identified the following:
- Kofax VirtualRescan (MSI)
- SQL EXPPRESS 2005 (ok, I'm sure i can get that installed, need to change the service (and server perhaps) name, but OK)
- Sentinel Protection Drivers (ok, it's an MSI, no prob)
- WIBU drivers (I'll go to www.wibu.com and get an installer from there)
- Everything else...

I've tried the silent setup, but at one point i get an empty Windows warning window where I have to click OK( I suspect it's the VRS part)
So my plan now was to analyse the various existing msis, and install them as prerequisites, then capturing the "leftovers" for my package, trying to avoid as much junk as possible..
The first two parts (VRS and SQLEXPRESS) are proving a bit eluseve though. So my question is: has anyone succeeded in creating a package for this application, using as many of the "provided" MSI's as possible for it? I've looked in the package KB but no luck...

Any input is appreciated


0 Comments   [ + ] Show comments

Answers (13)

Posted by: cygan 13 years ago
Fifth Degree Brown Belt
went on to google and found this

will it not be easier to do a silent install /s using the ini file as per the document

does it have to be msi
Posted by: anonymous_9363 13 years ago
Red Belt
Odd...I did Kofax's Virtual Rescan v4.2 a few months back and it was all MSI.

Anyway, I think Cyg's suggestion is a good one, if you can get away with a non-MSI deployment.
Posted by: pjgeutjens 13 years ago
Red Belt

first of all thanks for the quick reply. I've seen that document. Problem with the /s installation is that at one point, silent as it might try to be, I get a empty Windows Warning dialog (you know, a little dialog with a yellow exclamation mark and an OK button, enormously informative [&:]) so "silent" install is a no-go.

It doesn't have to be an MSI, but considering the issue with the setup /s, I'm running out of options here. I'm then trying to reuse as many of the MSI's that are part of this install as possible to avoid problems later on... you know, resnapshotting MSI's etc etc, especially the SQL server, ew...

I'm finishing a capture of an install after having pre-installed as much as I can this very moment. I'll have to see what the result is. Another option is to pre-install the VRS part, which I suspect is causing the empty warning, and then running the setup /s installation on top of that, hoping to avoid that warning.

I'll keep you posted on my progress.

Posted by: pjgeutjens 13 years ago
Red Belt
Another option is to pre-install the VRS part, which I suspect is causing the empty warning, and then running the setup /s installation on top of that, hoping to avoid that warning.

this seems to be working, but I can't seem to suppress the final reboot. According to the Installation Manual, adding a SuppressFInalReboot=Yes in the config's ini file should take care of that, but I guess it doesn't...

Atleast some progress...
Posted by: pjgeutjens 13 years ago
Red Belt
A quick update...

it was an oversight on my part: Setup.exe /s /i:<ini-file> is not the same as Setup.exe /s /i <ini-file>

let the mocking begin... [8|]

Posted by: cygan 13 years ago
Fifth Degree Brown Belt
ORIGINAL: pjgeutjens

A quick update...

it was an oversight on my part: Setup.exe /s /i:<ini-file> is not the same as Setup.exe /s /i <ini-file>

let the mocking begin... [8|]


school boy error was it [:D]
we have all been there
Posted by: pjgeutjens 13 years ago
Red Belt
Hmm, ok, I know it's been awhile since I posted this topic, but I'm still struggling with this package (just struggled with some other, more urgent stuff for awhile first )

At the moment the situation is as follows:

I'm able to silently install the components of this app (via the setup.exe), but a manual install does some stuff after a reboot. Now me, I'd like to avoid a reboot since our deployment system (LANDesk) doesn't like em.

Now when I start any kofax app i get the message:

Error loading User Profile COM oject: PFCaptur.dll
Your Batch Catalog server or network may be down
Please Contact your system administrator
[4140]KdoLib: The database has not been configured.Please contact the Kofax Capture Admin

What I believe is the issue is the fact that an exe called AppInit.exe has to run after a reboot. But now even if I start it manually after a reboot, it doesn't always seem to do what it needs to.

Those of you who've packaged this in the past, have you seen this before, did you find the cause, and a dependable way around it?

Thanks in advance for any input.

Posted by: swilli91 13 years ago
Yellow Belt

This package is a pain in the rear end!!! I've noticed that you've not mentioned the installation runs SETUPF.exe from the RunOnce key after the final reboot. I've found out this is what sets up the relevant SQL database and also changes the ACConfig.xml file located in C:\Documents and Settings\All Users\Application Data\Kofax\Capture\Config. Unfortunately from what I can gather this exe file contains a check to see if its been run from the actual runonce key (AscentCaptureSetup). The only way I found around this was to capture exactly what this does (I used adminstudio), the install seems to create SQL Databases, Amendment of ACConfig.xml amongst other things, this is where your problems lie unfortunately!!

To get round this i've had to create an installation routine that reads like a novel! (It does assume tho that you have windows installer 3.1 or above and .net 2 on the machine prior to install) :-

- Run Setup.exe /s /i: <FileLocation>\ACINSout.ini
- TaskKill /F /IM VBRUN6~1.exe <This may not apply to you however when I run the installation in our SMS environment the process never ended!>
- Delete HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce\AscentCaptureSetup
- Delete HKLM\Software\Microsoft\Windows\CurrentVersion\Run\CaptureAppInitPrompt
- Stop the following Services "Ascent Capture Service", "SQLWriter", "SQLBrowser", "MSSQL$ASCENTCAPTURE"
- Run my own captured version of SETUPF (in my case its imaginatively named SETUPF.MSI)
- Copy the contents of the data folder previously capture (i.e in SETUPF) to C:\Documents and Settings\All Users\Application Data\Kofax\Capture\Server\DB\MSSQL.1\MSSQL\Data
- Start the following services "Ascent Capture Service", "SQLWriter", "SQLBrowser", "MSSQL$ASCENTCAPTURE"
- Run "C:\Program Files\Kofax\Capture\Bin\ACDeployUtil.exe" /SiteName:<MachineName> /SiteID:<SiteID required> /StationID:<MachineName>

As I said this seems to work for me! As for the uninstall another novel im afraid but here you go :-
%windir%\System32\Net.exe Stop "Ascent Capture Service"
%windir%\System32\Net.exe Stop "SQLWriter"
%windir%\System32\Net.exe Stop "SQLBrowser"
%windir%\System32\Net.exe Stop "MSSQL$ASCENTCAPTURE"
%windir%\system32\taskkill.exe /f /im "acirsa.exe"

"C:\Program Files\Kofax\Capture\Bin\Ocr.exe" /uninstall /all /silent
"C:\Program Files\Kofax\Capture\Bin\Fp.exe" /uninstall /all /silent
"C:\Program Files\Kofax\Capture\Bin\Release.exe" /uninstall /all /silent
"C:\Program Files\Kofax\Capture\Bin\KfxPdf.exe" /uninstall /all /silent
"C:\Program Files\Kofax\Capture\Bin\ACXMLAI.exe" /uninstall /all /silent
"C:\Program Files\Kofax\Capture\Bin\ACIRsa.exe" /uninstall /all /silent
%windir%\System32\Cmd.exe /c RD /s /q "C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Files"
%WinDir%\system32\MsiExec.exe /X{6A35E74B-68AD-4054-B93A-FEB7B687114C} ACSETUP=1 REBOOT=ReallySuppress /qn
%WinDir%\system32\MsiExec.exe /X{2AFFFDD7-ED85-4A90-8C52-5DA9EBDC9B8F} /passive
%WinDir%\system32\MsiExec.exe /X{F9B3DD02-B0B3-42E9-8650-030DFF0D133D} /qn
%WinDir%\system32\MsiExec.exe /X{53F5C3EE-05ED-4830-994B-50B2F0D50FCE} /qn
%WinDir%\system32\MsiExec.exe /X{E9F44C98-B8B6-480F-AF7B-E42A0A46F4E3} /qn

%windir%\System32\Reg.exe Delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Kofax Capture 8.0" /f
%windir%\System32\Reg.exe Delete HKLM\Software\Kofax /f
%windir%\System32\Reg.exe Delete "HKLM\Software\Rainbow Technologies" /f
%windir%\System32\Reg.exe Delete HKLM\Software\WIBU-SYSTEMS /f
%windir%\System32\Reg.exe Delete HKLM\Software\ODT-OCE /f

%WinDir%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /uninstall /LogFile="" /LogToConsole=false "C:\Program Files\Kofax\Capture\Bin\BatchNotification.dll"
%WinDir%\system32\MsiExec.exe /X{5A180ED5-0AC1-410A-B790-5E0319CD0A93} /qn REBOOT=ReallySuppress
"C:\Program Files\WIBUKEY\Setup\Setup32.exe /RS:{00060000-0000-1004-8002-0000C06B5161}
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\ACLog.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\ACINetCl.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\ACISIntf.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\AciInstH.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\ACISTranslation.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\ACLicClnt.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\ACConfig.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\ACRegAsm.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\KfxDB.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\IKfxDB.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\ACIAdm.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\DBLookup.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\AciAdCfg.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\KfxFoldUtil.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\ACUI.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\Kofax.Kacui.Interop.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\Kofax.AscentCaptureModule.Interop.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\Kofax.ReleaseLib.Interop.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\BatchNotification.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\AdminDataSubstitutionCom.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\ScanSource.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\INetScript.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\NetScript.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\ACINetworkController.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\AdminDialogs.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\WmiProviderCOM.dll" /tlb /unregister
"%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "C:\Program Files\Kofax\Capture\Bin\AC_ASBU.dll" /tlb /unregister
"C:\Program Files\Kofax\Capture\Bin\ACRegAsmUtil.exe" "C:\Program Files\Kofax\Capture\Bin\ACLicInf.dll" /unregister /gacutil
"C:\Program Files\Kofax\Capture\Bin\ACRegAsmUtil.exe" "C:\Program Files\Kofax\Capture\Bin\Kofax.ReleaseLib.Interop.dll" /unregister /gacutil
"C:\Program Files\Kofax\Capture\Bin\ACRegAsmUtil.exe" "C:\Program Files\Kofax\Capture\Bin\Kofax.AscentCaptureModule.Interop.dll" /unregister /gacutil
"C:\Program Files\Kofax\Capture\Bin\ACRegAsmUtil.exe" "C:\Program Files\Kofax\Capture\Bin\ScriptInterface.dll" /unregister /gacutil
%WinDir%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /uninstall /LogFile="" /LogToConsole=false "C:\Program Files\Kofax\Capture\Bin\ACSvc.exe"
%WinDir%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /uninstall /LogFile="" /LogToConsole=false "C:\Program Files\Kofax\Capture\Bin\WmiProvider.dll"
%WinDir%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /uninstall /LogFile="" /LogToConsole=false "C:\Program Files\Kofax\Capture\Bin\SnmpExtensionAgent.dll"
%WinDir%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /uninstall /LogFile="" /LogToConsole=false "C:\Program Files\Kofax\Capture\Bin\SiteMonitorService.exe"

%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\CLSID\{9095C201-BEF2-11CF-9EB0-00AA0017B76A} /f
%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\CLSID\{9095C203-BEF2-11CF-9EB0-00AA0017B76A} /f
%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\CLSID\{9095C205-BEF2-11CF-9EB0-00AA0017B76A} /f
%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\CLSID\{9095C206-BEF2-11CF-9EB0-00AA0017B76A} /f
%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\CLSID\{9095C208-BEF2-11CF-9EB0-00AA0017B76A} /f
%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\CLSID\{9095C209-BEF2-11CF-9EB0-00AA0017B76A} /f
%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\CLSID\{A3AB3F12-19AE-11D1-A250-00A0C91A8D45} /f
%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\CLSID\{A6063718-7889-46E0-AC60-5A7C958710DC} /f
%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\TypeLib\{1452072F-CE72-11D1-8AA5-00A0C9324363} /f
%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\TypeLib\{4D0CD9E5-FE3C-11D2-80A0-00A0C99205A7} /f
%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\TypeLib\{90953004-BEF2-11CF-9EB0-00AA0017B76A} /f
%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\TypeLib\{90993001-BEF2-11CF-9EB0-00AA0017B76A} /f
%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\TypeLib\{98E70F0B-0C9D-11D3-80A4-00A0C99205A7} /f
%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\TypeLib\{A3AB3F00-19AE-11D1-A250-00A0C91A8D45} /f
%windir%\System32\Reg.exe Delete HKEY_CLASSES_ROOT\TypeLib\{ABFFBB46-D96D-11D1-B0B4-00A0C9324366} /f
%windir%\System32\Reg.exe Delete "HKEY_LOCAL_MACHINE\SOFTWARE\Kofax Image Products" /f
%windir%\System32\Reg.exe Delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\ACIRsa /f
%windir%\System32\Cmd.exe /c RD /s /q "C:\Documents and Settings\All Users\Application Data\Kofax"
%windir%\System32\Cmd.exe /c RD /s /q "C:\Program Files\Kofax"
%windir%\System32\Cmd.exe /c RD /s /q "C:\Documents and Settings\All Users\Start Menu\Programs\Ascent Capture 8.0"
%windir%\System32\Cmd.exe /c RD /s /q "C:\program Files\WibuKey"
%windir%\System32\Cmd.exe /c RD /s /q "C:\Program Files\WIBU-SYSTEMS"

Hope this helps!

Posted by: pjgeutjens 13 years ago
Red Belt
Thanks alot for your input Simon. I did actually notice the SetupF.exe in the runonce key. What I think is the control mechanism for this exe is a REBOOT key that's put in the runonce key before the installer asks for a reboot. Once I removed this I could actually manually run SetupF.exe. It does seem to go wrong though if I do it without first rebooting the machine. Here I think what's to blame is the fact that the installer changes the Path variable, and for localsystem the only way I know to activate a change there is to reboot...

I've made some progress since the last post. However I'm afraid the package's requester doesn't quite have his setup scheme in order. He first asked me for standalone install, then when he wanted to use the ACDeployUtil to connect the machine to the Kofax server, he noticed that one of the parameters was unavailable. He then told me to do a server install, but that too seems to not work as intended. In the meantime I noticed a third install option (workstation) while reading the kofax installation guide, one that doesn't seem to be available in the setup's GUI. This looks promising to me, but I need the requester's signoff...

Long story short, waiting for some definitive info atm. And I'm pretty sure I'll just have to split the package in 2, with a pre- and post-reboot package. Our deployment-tool unfortunately doesn't deal well with reboots that are triggered outside its control.

I'll keep you guys posted

Posted by: anonymous_9363 13 years ago
Red Belt
Simon, it would be helpful to post your results in the 'Package KB'.
Posted by: swilli91 13 years ago
Yellow Belt
No probs PJ, I have to ask how did you run the SetupF.exe outside the run command, although i've packaged the app and alls working great I'm intrigued as when I spoke to the one of the 3rd line kofax people I was told it wasnt possible!! (I also tried to get a copy of their wise script to actually understand what its doing but they were'nt very forthcoming!)

As for pre and post reboots, i must admit the only time I needed to do a reboot was to just capture the post install stuff. If I run through the install routine and use my captured version of setupf etc I can use batch manager etc with no issues and it also connects to the server successfully for licensing scanning etc!

I am lead to believe the next iteration of Kofax is an MSI so here's hoping the next version isnt as tough to package!

Let me know how you get on!

Posted by: pjgeutjens 13 years ago
Red Belt
I have to ask how did you run the SetupF.exe outside the run command

I have to admit this is abit of a limited test but what I did was the following:

1) remove the registry key SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\AscentCaptureSetup
2) remove the registry key SOFTWARE\Microsoft\Windows\CurrentVersion\Run\CaptureAppInitPrompt
3) remove the registry key SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\REBOOT

all in HKLM

After this, using an admin user, I could just start the setupF.exe and the installation seemed to complete successfully, without setupF complaining it could only be called from inside the main setup.

Problem started when I put this into our deployment system, because when pushing as LocalSystem setupF.exe started to complain about missing DLL's (the DLL's were actually present in the Kofax programfiles dir). Since I noticed the change in the path variable, and with what I know about env variables and localsys, I suspect that I need a reboot.

Like I said before, kinda stalled at the moment waiting for info, but i'll post my progress.

Posted by: Legal & General 10 years ago
White Belt

so pj,

I saw your user acount and you'r from belguim ?, mischien kan ik dus mijn vraag in het nederlands vragen.

ik ben ook bezig met packing van Kofax 8,  Maar het wil me niet lukken, ik heb verder gekeken hier,  en zag dat het jouw uiteindelijk wel gelukt was. Mag ik vragen Hoe en wat je precies gedaan hebt om het werkend te krijgen ?,



  • Dag Daniel,

    je mag zeker je vraag in het nederlands stellen. Maar ik ga voor de begrijpbaarheid toch in het Engels antwoorden :)

    Wel dit nog: als je verdere info wilt mag je me altijd mailen (zie profiel voor adres). Ik kan me even informeren bij een ex-collega om m'n geheugen op te frissen en je de details doorsturen.

    It's been awhile since I packaged this, but what I remember of it is that
    1) it's key to run the main installer exe from a share on the Kofax server and not from any other location
    2) after the initial install, there's a key placed in the registry under RunOnce to trigger SetupF.exe, you need to remove this key before you manually run the exe
    3) I believe a reboot after the main install is mandatory, before running the setup finalization exe. - pjgeutjens 10 years ago
  • PJ,

    I can't see your email addres on your profile, Mayby is it hidden,
    when i got your mail addres i can explain the situation that we have here


    Daniel - Legal & General 10 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ