View Single Post
Old 9th August 2010, 16:56   #1
Noude
Junior Member
 
Join Date: Aug 2010
Posts: 40
Unhappy Variable in a string

Hello !


I search how to put a variable in a string please.

I explain, I have this:

Var EtudeName
ReadINIStr $R1 $DESKTOP\Data.ini "Data" "EtudeName"
StrCpy $EtudeName $R1
;----Here I have $EtudeName == Tomcat 6.0----
File "C:\Program Files\Admin builder\$EtudeName.zip"

But it don't work !
The command File said that it doesn't find the file "C:\Program Files\Admin builder\$EtudeName.zip"
It is normal because I want to have "C:\Program Files\Admin builder\Tomcat 6.0.zip"

I tried with '$EtudeName' or with "$EtudeName", ... I tried everything but...

Please help... =(
Noude is offline   Reply With Quote