Prev Previous Post   Next Post Next
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
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump