Upgrade DLL macro
Hi,I'm new to NSIS.
I'm building an install that copies files (using CopyFiles instead of File commands).
Obviously I need to modify the macro to use CopyFiles.
My question: Can I reimplement the UpgradeDll macro as a function?
Archive: Upgrade DLL macro
Upgrade DLL macro
Hi,I'm new to NSIS.
I'm building an install that copies files (using CopyFiles instead of File commands).
Obviously I need to modify the macro to use CopyFiles.
My question: Can I reimplement the UpgradeDll macro as a function?
UpgradeDLL is a macro because it needs compile-time paramters to be able to detect the version and include the files.
If you want to use CopyFiles you will have to modify it to get the version from a file on compile-time and copy the file on run-time.
Hi, Thanks for the quick reply.
The DLLs I'm installing are located on the install CD.
I was thinking to change:
GetDLLVersionLocal to GetDLLVersion
File to CopyFiles
remove the !define UPGRADEDLL_UNIQUE ${__LINE__}
and push LOCALFILE, DESTFILE, TEMPBASEDIR as parameters to the Function.
This IMHO removes any compile time dependencies.
As I understand the code of the macro, the need to specify each File command at compile time is why this has to be a macro, right?:confused:
Opher.