!Include Library.nsh
!define LIBRARY_IGNORE_VERSION
!define LIBRARY_COM
OutFile ".\TestUpgrade.exe"
Section
SetOutPath "C:\Test"
!insertmacro UnInstallLib REGDLL NOTSHARED REBOOT_NOTPROTECTED "$OutDir\test.dll"
!insertmacro InstallLib REGDLL NOTSHARED REBOOT_NOTPROTECTED ".\newTest.dll" "$OutDir\test.dll" $TEMP
SectionEnd I have an installer for an Internet Explorer toolbar, and the objective here is to make its upgrade visible on new IE tabs and windows instead of waiting for restart in case IE is open.I saw that UnInstallLib of Library.nsh moves the busy dll somewhere else, so I thought a call to InstallLib will re-register the toolbar's new dll. It's not. Instead it will register the new dll on reboot.
A second run of the installer will register the new dll.
- Does this have to do with the UNIQUE id of the installer-run, used by Library.nsh?
- Is there a workaround?