Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 23rd June 2001, 19:21   #1
isotherm
Junior Member
 
Join Date: Jun 2001
Posts: 1
I'm trying to make the following function to clean up the code and labels. It seems to be taking the $0 as a literal filename. Any suggestions?

Function DLLInstall
CompareDLLVersions /STOREFROM $0 "$OUTDIR\$0" TimeDLL SkipDLL
TimeDLL:
CompareFileTimes /STOREFROM $0 "$OUTDIR\$0" CopyDLL SkipDLL
CopyDLL:
File $0
RegDLL "$OUTDIR\$0"
SkipDLL:
FunctionEnd
isotherm is offline   Reply With Quote
Old 23rd June 2001, 23:59   #2
Edgewize
Member
 
Join Date: Apr 2001
Posts: 89
Unfortunately, you cannot use variables for local file names. /STOREFROM expects a path to a DLL on the development system, but variables like $0 are only expanded at install-time.
Edgewize 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