调试安装程序
可能的重复:
如何使用 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.
请让我了解一些有关在 .NET 中调试安装程序的技巧
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 its dependencies. Then system cannot find the file specified.
Please also let me few techniques about debugging an installer in .NET
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,您无法调试它,因为 MSI 文件不是可执行文件。它是一个安装程序文件,Windows 将自动将其作为参数传递给
msiexec
(Windows 安装程序) - 执行所有工作的实际可执行文件,并且您没有其源代码。你需要做的就是记录。使用
/L*
选项(更多详细信息 此处)。打开命令提示符,导航到 MSI 文件所在的文件夹,然后编写如下内容:
msiexec /i myInstaller.msi /L* log.txt
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