mirror of
https://github.com/reactos/RosTE.git
synced 2024-11-23 03:29:57 +00:00
add a check for .NET 2.0
svn path=/trunk/tools/RosTE/; revision=189
This commit is contained in:
parent
b6e24467b4
commit
fdccb2b237
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user