Changeset 39562 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Dec 8, 2011 5:05:52 PM (13 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Installer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi
r39561 r39562 1260 1260 StrCpy $g_strSystemDir "$SYSDIR" 1261 1261 1262 ; We need a special directory set to SysWOW64 because some 1263 ; shell operations don't support file redirection (yet) 1264 StrCpy $g_strSysWow64 "$WINDIR\SysWOW64" 1265 1262 1266 ; Retrieve Windows version we're running on and store it in $g_strWinVersion 1263 1267 Call un.GetWindowsVer -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh
r39162 r39562 577 577 !if $%VBOX_WITH_CROGL% == "1" 578 578 579 DetailPrint "Removing 3D graphics support ..." 579 DetailPrint "Removing Direct3D support ..." 580 581 ; Do file validation before we uninstall 582 Call ${un}ValidateD3DFiles 583 Pop $0 584 ${If} $0 == "1" ; D3D files are invalid 585 DetailPrint "Invalid installation of Direct3D support detected; uninstallation skipped" 586 Goto d3d_uninstall_end 587 ${EndIf} 580 588 581 589 Delete /REBOOTOK "$g_strSystemDir\VBoxOGLarrayspu.dll" … … 594 602 Delete /REBOOTOK "$g_strSystemDir\wined3d.dll" 595 603 ; Update DLL cache 596 IfFileExists "$g_strSystemDir\dllcache\msd3d8.dll" 0 +2604 ${If} ${FileExists} "$g_strSystemDir\dllcache\msd3d8.dll" 597 605 Delete /REBOOTOK "$g_strSystemDir\dllcache\d3d8.dll" 598 606 Rename /REBOOTOK "$g_strSystemDir\dllcache\msd3d8.dll" "$g_strSystemDir\dllcache\d3d8.dll" 599 IfFileExists "$g_strSystemDir\dllcache\msd3d9.dll" 0 +2 607 ${EndIf} 608 ${If} ${FileExists} "$g_strSystemDir\dllcache\msd3d9.dll" 600 609 Delete /REBOOTOK "$g_strSystemDir\dllcache\d3d9.dll" 601 610 Rename /REBOOTOK "$g_strSystemDir\dllcache\msd3d9.dll" "$g_strSystemDir\dllcache\d3d9.dll" 611 ${EndIf} 602 612 ; Restore original DX DLLs 603 IfFileExists "$g_strSystemDir\msd3d8.dll" 0 +2613 ${If} ${FileExists} "$g_strSystemDir\msd3d8.dll" 604 614 Delete /REBOOTOK "$g_strSystemDir\d3d8.dll" 605 615 Rename /REBOOTOK "$g_strSystemDir\msd3d8.dll" "$g_strSystemDir\d3d8.dll" 606 IfFileExists "$g_strSystemDir\msd3d9.dll" 0 +2 616 ${EndIf} 617 ${If} ${FileExists} "$g_strSystemDir\msd3d9.dll" 607 618 Delete /REBOOTOK "$g_strSystemDir\d3d9.dll" 608 619 Rename /REBOOTOK "$g_strSystemDir\msd3d9.dll" "$g_strSystemDir\d3d9.dll" 620 ${EndIf} 609 621 610 622 !if $%BUILD_TARGET_ARCH% == "amd64" 611 612 623 ; Only 64-bit installer: Also remove 32-bit DLLs on 64-bit target arch in Wow64 node 613 ${EnableX64FSRedirection} 614 Delete /REBOOTOK "$SYSDIR\VBoxOGLarrayspu.dll" 615 Delete /REBOOTOK "$SYSDIR\VBoxOGLcrutil.dll" 616 Delete /REBOOTOK "$SYSDIR\VBoxOGLerrorspu.dll" 617 Delete /REBOOTOK "$SYSDIR\VBoxOGLpackspu.dll" 618 Delete /REBOOTOK "$SYSDIR\VBoxOGLpassthroughspu.dll" 619 Delete /REBOOTOK "$SYSDIR\VBoxOGLfeedbackspu.dll" 620 Delete /REBOOTOK "$SYSDIR\VBoxOGL.dll" 624 Delete /REBOOTOK "$g_strSysWow64\VBoxOGLarrayspu.dll" 625 Delete /REBOOTOK "$g_strSysWow64\VBoxOGLcrutil.dll" 626 Delete /REBOOTOK "$g_strSysWow64\VBoxOGLerrorspu.dll" 627 Delete /REBOOTOK "$g_strSysWow64\VBoxOGLpackspu.dll" 628 Delete /REBOOTOK "$g_strSysWow64\VBoxOGLpassthroughspu.dll" 629 Delete /REBOOTOK "$g_strSysWow64\VBoxOGLfeedbackspu.dll" 630 Delete /REBOOTOK "$g_strSysWow64\VBoxOGL.dll" 621 631 622 632 ; Remove D3D stuff 623 633 ; @todo add a feature flag to only remove if installed explicitly 624 Delete /REBOOTOK "$ SYSDIR\libWine.dll"625 Delete /REBOOTOK "$ SYSDIR\VBoxD3D8.dll"626 Delete /REBOOTOK "$ SYSDIR\VBoxD3D9.dll"627 Delete /REBOOTOK "$ SYSDIR\wined3d.dll"634 Delete /REBOOTOK "$g_strSysWow64\libWine.dll" 635 Delete /REBOOTOK "$g_strSysWow64\VBoxD3D8.dll" 636 Delete /REBOOTOK "$g_strSysWow64\VBoxD3D9.dll" 637 Delete /REBOOTOK "$g_strSysWow64\wined3d.dll" 628 638 ; Update DLL cache 629 IfFileExists "$SYSDIR\dllcache\msd3d8.dll" 0 +2 630 Delete /REBOOTOK "$SYSDIR\dllcache\d3d8.dll" 631 Rename /REBOOTOK "$SYSDIR\dllcache\msd3d8.dll" "$SYSDIR\dllcache\d3d8.dll" 632 IfFileExists "$SYSDIR\dllcache\msd3d9.dll" 0 +2 633 Delete /REBOOTOK "$SYSDIR\dllcache\d3d9.dll" 634 Rename /REBOOTOK "$SYSDIR\dllcache\msd3d9.dll" "$SYSDIR\dllcache\d3d9.dll" 639 ${If} ${FileExists} "$g_strSysWow64\dllcache\msd3d8.dll" 640 Delete /REBOOTOK "$g_strSysWow64\dllcache\d3d8.dll" 641 Rename /REBOOTOK "$g_strSysWow64\dllcache\msd3d8.dll" "$g_strSysWow64\dllcache\d3d8.dll" 642 ${EndIf} 643 ${If} ${FileExists} "$g_strSysWow64\dllcache\msd3d9.dll" 644 Delete /REBOOTOK "$g_strSysWow64\dllcache\d3d9.dll" 645 Rename /REBOOTOK "$g_strSysWow64\dllcache\msd3d9.dll" "$g_strSysWow64\dllcache\d3d9.dll" 646 ${EndIf} 635 647 ; Restore original DX DLLs 636 IfFileExists "$SYSDIR\msd3d8.dll" 0 +2 637 Delete /REBOOTOK "$SYSDIR\d3d8.dll" 638 Rename /REBOOTOK "$SYSDIR\msd3d8.dll" "$SYSDIR\d3d8.dll" 639 IfFileExists "$SYSDIR\msd3d9.dll" 0 +2 640 Delete /REBOOTOK "$SYSDIR\d3d9.dll" 641 Rename /REBOOTOK "$SYSDIR\msd3d9.dll" "$SYSDIR\d3d9.dll" 648 ${If} ${FileExists} "$g_strSysWow64\msd3d8.dll" 649 Delete /REBOOTOK "$g_strSysWow64\d3d8.dll" 650 Rename /REBOOTOK "$g_strSysWow64\msd3d8.dll" "$g_strSysWow64\d3d8.dll" 651 ${EndIf} 652 ${If} ${FileExists} "$g_strSysWow64\msd3d9.dll" 653 Delete /REBOOTOK "$g_strSysWow64\d3d9.dll" 654 Rename /REBOOTOK "$g_strSysWow64\msd3d9.dll" "$g_strSysWow64\d3d9.dll" 655 ${EndIf} 642 656 DeleteRegKey HKLM "SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\VBoxOGL" 643 ${DisableX64FSRedirection}644 657 !endif ; amd64 645 658 646 659 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\VBoxOGL" 660 661 d3d_uninstall_end: 647 662 648 663 !endif ; VBOX_WITH_CROGL
Note:
See TracChangeset
for help on using the changeset viewer.