VirtualBox

Changeset 50433 in vbox


Ignore:
Timestamp:
Feb 12, 2014 4:47:21 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92222
Message:

Windows Guest Additions installer: Another lovely hack to copy system files after a reboot.

File:
1 edited

Legend:

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

    r50423 r50433  
    810810  ${If} $0 == "0"
    811811    ${LogVerbose} "Copying verified file $\"${FileSrc}$\" to $\"${FileDest}$\" ..."
     812    ClearErrors
     813    SetOverwrite on
    812814    CopyFiles /SILENT "${FileSrc}" "${FileDest}"
     815    ${If} ${Errors}
     816      CreateDirectory "$TEMP\${PRODUCT_NAME}"
     817      ${GetFileName} "${FileSrc}" $0 ; Get the base name
     818      CopyFiles /SILENT "${FileSrc}" "$TEMP\${PRODUCT_NAME}\$0"
     819      ${LogVerbose} "Immediate installation failed, postponing to next reboot (temporary location is: $\"$TEMP\${PRODUCT_NAME}\$0$\") ..."
     820      ;${InstallFileEx} "${un}" "${FileSrc}" "${FileDest}" "$TEMP" ; Only works with compile time files!
     821      System::Call "kernel32::MoveFileEx(t '$TEMP\${PRODUCT_NAME}\$0', t '${FileDest}', i 5)"
     822    ${EndIf}
    813823  ${Else}
    814824    ${LogVerbose} "Skipping to copy file $\"${FileSrc}$\" to $\"${FileDest}$\" (not Vendor: ${Vendor}, Architecture: ${Architecture})"
Note: See TracChangeset for help on using the changeset viewer.

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