Archive: Contens of user_var


Contens of user_var
Hi

How do you get the contens of a user var.
I want to name my installation program with the build number of an exe

so i try this

Section
GetDLLVersion "c:\temp\bin\client\dssexplorer.exe" $4 $5
DetailPrint "Version $4 $5"

SectionEnd

OutFile Setup_$5.exe

But guess what. The Outfile is named exactlig as written.
(The detail print work fine ?)
Any suggestions


Bugge,

you cannot use user variables in (o.o.) the OutFile command. That's why it's creating a file with $5 in the name.

-Hendri.


The outfile is determined when you compile the installer. The variables are not determined until you run the installer. So as you can tell, there is no way to determine $5 when it compiles the installer.