0

对此颇为不解。这不是我第一次建立一个设置 - 从来没有见过这样的东西..

基本上,只要我添加自定义操作并尝试安装,我就会收到此错误。

无赖

我确实有一个安装程序类,其中包含所有必需的代码字段,并且与我在以前的安装程序类中使用的字段相同。

[RunInstaller(true)]
public partial class Installer : System.Configuration.Install.Installer
{


    public Installer()
    {
        InitializeComponent();
    }

    public override void Commit(IDictionary savedState)
    {
        base.Commit(savedState);
        // Do some work on commit 
    }
...

来自 Fuselogvw:

*** Assembly Binder Log Entry  (19/08/2012 @ 11:57:09) ***

The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Windows\syswow64\MsiExec.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = NT AUTHORITY\SYSTEM
LOG: Where-ref bind. Location = C:\Program Files (x86)\OrScanTechnologies\CamerasCalibrationApp\CamCalibApplication.exe
LOG: Appbase = file:///C:/Windows/syswow64/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = MsiExec.exe
Calling assembly : (Unknown).
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: No application configuration file found.
LOG: Using host configuration file: C:\Users\-\AppData\Local\Temp\CFGB105.tmp
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/OrScan Technologies/CamerasCalibrationApp/CamCalibApplication.exe.
LOG: Assembly download was successful. Attempting setup of file: C:\Program Files (x86)\OrScan Technologies\CamerasCalibrationApp\CamCalibApplication.exe
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: CamCalibApplication, Version=1.5.2.2, Culture=neutral, PublicKeyToken=null
LOG: Re-apply policy for where-ref bind.
LOG: Where-ref bind Codebase does not match what is found in default context. Keep the result in LoadFrom context.
LOG: Binding succeeds. Returns assembly from C:\Program Files (x86)\OrScan Technologies\CamerasCalibrationApp\CamCalibApplication.exe.
LOG: Assembly is loaded in LoadFrom load context.

更多来自 fuselogvw 的 信息 http://s13.postimage.org/hqn04w1bb/Untitled2.png

4

3 回答 3

1

谷歌搜索 Windows Installer XML (WiX) 部署工具基础 (DTF) 自定义操作。这是托管代码自定义操作的黄金标准,将消除 1001 错误消息。

也就是说,一定不要重新发明轮子。始终使用本机 Windows Installer 标准表和操作,而不是滚动您自己的进程外自定义操作。

于 2012-08-19T17:23:25.240 回答
0

有时,这种错误是由项目平台目标配置不匹配引起的。检查您的所有解决方案项目是否都是 AnyCPU/x64/x86(无论您喜欢它们是什么)。

于 2012-08-19T09:43:15.777 回答
0

解决方案是添加 2 个未添加为依赖项的 opencv dll 文件。成功了。

于 2012-08-20T12:59:00.630 回答