View Single Post
Old 10th August 2010, 15:06   #9
Noude
Junior Member
 
Join Date: Aug 2010
Posts: 40
Hellow !

I've already a new last question pleaaaase =(

If my boolean is at 1 I have to compil with "File "${FILEJAVA}""

But if my boolean is at 0 I don't want to compil with "File "${FILEJAVA}"" because if my boolean is at 0, ${FILEJAVA} doesn't exist ! So: error.

How can I do please ? =(

PHP Code:
ReadINIStr     $Bool_Java         $PLUGINSDIR\SelectElements.ini     "Field 9"  "State"

;With a manipulation I put the value of $Bool_Java in the !define BOOL_JAVA
;There's no problem with this ;)

!define BOOL_JAVA 0

Section "Java"                     Java_JRE

!if ${BOOL_JAVA} == 1
Goto begin
!else
Goto end
!endif

begin:
SetOutPath    $TEMP
File        "${FILEJAVA}"

; Installation JRE
    nsExec::ExecToStack '
$TEMP\${JAVA}'

end:
SectionEnd 

Last edited by Noude; 10th August 2010 at 15:42.
Noude is offline   Reply With Quote