VirtualBox

Ignore:
Timestamp:
May 1, 2025 8:47:02 AM (9 days ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168686
Message:

Windows Additions installer: Got rid of the ancient ReplaceDLL.nsh and use the official (included with NSIS) InstallLib macro from the NSIS distribution (defined in Include\Library.nsh).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi

    r109121 r109134  
    6666!define REGISTRY_VAL_ORG_MOUSE_PATH "MousePath"
    6767
    68 ; Needed for InstallLib macro: Install libraries in every case.
    69 !define LIBRARY_IGNORE_VERSION
    70 
    7168VIProductVersion "${PRODUCT_VERSION}"
    7269VIAddVersionKey "FileVersion"       "$%VBOX_VERSION_STRING%"
     
    109106!endif
    110107!include "winver.nsh"         ; Function for determining Windows version.
    111 !define REPLACEDLL_NOREGISTER ; Replace in use DLL function.
    112 !include "ReplaceDLL.nsh"
     108
     109; Needed for the InstallLib macro (defined in NSIS' Library.nsh):
     110;
     111; Make sure we always replace DLLs, no matter if the version is the same.
     112; This also is needed for supporting downgrades.
     113!define LIBRARY_IGNORE_VERSION
    113114
    114115!if $%KBUILD_TARGET_ARCH% == "amd64"
     
    738739      ; Use VBoxCredProv on Vista and up.
    739740      ${LogVerbose} "Installing VirtualBox credential provider ..."
    740       !insertmacro ReplaceDLL "$%PATH_OUT%\bin\additions\VBoxCredProv.dll" "$g_strSystemDir\VBoxCredProv.dll" "$INSTDIR"
     741      !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\VBoxCredProv.dll" "$g_strSystemDir\VBoxCredProv.dll" "$INSTDIR"
    741742      WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}" "" "VBoxCredProv" ; adding to (default) key
    742743      WriteRegStr HKCR "CLSID\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}" "" "VBoxCredProv"                       ; adding to (Default) key
     
    749750!endif
    750751      ${LogVerbose} "Installing VirtualBox GINA ..."
    751       !insertmacro ReplaceDLL "$%PATH_OUT%\bin\additions\VBoxGINA.dll" "$g_strSystemDir\VBoxGINA.dll" "$INSTDIR"
     752      !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\VBoxGINA.dll" "$g_strSystemDir\VBoxGINA.dll" "$INSTDIR"
    752753      WriteRegStr HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" "GinaDLL" "VBoxGINA.dll"
    753754      ; Add Windows notification package callbacks for VBoxGINA
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette