微星在胜利7的问题 [英] problem with a msi on win 7

查看:74
本文介绍了微星在胜利7的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我有一个vs 2005(c#)安装项目,它将安装一个控制台应用程序,该应用程序也调用相同的自定义操作.

hi all, i have a vs 2005 (c#) setup project which will install a console application calling also same custom action.

在win xp专业上它起作用.

on win xp profession it works.

在win 7职业上,msi崩溃(调用自定义操作时,日志中存在此异常;)

on win 7 profession the msi crashes (in the log there's this exception when calling the custom action;)

MSI(s)(50:AC)[15:03:29:513]:执行操作:CustomActionSchedule(Action = _3075951B_FBAC_411D_862C_37011DE3CDFB.install,ActionType = 1025,Source = BinaryData,Target = ManagedInstall,CustomActionData =/installtype = notransaction/action = install/LogFile =/target =" C:\ Program 文件\ *** \" "***" " ***")
MSI(s)(50:84)[15:03:29:516]:调用远程自定义操作. DLL:C:\ Windows \ Installer \ MSI400E.tmp,入口点:ManagedInstall
MSI(s)(50!C4)[15:03:29:991]:注意:1:2262 2:错误3:-2147287038
MSI(c)(A8:50)[15:03:29:994]:已创建字体.字符集:Req = 0,Ret = 0,字体:Req = MS Shell Dlg,Ret = MS Shell Dlg

错误1001.
MSI(s)(50!C4)[15:03:31:275]:注意:1:2262 2:错误3:-2147287038
MSI(s)(50!C4)[15:03:31:275]:
MSI(s)(50:84)[15:03:31:276]:螺纹5060的790531类型的MSIHANDLE(24)泄漏
MSI(s)(50:84)[15:03:31:276]:注意:1:2769 2:_3075951B_FBAC_411D_862C_37011DE3CDFB.install 3:1
MSI(s)(50:84)[15:03:31:276]:注意:1:2262 2:错误3:-2147287038
调试:错误2769: 自定义操作_3075951B_FBAC_411D_862C_37011DE3CDFB.install没有关闭1个MSIHANDLE.
安装程序在安装此软件包时遇到意外错误.这可能表明此程序包有问题.错误代码为2769.自变量为:_3075951B_FBAC_411D_862C_37011DE3CDFB.install,1,
CustomAction _3075951B_FBAC_411D_862C_37011DE3CDFB.install返回的实际错误代码为1603(请注意,如果沙箱内部发生翻译,此错误可能不是100%准确)
动作结束15:03:31:InstallFinalize.返回值3.

MSI (s) (50:AC) [15:03:29:513]: Executing op: CustomActionSchedule(Action=_3075951B_FBAC_411D_862C_37011DE3CDFB.install,ActionType=1025,Source=BinaryData,Target=ManagedInstall,CustomActionData=/installtype=notransaction /action=install /LogFile= /target="C:\Program Files\***\" "***" "***")
MSI (s) (50:84) [15:03:29:516]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI400E.tmp, Entrypoint: ManagedInstall
MSI (s) (50!C4) [15:03:29:991]: Note: 1: 2262 2: Error 3: -2147287038
MSI (c) (A8:50) [15:03:29:994]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

Error 1001.
MSI (s) (50!C4) [15:03:31:275]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (50!C4) [15:03:31:275]:
MSI (s) (50:84) [15:03:31:276]: Leaked MSIHANDLE (24) of type 790531 for thread 5060
MSI (s) (50:84) [15:03:31:276]: Note: 1: 2769 2: _3075951B_FBAC_411D_862C_37011DE3CDFB.install 3: 1
MSI (s) (50:84) [15:03:31:276]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2769:  Custom Action _3075951B_FBAC_411D_862C_37011DE3CDFB.install did not close 1 MSIHANDLEs.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2769. The arguments are: _3075951B_FBAC_411D_862C_37011DE3CDFB.install, 1,
CustomAction _3075951B_FBAC_411D_862C_37011DE3CDFB.install returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 15:03:31: InstallFinalize. Return value 3.

 

注意:自定义操作仅执行默认代码(注释了我的代码),因此我的自定义操作代码没有错误

note:custom action execute only default code (my code is commented) so there'snt error in my custom action code

note2:如果我从msi删除自定义操作,则所有工作正常

note2: if i remove the custom action from msi all work

 

在win 7上,如果我进行了故障排除兼容性问题,我会获得跳过版本检查"选项,此选项可以正常工作.

on win 7 if i do the troubleshoot compatibility i get the option "skip version check", with this option all works.



在不激活的情况下如何使msi正常工作 是否要解决兼容性问题?

what i must do to make the msi works correctly without the activation of troubleshoot compatibility?

这是什么意思 跳过版本检查"?

推荐答案

无语,

首先,请确保您的MSI和应用程序可以在Windows 7中安装并运行.您能否分享一些有关安装项目的自定义操作"的信息?您是否在自定义操作中设计了一些版本检查?

First of all, please ensure your MSI and your application can be installed and run in Windows 7. And could you please share some information about the Custom Action for the setup project? Do you design some version checking in the custom actions?

请尝试使用命令 msiexec/log< LogFile> 安装msi,然后检查日志.请通过以下方式查看msiexec的参数 msiexec/?.

Could you please try use command msiexec /log <LogFile> to install the msi, and then check the log. Please view the parameter for msiexec by msiexec /?.

另一方面,能否请您尝试使用Orca(请查看

And on the other hand, could you please try to use Orca (please view here) tool to view the conditions of the generated MSI file. Ant concern, please feel free to let me know.

此致

 


这篇关于微星在胜利7的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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