Previous | Contents | Next

## C.7 Is .NET Framework installed?

     ; IsDotNETInstalled

     ;

     ; Based on GetDotNETVersion

     ;   http://nsis.sourceforge.net/Get_.NET_Version

     ;

     ; Usage:

     ;   Call IsDotNETInstalled

     ;   Pop $0

     ;   StrCmp $0 1 found.NETFramework no.NETFramework

     Function IsDotNETInstalled

       Push $0

       Push $1

       StrCpy $0 1

       System::Call "mscoree::GetCORVersion(w, i ${NSIS_MAX_STRLEN}, *i) i .r1"

       StrCmp $1 0 +2

         StrCpy $0 0

       Pop $1

       Exch $0

     FunctionEnd

Previous | Contents | Next