View Single Post
Old 12th January 2012, 04:20   #3
jakc
Junior Member
 
Join Date: Sep 2011
Posts: 12
Perfect thanks!


PHP Code:
Function CheckAGS
SetRegView 32
ReadRegStr 
$1 HKLM "SOFTWARE\ESRI\Server10.0\CoreRuntime" "RealVersion"
${If} $!= ""
    
StrCpy $AGSv 2
    
return
${EndIf}
ReadRegStr $1 HKLM "SOFTWARE\ESRI\ArcServer\Microsoft .NET Framework Edition" "RealVersion"
${If} $!= ""
    
StrCpy $AGSv 1
    
return
${EndIf}
StrCpy $AGSv 0 ;not found
Messagebox MB_ICONSTOP 
"No AGS installation detected."
FunctionEnd 
jakc is offline   Reply With Quote