安装 – Wix返回错误“在模块中找不到CA或UI入口点”但在dll中使
发布时间:2020-12-14 01:54:11 所属栏目:Windows 来源:网络整理
导读:首先,为模糊的屏幕截图道歉并且不包括代码中的全名. 我在使用Wix Framework尝试使用dll中的自定义操作时遇到问题. 我正在使用Wix 3.10.2 我在我的解决方案下有一个名为Install.CustomAction的C#Custom Action项目.然后在主Wix项目中引用它.你可以在这看到 我
首先,为模糊的屏幕截图道歉并且不包括代码中的全名.
我在使用Wix Framework尝试使用dll中的自定义操作时遇到问题. 我正在使用Wix 3.10.2 我在我的解决方案下有一个名为Install.CustomAction的C#Custom Action项目.然后在主Wix项目中引用它.你可以在这看到 我在主Product.wxs文件中将CA dll引用为二进制文件 <Binary Id="CustomActions.dll" SourceFile="$(var.<porjectname>.Install.CustomAction.TargetDir)<projectname>.CustomAction.CA.dll"/> 现在在一个片段中,我有像这样引用的动作 <CustomAction Id="CA_RestoreDB" BinaryKey="CustomActions.dll" DllEntry="RestoreMobileDB" Execute="immediate" Return="check" /> <InstallExecuteSequence> <Custom Action="CA_RestoreDB" After="InstallFinalize"/> </InstallExecuteSequence> 所以,尽管如此,我希望一切顺利. 在名为CustomAction.cs的实际c#文件中,我使用[CustomAction]属性进行了此设置 [CustomAction] public ActionResult RestoreMobileDB(Session session) { //string installPath = session.GetTargetPath(TARGETDIR); string x = session["INSTALLFOLDER"]; session.Log("Begin CustomAction1"); doSomeStuff(x,session); return ActionResult.Success; } 到目前为止,一切看起来都很好,而且我正在努力工作.但是当我来编译所有内容时,我得到了这个错误 Severity Code Description Project File Line Suppression State Error The command ""C:Program Files (x86)WiX Toolset v3.10bin..sdkMakeSfxCA.exe" "C:Work FilesDevelopment&;product>&;solution>&;project>.Install.CustomActionobjx86Release&;project>.Install.CustomAction.CA.dll" "C:Program Files (x86)WiX Toolset v3.10bin..sdkx86SfxCA.dll" "C:Work FilesDevelopment&;product>&;solution>&;project>Install.CustomActionobjx86Release&;project>.Install.CustomAction.dll" "C:Program Files (x86)WiX Toolset v3.10SDKMicrosoft.Deployment.WindowsInstaller.dll;C:Work FilesDevelopment&;product>&;solution>&;project>.Install.CustomActionCustomAction.config"" exited with code 1. <project>.Install.CustomAction 接下来是这个错误
你知道是什么原因引起的吗?我已经指定了一个入口点,并在我的.wxs文件中引用了dll,但它似乎对我不起作用. 解决方法
我认为它需要:
public static ActionResult ... (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows-server-2003 – 您何时需要Active Directory中的组
- active-directory – 使用Windows加入Lion Open Directory是
- windows – Haskell,GHC,win32,cairo
- 了解一些常用的牛逼编译器(不限制编程语言, 不限制平台)
- wix – “添加/删除程序”中的Bootstrapper和Setup
- WiX ServiceInstall – 将服务设置为当前Windows用户运行
- 如何将WCF中的服务访问限制为一组Windows帐户?
- windows – 如何查找登录到Active Directory中的计算机的最
- 使用包含空格的参数调用Qprocess – Windows
- 便宜的Windows驱动程序签名64位Windows 7