我在WPF中创建了一个安装程序项目。当我在我的电脑上运行应用程序时,它工作正常。我为.net framework 4.5设置了最低要求。但是如果我在另一台机器上运行该应用程序(新安装的Windows 7),应用程序崩溃。
以下是事件查看器日志:
Installer exception Faulting application name: MyInstaller.exe, version: 1.0.0.0, time stamp: 0x55572605 Faulting module name: KERNELBASE.dll, version: 6.1.7601.17514, time stamp: 0x4ce7bafa Exception code: 0xe0434352 Fault offset: 0x0000b727 Faulting process id: 0x398 Faulting application start time: 0x01d08fca117f3e62 Faulting application path: C:\Users\self\Downloads\MyInstaller.exe Faulting module path: C:\Windows\syswow64\KERNELBASE.dll Report Id: 517dc0dd-fbbd-11e4-a332-b083fe4d72a6 Application: MyInstaller.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException Stack: at MyInstaller.App.Main(System.String[])
我试图创建" Window事件日志"在Main()
try-catch方法中,但是应用程序无法达到这一点。
当我在新安装的计算机上发送带有项目exe文件的myinstaller.config.exe文件时,它会显示错误。该应用程序不符合要求。
在我的机器中,myinstaller.config.exe不是必需的,即使在我卸载框架4.5和4.0之后也是如此。