Nsis 无法在用户pc上安装.net framework

Nsis 无法在用户pc上安装.net framework,nsis,Nsis,我设计了一个c应用程序,并使用NSIS为其制作了一个安装程序,以执行: 检查用户计算机上是否安装了所需的.net framework版本。 如果没有,它将安装它。 在程序文件上为程序创建目录 在桌面上为程序创建.exe 任务2中无法安装的问题。这是密码 Name "MeetingRegulator" OutFile "setup.exe" !define NETVersion "4.0.30319" !define NETInstaller "dotNetFx40_Full_x86_x6

我设计了一个c应用程序,并使用NSIS为其制作了一个安装程序,以执行:

检查用户计算机上是否安装了所需的.net framework版本。 如果没有,它将安装它。 在程序文件上为程序创建目录 在桌面上为程序创建.exe 任务2中无法安装的问题。这是密码

    Name "MeetingRegulator"
OutFile "setup.exe"
!define NETVersion "4.0.30319"
!define NETInstaller "dotNetFx40_Full_x86_x64.exe"
Section "MS .NET Framework v${NETVersion}" SecFramework
  IfFileExists "$WINDIR\Microsoft.NET\Framework\v${NETVersion}" NETFrameworkInstalled 0
  File /oname=$TEMP\${NETInstaller} ${NETInstaller}

  DetailPrint "Starting Microsoft .NET Framework v${NETVersion} Setup..."
  ExecWait "$TEMP\${NETInstaller}"
  Return

  NETFrameworkInstalled:
  DetailPrint "Microsoft .NET Framework is already installed!"

SectionEnd
InstallDir $PROGRAMFILES\MeetingRegulator
DirText "ãä ÝÖáß Þã ÈÅÎÊíÇÑ ãßÇä ÊËØíÈ ÇáÈÑäÇãÌ"
Section "" ;No components page, name is not important

; Set output path to the installation directory.
SetOutPath $INSTDIR

; Put file there
File ÇáÅÌÊãÇÚÇÊ.exe
SectionEnd ; end the section

section "creat desktop icon "
SetOutPath $DESKTOP
File ÇáÅÌÊãÇÚÇÊ.exe
sectionend

这是我的.NETFramework4.5代码。它可以下载和安装,也可以选择从安装介质(如CD或U盘)运行:


是的,我知道您正在寻找.NET 4.0,但是.NET 4.5将运行.NET 4.0应用程序

到底是什么问题?安装程序运行吗?它失败了吗?它是否检测不到有效版本?它总是说.net版本已安装,而未安装。