调试安装程序

May*_*shP 0 .net c# debugging windows-installer

可能重复:
如何使用WCF制作安装程序

我有安装人员.它成功重建.成功重建后,我正在尝试安装.msi文件.

我收到下一个错误:

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 its dependencies. Then system cannot find the file specified.
Run Code Online (Sandbox Code Playgroud)

还请告诉我一些关于在.NET中调试安装程序的技巧

Evr*_*glu 5

据我所知,您无法调试它,因为MSI文件不是可执行文件.它是一个安装程序文件,Windows将自动作为参数传递给msiexec(Windows Installer) - 执行所有工作的实际可执行文件,以及您没有源代码的实际可执行文件.

你需要做的是记录.使用该/L*选项(此处有更多详细信息).打开命令提示符,导航到MSI文件所在的文件夹,然后编写如下内容:

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