Archive: $0 problem


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


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.