PDA

View Full Version : $0 problem


isotherm
23rd June 2001, 19:21
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

Edgewize
23rd June 2001, 23:59
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.