Archive: error when compare dll


error when compare dll
I have a trouble with compare dll:

IfFileExists "$SYSDIR\MSVBVM60.DLL" EndVbVm
; If MSVBVM60.DLL doesn't exist in $SYSDIR then I copy MSVBVM60.DLL from my server and register it
SetOutPath $INSTDIR
File "\\ETUDEV4\WWWROOT\FTSOURCES\INSTALLER\SYSTEM\LE\MSVBVM60.DLL"
RegDll "MSVBVM60.DLL"
EndVbVm:
; if MSVBVM60.DLL exists in $SYSDIR I compare it with the DLL from my server to register the newest one...
COmpareDLLVersions /STOREFROM "MSVBVM60.DLL" "\\ETUDEV4\WWWROOT\FTSOURCES\INSTALLER\SYSTEM\LE\MSVBVM60.DLL" Dll1Newer Dll2Newer
Dll1Newer:
SetOutPath $INSTDIR
File "$SYSDIR\MSVBVM60.DLL"
RegDll "MSVBVM60.DLL"
Dll2Newer:
SetOutPath $INSTDIR
File "\\ETUDEV4\WWWROOT\FTSOURCES\INSTALLER\SYSTEM\LE\MSVBVM60.DLL"
RegDll "MSVBVM60.DLL"
:)


First off, Thank you reassuring me that my form works.

Second: NSIS doesn't allow you to do website/webserver/ftp DLL comparison. Think of it this way, What if I were to get the latest version of your program, then put it on a computer WITHOUT internet access. Now, If you weren't trying to do that, then I need a better explaination of what you had in mind.

-Duane


He's not doing anything with webservers. //somename/ is the way to describe another machine on a MS lan. But I think the problem is that he's trying getting the file to do the comparison at compile time, rather then runtime.

kolo: try using copyFiles

CopyFiles path_of_file_or_wildcard_on_destination_system destination_path size_of_files_in_kb
Copies files from the source to the destination on the installing system.
Useful with $EXEDIR if you want to copy from installation media, or to copy from one place to another on the system.
Uses SHFileOperation, so the user might see a status window of the copy operation if it is large.
The last parameter specifies how big the copy is (in kilobytes), so that the installer can approximate the disk space requirements.


AND, I've never tried using NSIS to get a file from another machine on a lan, so it might not work anyway.

-=Gonzotek=-

You might also save yourself some headaches by declaring a user variable or two for those long filnames, theey're a bitch to type in over and over.