add a check for .NET 2.0

svn path=/trunk/tools/RosTE/; revision=189
This commit is contained in:
Ged Murphy 2007-05-24 12:34:09 +00:00
parent b6e24467b4
commit fdccb2b237

View File

@ -61,7 +61,24 @@ SetCompressor /FINAL /SOLID lzma
ShowInstDetails show
ShowUnInstDetails show
!macro Check_DotNet
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\.NETFramework" "InstallRoot"
StrCmp $R0 "" NotFound VerifyVersion
VerifyVersion:
IfFileExists "$R0\v2.0.50727\*.*" Found NotFound
NotFound:
MessageBox MB_OK|MB_ICONEXCLAMATION "This application requires the .NET 2.0 framework."
Quit
Found:
macroend
Section "InstallGui" SEC01
!insertmacro Check_DotNet
SetOutPath "$INSTDIR\GUI"
SetOverwrite ifnewer
File "${SOURCE_DIR}\GUI\QemuGUI.exe"