Archive: Variables, Am I being stupid?


First time I decided to use variables.

Using 1.32 (latest non-beta)

Name "test"
OutFile "insttest.exe"
DirText "Choose a directory to install in to:"
DirShow show

Section "Test"
SetOutPath $INSTDIR
strcpy $0 "d:\program files\nsis\"
File $0\makensis.nsi
SectionEnd
And I get this:
MakeNSIS v1.32 - Copyright 1999-2001 Nullsoft, Inc.

Portions Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler.
Contributors: nnop@newmail.ru, Ryan Geiss, Andras Vargas, et al.

Use the /LICENSE switch to view license information.

-=-=-=-=-=-=-=-=-=-=- Processing script -=-=-=-=-=-=-=-=-=-=-
Script file: "D:\PROGRA~1\NSIS\test.nsi"
Name: "test"
OutFile: "insttest.exe"
DirText: "Choose a directory to install in to:"
DirShow: show
Section: "Test"
SetOutPath: "$INSTDIR"
StrCpy $0 "d:\program files\nsis\"
File: "$0\makensis.nsi" -> no files found.
Error in script "D:\PROGRA~1\NSIS\test.nsi" on line 9 -- aborting creation process
Now it looks like the variable has not been substituted in the line marked in bold. What obvious stupid thing have I done?

hi mike

i think justin made it so that the variables are only available at install time, not at setup creation time.

cu yzo
--
http://yazno.***********/powerpimpit/


Cheers man, just got that confirmed from Justin.

Now even *I* have a feature request :-)