如何找到.exe和.msi(安装程序)的内容之间的差异 [英] How to find difference between the content of .exe and .msi (installer)

查看:86
本文介绍了如何找到.exe和.msi(安装程序)的内容之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近负责一个新系统,它是一个用C#编写的 windows应用程序,并创建了一个安装文件( .MSI )进行分发。当我安装该软件时,它可以正确安装,但是启动时崩溃。然后,如果我为该应用程序运行一次.exe文件,则已安装的软件开始运行。

I recently took charge of a new system, it is a windows application written in C#, an installer (.MSI) file is created for its distribution. When I install the software it installs properly but it crashes on start. Then if I run the .exe file once for the application, the installed software starts working.

我的观察是 .EXE安装 .MSI 文件所需的一些丢失的位。有没有一种方法可以找到 .MSI 文件中缺少的文件?

My observation is that .EXE installs some missing bit which is required by .MSI file. Is there a way I can find what files are missing in .MSI file ?

2014年9月8日更新:
我找到了 WER4A29.tmp.WERInternalMetadata.xml 文件,该文件讨论了 System.Net.WebException

UPDATE on 09-08-2014: I have found WER4A29.tmp.WERInternalMetadata.xml file which talks about System.Net.WebException

-<ProblemSignatures>    
<EventType>CLR20r3</EventType>    
<Parameter0>test.exe</Parameter0>    
<Parameter1>1.0.3.33</Parameter1>    
<Parameter2>53dca4f6</Parameter2>    
<Parameter3>System</Parameter3>    
<Parameter4>4.0.30319.18408</Parameter4>    
<Parameter5>52311185</Parameter5>    
<Parameter6>21b0</Parameter6>    
<Parameter7>1fb</Parameter7>    
<Parameter8>System.Net.WebException</Parameter8>    
</ProblemSignatures>


推荐答案

.msi 文件是安装设置,它包括安装脚本和实际的可执行文件 .exe 文件以及其他必需的 dlls 和配置文件。

The .msi file is the installation set-up it include the installation script and the actual executable .exe file and other required dlls and configuration files.

我认为问题在于设置的创建方式。在安装后启动应用程序时,它不执行启动任务,例如环境配置。

I think the issue is with how the set-up is created. when you start the application after installation it is not performing the start up tasks like configuration of environment.

当您运行 .exe 时,它会自行处理这些配置。

And the when you run the .exe it takes care of these configruations by it self.

我建议应重新测试安装文件 .msi 文件及其生成脚本的测试。

I suggest that the testing of setup files .msi files and its generation scripts should be revisited.

这篇关于如何找到.exe和.msi(安装程序)的内容之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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