无法在其他PC中使用已安装的MSI. [英] Unable to use installed msi in different pc.

查看:100
本文介绍了无法在其他PC中使用已安装的MSI.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已成功在发布模式下创建了msi,并已在我的PC上安装并执行,但无法在其他PC上执行.我该如何解决这些问题.我不希望每个需要使用我的应用程序的人都安装vc ++.

当我尝试在其他PC上执行时,出现以下警告

"
应用程序无法启动,因为其并排配置正确.请参阅
应用程序事件日志或使用命令行sxstrace.exe工具获取更多详细信息
"

并且在管理工具下的事件查看器中,我出现以下错误

"
"MIDIDevDemo v2.exe"的激活上下文生成失败.依赖程序集Microsoft.VC90.MFC,processorArchitecture ="x86",publicKeyToken ="1fc8b3b9a1e18e3b",
找不到type ="win32",version ="9.0.21022.8".请使用sxstrace.exe进行详细诊断."

I have successfully created msi in release mode and installed and execute in my pc but I am not able to execute in other pc. How can I solve these problem..I dont want everyone who need use my app to install vc++.

When I try to execute in other pc I get following warning

"
the application has failed to start because its side-by-side configuration is in correct. please see
the application event log or use the command line sxstrace.exe tool for more detail
"

and In event viewer under administration tool I have following error

"
Activation context generation failed for "MIDIDevDemo v2.exe". Dependent Assembly Microsoft.VC90.MFC,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",
type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis."

推荐答案

一个缺少的是Microsoft.VC90.MFC;您可以静态链接到mfc,那么您将不会需要DLL.
右键单击您的项目,选择属性":在树视图中的配置属性"下,选择常规"分支.
设置之一是使用MFC",具有三个选项:

  • 使用标准的Windows库"-即完全不使用MFC.
  • 在静态库中使用MFC"-MFC代码链接在程序内部,不需要部署其他文件.
  • 在共享DLL中使用MFC"-需要与应用程序一起部署MFC DLL.
The one missing is Microsoft.VC90.MFC; you can link statically to mfc, then you won''t need the DLL.
Right-click your project, choose ''Properties'': in the tree view, under ''Configuration Properties'' choose the ''General'' branch.
One of the settings is ''Use of MFC'' with three options:

  • ''Use standard Windows libraries'' - i.e., don''t use MFC at all.
  • ''Use MFC in a Static Library'' - The MFC code is linked inside your program, no additional files need to be deployed.
  • ''Use MFC in a Shared DLL'' - Requires deploying the MFC DLL with your application.


从属程序集Microsoft.VC90.MFC,processorArchitecture ="x86",publicKeyToken ="1fc8b3b9a1e18e3b",type ="win32",version ="9.0.21022.8"可以找不到.
从错误中可以很明显地看出,您没有在安装程序中添加程序集"Microsoft.VC90.MFC".

添加相同的内容,此错误应得到解决.
Dependent Assembly Microsoft.VC90.MFC,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b", type="win32",version="9.0.21022.8" could not be found.
It''s pretty clear from the error that you missed adding assembly ''Microsoft.VC90.MFC'' in your installer.

Add the same and this error should get resolved.


这篇关于无法在其他PC中使用已安装的MSI.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆