View Single Post
Old 6th November 2007, 14:52   #1
Junior Member
Join Date: Nov 2007
Posts: 23
StringCompare if not empty

I use the following script to check for installation of the .NET Framework:


StrCpy $2 0
EnumRegKey $1 HKLM Software $2
StrCmp $1 "v2.0.50727" done
IntOp $2 $2 + 1
!StrCmp $1 "" loop
MessageBox MB_OK "NoMsFramworkInstalled"

I want to loop trough my Registry is the key 'v2.0.50727' exists. Every key I compare with "v2.0.50727". When true go to 'done', when false reloop.

[Line 6] If $1 is not empty, reloop. What is the right syntax for this line? And will this code work?
martijntijn is offline   Reply With Quote