Command StrCmp ?
In case compare, if the compare has got 2 case occur example but It's got 1 case, how will i write code ?
StrCmp $0 "a string" 0 +3
DetailPrint '$$0 == "a string"' # Case 1
Goto +2
DetailPrint '$$0 != "a string"' # Case 2
Archive: Command StrCmp ?
Command StrCmp ?
In case compare, if the compare has got 2 case occur example but It's got 1 case, how will i write code ?
StrCmp $0 "a string" 0 +3
DetailPrint '$$0 == "a string"' # Case 1
Goto +2
DetailPrint '$$0 != "a string"' # Case 2
you want case sensitive StrCmp?
StrCmpS
I were try 2 command (StrCmp and StrCmpS) It's not to have action. if i have to leave empty all commands 2 that all commands 1 will not execute, by the way, variable enviroment $1 = $2. you see commands below, :
StrCpy $0 0
loop:
ClearErrors
EnumRegValue $1 HKLM Software\Microsoft\Windows\CurrentVersion\SharedDlls $0
IfErrors done
IntOp $0 $0 + 1
StrCmp $2 $1 0 +3
... Commands 1
goto +2
...Commands 2 # If I leave empty in here which all commands 1 will not execute
goto loop
done:
You see detail in Question Function of NSIS ?: <a href=http://forums.winamp.com/showthread.php?s=&threadid=303127" I knew why my program delete key font not action because i have had to vacate line this. I want to question. If i have to leave empty all commands 2, How will I write on source code ?
Originally posted by dong
I were try 2 command (StrCmp and StrCmpS) It's not to have action. if i have to leave empty all commands 2 that all commands 1 will not execute, by the way, variable enviroment $1 = $2. you see commands below, :
StrCpy $0 0
loop:
ClearErrors
EnumRegValue $1 HKLM Software\Microsoft\Windows\CurrentVersion\SharedDlls $0
IfErrors done
IntOp $0 $0 + 1
StrCmp $2 $1 0 +3
... Commands 1
goto +2
...Commands 2 # If I leave empty in here which all commands 1 will not execute
goto loop
done:
If i have to leave empty all commands 2, How will I write on source code ?
StrCpy $0 0
loop:
ClearErrors
EnumRegValue $1 HKLM Software\Microsoft\Windows\CurrentVersion\SharedDlls $0
IfErrors done
IntOp $0 $0 + 1
StrCmp $2 $1 0 loop
... Commands 1
goto loop
done: