VirtualBox

Changeset 96772 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Sep 16, 2022 10:24:39 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153660
Message:

Add/Nt/Installer: Clean up the certificate directory before install and on uninstallation. bugref:8691

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh

    r96766 r96772  
    160160FunctionEnd
    161161
     162!macro W2K_CleanupCerts un
     163;;
     164; Removes certificates and the certificate utility.
     165;
     166; Since the certificate collection depends on the build config and have
     167; changed over time, we always clean it up before installation.
     168;
     169Function ${un}W2K_CleanupCerts
     170  Delete /REBOOTOK "$INSTDIR\cert\vbox.cer"
     171  Delete /REBOOTOK "$INSTDIR\cert\vbox-root.cer"
     172  Delete /REBOOTOK "$INSTDIR\cert\vbox-timestamp-root.cer"
     173  Delete /REBOOTOK "$INSTDIR\cert\vbox-sha1.cer"
     174  Delete /REBOOTOK "$INSTDIR\cert\vbox-sha1-root.cer"
     175  Delete /REBOOTOK "$INSTDIR\cert\vbox-sha1-timestamp-root.cer"
     176  Delete /REBOOTOK "$INSTDIR\cert\vbox-sha256.cer"
     177  Delete /REBOOTOK "$INSTDIR\cert\vbox-sha256-root.cer"
     178  Delete /REBOOTOK "$INSTDIR\cert\vbox-sha256-timestamp-root.cer"
     179  Delete /REBOOTOK "$INSTDIR\cert\vbox-sha256-r3.cer"
     180  Delete /REBOOTOK "$INSTDIR\cert\vbox-sha256-r3-root.cer"
     181  Delete /REBOOTOK "$INSTDIR\cert\vbox-sha256-r3-timestamp-root.cer"
     182  Delete /REBOOTOK "$INSTDIR\cert\vbox-legacy-timestamp-ca.cer"
     183  Delete /REBOOTOK "$INSTDIR\cert\root-versign-pca3-g5.cer"             ; only for a while during 7.0 beta phase
     184  Delete /REBOOTOK "$INSTDIR\cert\root-digicert-assured-id.cer"         ; ditto
     185  Delete /REBOOTOK "$INSTDIR\cert\root-digicert-high-assurance-ev.cer"  ; ditto
     186  Delete /REBOOTOK "$INSTDIR\cert\VBoxCertUtil.exe"
     187  RMDir  /REBOOTOK "$INSTDIR\cert"
     188FunctionEnd
     189!macroend
     190!insertmacro W2K_CleanupCerts ""
     191!insertmacro W2K_CleanupCerts "un."
     192
     193
    162194!ifdef VBOX_SIGN_ADDITIONS
    163195;;
     
    210242  ; Delete old VBoxService.exe from install directory (replaced by VBoxTray.exe)
    211243  Delete /REBOOTOK "$INSTDIR\VBoxService.exe"
     244
     245  ; Ditch old certificates and stuff to avoid confusion if we now ship fewer / different files.
     246  Call W2K_CleanupCerts
    212247
    213248!ifdef VBOX_SIGN_ADDITIONS
     
    602637!endif ; $%VBOX_WITH_WDDM% == "1"
    603638
    604   ; Log file
     639  ; Certificates, utility and directory.
     640  Call ${un}W2K_CleanupCerts
     641
     642  ; Log files
    605643  Delete /REBOOTOK "$INSTDIR\install.log"
    606644  Delete /REBOOTOK "$INSTDIR\install_ui.log"
     645  Delete /REBOOTOK "$INSTDIR\install_drivers.log"
    607646
    608647FunctionEnd
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