Archive: upgradeDll error...


upgradeDll error...
I am getting the following error when compiling my script:
File: "MSSTDFMT.DLL" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] filespec [...]|/oname=outfile one_file_only)
Error in macro UpgradeDLL on macroline 92

Here is my call to upgradeDll:
SetOutPath "$SYSDIR"
!insertmacro UpgradeDLL "MSSTDFMT.DLL" "$SYSDIR\MSSTDFMT.DLL"
Push $SYSDIR\MSSTDFMT.DLL

Here is the offending code in upgradeDll (I think):
"file_${LOCALFILE}:"
File /oname=$R0 "${LOCALFILE}"
Return

"end_${LOCALFILE}:"

I'm using NSIS version 2.0 beta 3 on Windows ME with VB6 SP5 (if that info is needed). Thanks so much for your help!!!


Re: upgradeDll error...

Originally posted by jcagle
!insertmacro UpgradeDLL "MSSTDFMT.DLL" "$SYSDIR\MSSTDFMT.DLL"
from the error you say you get, i think the compiler (nsis) cannot locate your file (DLL). are you sure that you have the file in the right folder ? in the folder from where are you compiling ?

You should specify a full path for the first parameter so NSIS will know where to find this file.