Author: gedmurphy Date: Thu May 24 16:34:09 2007 New Revision: 26879
URL: http://svn.reactos.org/svn/reactos?rev=26879&view=rev Log: add a check for .NET 2.0
Modified: trunk/tools/RosTE/installer/RosTE.nsi
Modified: trunk/tools/RosTE/installer/RosTE.nsi URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosTE/installer/RosTE.nsi?rev... ============================================================================== --- trunk/tools/RosTE/installer/RosTE.nsi (original) +++ trunk/tools/RosTE/installer/RosTE.nsi Thu May 24 16:34:09 2007 @@ -61,7 +61,24 @@ 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"