Archive: Upgrade and Rename a DLL


Upgrade and Rename a DLL
Hi,

I have a problem with my installer while upgrading a "used" DLL.

In my package, I have several language dependant files aclang_FR.DLL, aclang_DE.DLL .... that need to be renamed to aclang.dll during installation.

If I ship an update, I need to replace these DLL that are in use... how can I do this ?

Currently, I'm using File /oname=$INSTDIR\aclang.dll "D:\Development\AC_Current\Executables\aclang_en.dll" to copy the file, but I got a message that it's in use. But I think that the !UpgradeDLL cannot handle the renaming functionality.

Thanks in advance


UpgradeDLL accepts two parameters LOCALFILE and DESTFILE. Use LOCALFILE as aclang_en.dll and DESTFILE and aclang.dll and it should work.


That works ... Thanks !

I overlooked the comments in the header of the UpgradeDLL macro ... Sorry :mad: