开发者

Debug an Installer [duplicate]

This question already has an answer here: Closed 11 years ago.

Possible Duplicate:

How to make Installer using WCF

I am having an installer. It is successfully rebuild. After successful rebuild, I am trying to install a .msi file.

I am getting next error:

Error 1001. Exception occurred while initializing the installation
System.IO.FileNotFoundException: Could not load file or assembly
'file:///c:\WINDOWS\system32\Files\Default' or one of i开发者_运维知识库ts dependencies. Then system cannot find the file specified.

Please also let me few techniques about debugging an installer in .NET


As far as I know, You can't debug it, because an MSI file is not an executable file. It is an installer file, which Windows will automatically pass as an argument to msiexec (Windows Installer) - the actual executable doing all the work, and which you don't have the source code for.

What you need to do is log. Use the /L* option (more details here). Open a command prompt, navigate to the folder where your MSI file is, and write something like this:

msiexec /i myInstaller.msi /L* log.txt

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜