创建c#application + install向导后,无法找到应用程序文件Setup.msi

时间:2016-12-12 12:41:58

标签: c# setup-deployment

我使用C#创建了一个应用程序。现在我尝试为此应用程序创建安装向导。

我在完成设置向导后构建应用程序,现在我已经转到我的Debug文件夹并尝试执行安装程序,但收到以下错误:

错误:

无法找到应用程序文件'Infinite Trainer Setup.msi'。

有关详细信息,请参阅位于“C:\ Users \ d4ne \ AppData \ Local \ Temp \ VSDF9F.tmp \ install.log”的安装日志文件。

Install.log记录:

The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [InstallMode] = HomeSite {string}
Property: [NTProductType] = 1 {int}
Property: [ProcessorArchitecture] = AMD64 {string}
Property: [VersionNT] = 10.0.0 {version}
Running checks for package 'Microsoft .NET Framework 4.5 (x86 and x64)', phase BuildList
Reading value 'Version' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full'
Read string value '4.6.01586'
Setting value '4.6.01586 {string}' for property 'DotNet45Full_TargetVersion'
The following properties have been set for package 'Microsoft .NET Framework 4.5 (x86 and x64)':
Property: [DotNet45Full_TargetVersion] = 4.6.01586 {string}
Running checks for command 'DotNetFX45\dotNetFx45_Full_x86_x64.exe'
Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': true
Result of checks for command 'DotNetFX45\dotNetFx45_Full_x86_x64.exe' is 'Bypass'
Running checks for command 'DotNetFX45\dotNetFx45_Full_setup.exe'
Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'DotNet45Full_TargetVersion' and value '4.5.50709': true
Result of checks for command 'DotNetFX45\dotNetFx45_Full_setup.exe' is 'Bypass'
'Microsoft .NET Framework 4.5 (x86 and x64)' RunCheck result: No Install Needed
Launching Application.
Error: Unable to locate application file 'Infinite Trainer Setup.msi'.

如何创建安装向导:

  1. 右键点击解决方案'InfiniteTrainer'
  2. 添加新项目 - >其他项目类型 - >设置向导
  3. 点击下一个按钮
  4. 标记为“为Windows应用程序创建设置”
  5. 点击下一个按钮
  6. 标记每个复选框,如屏幕截图所示:
  7. 点击完成按钮
  8. enter image description here

    有谁知道我做错了什么?我感谢任何帮助。

0 个答案:

没有答案