How to correctly install Workflow Agents in Kofax?

爷,独闯天下 提交于 2019-12-13 17:21:28

问题


I'm working with Kofax Capture Workflow Agents. I have installed some WFAs before, but they didn't run on first try and I'm not really sure what I've done to get them working.

Currently, I follow these steps to install my WFA:

  1. Compile my Source-Files to one DLL
  2. Remove Workflow Agent from Batch Classes
  3. Uninstall Workflow Agent over Tools > Workflow Agents
  4. Copy over to my Test-Environment
  5. Install Workflow Agent over Tools > Workflow Agents
  6. Add Workflow Agents to Batch Classes
  7. Publish Batches
  8. Close Administration and Run new Batch in Batch Manager

I have installed this particular WFA before and I was able to use it before. This is why I am always using the same AEX-File as none of the Properties change. But somehow, it suddenly stopped working and I can't re-install it properly. Am I doing something wrong?

Edit:
I tried out a lot of things with the best result when I changed the whole AEX-entry. I'm pretty much giving Kofax another Workflow Agent, as name, progid, file and version is different.

I'll have to find out which of these are really needed, but I got a lot of 429 ActiveX errors and I'm not sure whether I registered the DLL by windows or not.


回答1:


Okay, I finally managed to install a workflow agent correctly with the following steps:

  1. Compile source code COM-visibly (add attributes ComVisible, ProgId and ClassInterface)
  2. Unregister old DLL (if any) via C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe <old DLL> /u
  3. Register new DLL via C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe <new DLL> /codebase
  4. In the workflow agents manager inside the administrator, click Add, choose your new DLL, choose your workflow agent and click Install. You don't have to do this for remote sites, but the DLL has to be registered in COM as well.

As the Kofax DLL's are all x86, it's preferable to change your settings to this architecture as well (instead of Any CPU, for example).

If you're developing a 64-bit library instead, you must use the executable in Framework64 (instead of Framework). If you use .NET <4.0, you also have to use the executable inside v2.0.50727(instead of v4.0.30319).

Even though a warning message is displayed after COM-registration, it is not necessary to use a strong assembly name (it is encuraged though).

For installation in Kofax Capture, you can also use the command line executable %Kofax_Bin%\RegAscEx.exe, which has a pretty useful help page (use -?). You don't have to call this one on remote sites as well.




回答2:


1st answer clearly explains the procedures when you are installing the WFA for the very first time.

However if you want to change or update the existing WFA, you do not need to follow the uninstall and re-install approach. Just copy and replace the old dll with new dll by keeping old settings AS-IS(.net version, prgid, UID etc...) .

I do this all the time and it works like a champ :)



来源:https://stackoverflow.com/questions/32518865/how-to-correctly-install-workflow-agents-in-kofax

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!