Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 26th April 2001, 21:34   #1
THEMike
Bastificator [Alumni]
 
THEMike's Avatar
 
Join Date: May 2000
Location: #nullsoft
Posts: 1,260
First time I decided to use variables.

Using 1.32 (latest non-beta)
Quote:
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:
Quote:
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?

"Beer?"
THEMike is offline   Reply With Quote
Old 27th April 2001, 00:08   #2
yazno
Member
 
Join Date: Oct 2000
Posts: 92
Send a message via ICQ to yazno
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/
yazno is offline   Reply With Quote
Old 27th April 2001, 10:38   #3
THEMike
Bastificator [Alumni]
 
THEMike's Avatar
 
Join Date: May 2000
Location: #nullsoft
Posts: 1,260
Cheers man, just got that confirmed from Justin.

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

"Beer?"
THEMike is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump