VirtualBox

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


Ignore:
Timestamp:
Jan 28, 2013 11:45:52 AM (12 years ago)
Author:
vboxsync
Message:

More DetailPrint -> LogVerbose.

Location:
trunk/src/VBox/Additions/WINNT/Installer
Files:
5 edited

Legend:

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

    r40270 r44417  
    55
    66;
    7 ; Copyright (C) 2006-2012 Oracle Corporation
     7; Copyright (C) 2006-2013 Oracle Corporation
    88;
    99; This file is part of VirtualBox Open Source Edition (OSE), as
     
    2626missingParms:
    2727
    28   DetailPrint "Missing display parameters for NT4, setting default (640x480, 8 BPP) ..."
     28  ${LogVerbose} "Missing display parameters for NT4, setting default (640x480, 8 BPP) ..."
    2929
    3030  StrCpy $g_iScreenX '640'   ; Default value
     
    3737haveParms:
    3838
    39   DetailPrint "Setting display parameters for NT4 ($g_iScreenXx$g_iScreenY, $g_iScreenBpp BPP) ..."
     39  ${LogVerbose} "Setting display parameters for NT4 ($g_iScreenXx$g_iScreenY, $g_iScreenBpp BPP) ..."
    4040
    4141  WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\vboxvideo\Device0" "DefaultSettings.BitsPerPel" $g_iScreenBpp
     
    6868  StrCmp $0 "" 0 exists
    6969
    70   DetailPrint "Saving mouse driver info ..."
     70  ${LogVerbose} "Saving mouse driver info ..."
    7171  ReadRegStr $0 HKLM "SYSTEM\CurrentControlSet\Services\i8042prt" "ImagePath"
    7272  WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" ${ORG_MOUSE_PATH} $0
     
    7575exists:
    7676
    77   DetailPrint "Mouse driver info already saved."
     77  ${LogVerbose} "Mouse driver info already saved."
    7878  Goto exit
    7979
     
    8181
    8282!ifdef _DEBUG
    83   DetailPrint "Mouse driver info: $0"
     83  ${LogVerbose} "Mouse driver info: $0"
    8484!endif
    8585
     
    110110Function NT4_CopyFiles
    111111
    112   DetailPrint "Copying files for NT4 ..."
     112  ${LogVerbose} "Copying files for NT4 ..."
    113113
    114114  SetOutPath "$INSTDIR"
     
    137137Function NT4_InstallFiles
    138138
    139   DetailPrint "Installing drivers for NT4 ..."
     139  ${LogVerbose} "Installing drivers for NT4 ..."
    140140
    141141  ; Install guest driver
     
    155155  IntCmp $0 0 +1 error error  ; Check ret value (0=OK, 1=Error)
    156156
    157   DetailPrint "Installing VirtualBox service ..."
     157  ${LogVerbose} "Installing VirtualBox service ..."
    158158
    159159  ; Create the VBoxService service
     
    166166
    167167!ifdef _DEBUG
    168   ;DetailPrint "SCM::Install VBoxSFNT.sys: $0"
     168  ;${LogVerbose} "SCM::Install VBoxSFNT.sys: $0"
    169169!endif
    170170
     
    260260  ${If} $0 == "System32\DRIVERS\VBoxMouseNT.sys"
    261261    WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\i8042prt" "ImagePath" "System32\DRIVERS\i8042prt.sys"
    262     DetailPrint "Old mouse driver is set to VBoxMouseNT.sys, defaulting to i8042prt.sys ..."
     262    ${LogVerbose} "Old mouse driver is set to VBoxMouseNT.sys, defaulting to i8042prt.sys ..."
    263263  ${Else}
    264264    WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\i8042prt" "ImagePath" $0
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsUninstall.nsh

    r43129 r44417  
    55
    66;
    7 ; Copyright (C) 2006-2012 Oracle Corporation
     7; Copyright (C) 2006-2013 Oracle Corporation
    88;
    99; This file is part of VirtualBox Open Source Edition (OSE), as
     
    7070Function ${un}Uninstall
    7171
    72   DetailPrint "Uninstalling system files ..."
     72  ${LogVerbose} "Uninstalling system files ..."
    7373!ifdef _DEBUG
    74   DetailPrint "Detected OS version: Windows $g_strWinVersion"
    75   DetailPrint "System Directory: $g_strSystemDir"
     74  ${LogVerbose} "Detected OS version: Windows $g_strWinVersion"
     75  ${LogVerbose} "System Directory: $g_strSystemDir"
    7676!endif
    7777
     
    128128Function ${un}UninstallInstDir
    129129
    130   DetailPrint "Uninstalling directory ..."
     130  ${LogVerbose} "Uninstalling directory ..."
    131131!ifdef _DEBUG
    132   DetailPrint "Detected OS version: Windows $g_strWinVersion"
    133   DetailPrint "System Directory: $g_strSystemDir"
     132  ${LogVerbose} "Detected OS version: Windows $g_strWinVersion"
     133  ${LogVerbose} "System Directory: $g_strSystemDir"
    134134!endif
    135135
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsUninstallOld.nsh

    r43129 r44417  
    66
    77;
    8 ; Copyright (C) 2006-2011 Oracle Corporation
     8; Copyright (C) 2006-2013 Oracle Corporation
    99;
    1010; This file is part of VirtualBox Open Source Edition (OSE), as
     
    9191
    9292  ; Do some basic sanity checks for not screwing up too fatal ...
    93   DetailPrint "Removing old installation directory ($0) ..."
     93  ${LogVerbose} "Removing old installation directory ($0) ..."
    9494  ${If} $0    != $PROGRAMFILES
    9595  ${AndIf} $0 != $PROGRAMFILES32
     
    9999  ${AndIf} $0 != $WINDIR
    100100  ${AndIf} $0 != $SYSDIR
    101     DetailPrint "Wiping ($0) ..."
     101    ${LogVerbose} "Wiping ($0) ..."
    102102    Goto wipe
    103103  ${EndIf}
     
    112112wipe_abort:
    113113
    114   DetailPrint "Won't remove directory ($0)!"
     114  ${LogVerbose} "Won't remove directory ($0)!"
    115115  StrCpy $0 1 ; Signal some failure
    116116  Goto exit
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsVista.nsh

    r44416 r44417  
    2020  Push $0
    2121
    22   DetailPrint "Checking for installation requirements for Vista / Windows 7 / Windows 8 ..."
     22  ${LogVerbose} "Checking for installation requirements for Vista / Windows 7 / Windows 8 ..."
    2323
    2424  ${If} $g_bForceInstall == "true"
    25     DetailPrint "Forcing installation, checking requirements skipped"
     25    ${LogVerbose} "Forcing installation, checking requirements skipped"
    2626    goto success
    2727  ${EndIf}
     
    8484Function Vista_InstallFiles
    8585
    86   DetailPrint "Installing drivers for Vista / Windows 7 / Windows 8 ..."
     86  ${LogVerbose} "Installing drivers for Vista / Windows 7 / Windows 8 ..."
    8787
    8888  SetOutPath "$INSTDIR"
     
    129129
    130130   ; Remove credential provider
    131    DetailPrint "Removing auto-logon support ..."
     131   ${LogVerbose} "Removing auto-logon support ..."
    132132   DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}"
    133133   DeleteRegKey HKCR "CLSID\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}"
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh

    r44352 r44417  
    3030  StrCmp $g_iScreenBpp "0" exit
    3131
    32   DetailPrint "Setting display parameters ($g_iScreenXx$g_iScreenY, $g_iScreenBpp BPP) ..."
     32  ${LogVerbose} "Setting display parameters ($g_iScreenXx$g_iScreenY, $g_iScreenBpp BPP) ..."
    3333
    3434  ; Enumerate all video devices (up to 32 at the moment, use key "MaxObjectNumber" key later)
     
    5656    ReadRegStr $dev_desc HKLM "$tmppath" "Device Description"
    5757!ifdef _DEBUG
    58     DetailPrint "Registry path: $tmppath"
    59     DetailPrint "Registry path to device name: $temp"
    60 !endif
    61     DetailPrint "Detected video device: $dev_desc"
     58    ${LogVerbose} "Registry path: $tmppath"
     59    ${LogVerbose} "Registry path to device name: $temp"
     60!endif
     61    ${LogVerbose} "Detected video device: $dev_desc"
    6262
    6363    ${If} $dev_desc == "VirtualBox Graphics Adapter"
    64       DetailPrint "VirtualBox video device found!"
     64      ${LogVerbose} "VirtualBox video device found!"
    6565      Goto dev_found
    6666    ${EndIf}
     
    7979
    8080  StrCpy $i 0 ; Start at index 0
    81   DetailPrint "Detecting device ID ..."
     81  ${LogVerbose} "Detecting device ID ..."
    8282
    8383dev_found_detect_id_loop:
     
    8787  StrCmp $dev_id "" dev_not_found ; No more entries? Jump out
    8888!ifdef _DEBUG
    89   DetailPrint "Got device ID: $dev_id"
     89  ${LogVerbose} "Got device ID: $dev_id"
    9090!endif
    9191  ReadRegStr $dev_desc HKLM "SYSTEM\CurrentControlSet\Control\Video\$dev_id\0000" "Device Description" ; Try to read device name
    9292  ${If} $dev_desc == "VirtualBox Graphics Adapter"
    93     DetailPrint "Device ID of $dev_desc: $dev_id"
     93    ${LogVerbose} "Device ID of $dev_desc: $dev_id"
    9494    Goto change_res
    9595  ${EndIf}
     
    100100dev_not_found:
    101101
    102   DetailPrint "No VirtualBox video device (yet) detected! No custom mode set."
     102  ${LogVerbose} "No VirtualBox video device (yet) detected! No custom mode set."
    103103  Goto exit
    104104
     
    106106
    107107!ifdef _DEBUG
    108   DetailPrint "Device description: $dev_desc"
    109   DetailPrint "Device ID: $dev_id"
     108  ${LogVerbose} "Device description: $dev_desc"
     109  ${LogVerbose} "Device ID: $dev_id"
    110110!endif
    111111
     
    113113  Var /GLOBAL reg_path_monitor
    114114
    115   DetailPrint "Custom mode set: Platform is Windows $g_strWinVersion"
     115  ${LogVerbose} "Custom mode set: Platform is Windows $g_strWinVersion"
    116116  ${If} $g_strWinVersion == "2000"
    117117  ${OrIf} $g_strWinVersion == "Vista"
     
    124124    StrCpy $reg_path_monitor "SYSTEM\CurrentControlSet\Control\VIDEO\$dev_id\0000\Mon00000001"
    125125  ${Else}
    126     DetailPrint "Custom mode set: Windows $g_strWinVersion not supported yet"
     126    ${LogVerbose} "Custom mode set: Windows $g_strWinVersion not supported yet"
    127127    Goto exit
    128128  ${EndIf}
     
    142142  WriteRegDWORD HKCC $reg_path_monitor "DefaultSettings.BitsPerPixel" "$g_iScreenBpp"
    143143
    144   DetailPrint "Custom mode set to $g_iScreenXx$g_iScreenY, $g_iScreenBpp BPP on next restart."
     144  ${LogVerbose} "Custom mode set to $g_iScreenXx$g_iScreenY, $g_iScreenBpp BPP on next restart."
    145145
    146146exit:
     
    214214    GetTempFileName $0
    215215    IfErrors 0 +3
    216       DetailPrint "Error getting temp file for VBoxService.exe"
     216      ${LogVerbose} "Error getting temp file for VBoxService.exe"
    217217      StrCpy "$0" "$INSTDIR\VBoxServiceTemp.exe"
    218     DetailPrint "VBoxService is in use, will be installed on next reboot (from '$0')"
     218    ${LogVerbose} "VBoxService is in use, will be installed on next reboot (from '$0')"
    219219    File "/oname=$0" "$%PATH_OUT%\bin\additions\VBoxService.exe"
    220220    IfErrors 0 +2
    221       DetailPrint "Error copying VBoxService.exe to '$0'"
     221      ${LogVerbose} "Error copying VBoxService.exe to '$0'"
    222222    Rename /REBOOTOK "$0" "$g_strSystemDir\VBoxService.exe"
    223223    IfErrors 0 +2
    224       DetailPrint "Error renaming '$0' to '$g_strSystemDir\VBoxService.exe'"
     224      ${LogVerbose} "Error renaming '$0' to '$g_strSystemDir\VBoxService.exe'"
    225225    Pop $0
    226226  ${EndIf}
     
    337337do:
    338338
    339   DetailPrint "Turning off WHQL protection..."
     339  ${LogVerbose} "Turning off WHQL protection..."
    340340  nsExec::ExecToLog '"$INSTDIR\VBoxWHQLFake.exe" "ignore"'
    341341
     
    351351do:
    352352
    353   DetailPrint "Turning back on WHQL protection..."
     353  ${LogVerbose} "Turning back on WHQL protection..."
    354354  nsExec::ExecToLog '"$INSTDIR\VBoxWHQLFake.exe" "warn"'
    355355
     
    376376  AccessControl::GrantOnFile "$g_strSystemDir\VBoxHook.dll" "(BU)" "GenericRead"
    377377
    378   DetailPrint "Installing drivers ..."
     378  ${LogVerbose} "Installing drivers ..."
    379379
    380380  Push $0 ; For fetching results
     
    383383
    384384  ${If} $g_bNoGuestDrv == "false"
    385     DetailPrint "Installing guest driver ..."
     385    ${LogVerbose} "Installing guest driver ..."
    386386    nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver install "$INSTDIR\VBoxGuest.inf" "$INSTDIR\install_drivers.log"'
    387387    Pop $0 ; Ret value
     
    396396  !if $%VBOX_WITH_WDDM_W8% == "1"
    397397      ${If} $g_strWinVersion == "8"
    398         DetailPrint "Installing WDDM video driver for Windows 8..."
     398        ${LogVerbose} "Installing WDDM video driver for Windows 8..."
    399399        nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver install "$INSTDIR\VBoxVideoW8.inf" "$INSTDIR\install_drivers.log"'
    400400      ${Else}
    401401  !endif
    402         DetailPrint "Installing WDDM video driver for Windows Vista and 7..."
     402        ${LogVerbose} "Installing WDDM video driver for Windows Vista and 7..."
    403403        nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver install "$INSTDIR\VBoxVideoWddm.inf" "$INSTDIR\install_drivers.log"'
    404404  !if $%VBOX_WITH_WDDM_W8% == "1"
     
    406406  !endif
    407407    ${Else}
    408       DetailPrint "Installing video driver ..."
     408      ${LogVerbose} "Installing video driver ..."
    409409      nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver install "$INSTDIR\VBoxVideo.inf" "$INSTDIR\install_drivers.log"'
    410410    ${EndIf}
     
    417417
    418418  ${If} $g_bNoMouseDrv == "false"
    419     DetailPrint "Installing mouse driver ..."
     419    ${LogVerbose} "Installing mouse driver ..."
    420420    ; The mouse filter does not contain any device IDs but a "DefaultInstall" section;
    421421    ; so this .INF file needs to be installed using "InstallHinfSection" which is implemented
     
    431431  ; Create the VBoxService service
    432432  ; No need to stop/remove the service here! Do this only on uninstallation!
    433   DetailPrint "Installing VirtualBox service ..."
     433  ${LogVerbose} "Installing VirtualBox service ..."
    434434  nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" service create "VBoxService" "VirtualBox Guest Additions Service" 16 2 "system32\VBoxService.exe" "Base"'
    435435  Pop $0 ; Ret value
     
    441441sf:
    442442
    443   DetailPrint "Installing Shared Folders service ..."
     443  ${LogVerbose} "Installing Shared Folders service ..."
    444444
    445445  ; Create the Shared Folders service ...
     
    458458
    459459  ; Add the shared folders network provider
    460   DetailPrint "Adding network provider (Order = $g_iSfOrder) ..."
     460  ${LogVerbose} "Adding network provider (Order = $g_iSfOrder) ..."
    461461  nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" netprovider add VBoxSF $g_iSfOrder'
    462462  Pop $0 ; Ret value
     
    468468    ; Nothing to do here
    469469  ${Else}
    470     DetailPrint "Installing 3D OpenGL support ..."
     470    ${LogVerbose} "Installing 3D OpenGL support ..."
    471471    WriteRegDWORD HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\VBoxOGL" "Version" 2
    472472    WriteRegDWORD HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\VBoxOGL" "DriverVersion" 1
     
    606606
    607607  ; Remove VirtualBox video driver
    608   DetailPrint "Uninstalling video driver ..."
     608  ${LogVerbose} "Uninstalling video driver ..."
    609609  nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver uninstall "$INSTDIR\VBoxVideo.inf'
    610610  Pop $0 ; Ret value
     
    618618
    619619  !if $%VBOX_WITH_WDDM_W8% == "1"
    620   DetailPrint "Uninstalling WDDM video driver for Windows 8..."
     620  ${LogVerbose} "Uninstalling WDDM video driver for Windows 8..."
    621621  nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver uninstall "$INSTDIR\VBoxVideoW8.inf"'
    622622  Pop $0 ; Ret value
     
    629629  !endif ; $%VBOX_WITH_WDDM_W8% == "1"
    630630
    631   DetailPrint "Uninstalling WDDM video driver for Windows Vista and 7..."
     631  ${LogVerbose} "Uninstalling WDDM video driver for Windows Vista and 7..."
    632632  nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver uninstall "$INSTDIR\VBoxVideoWddm.inf"'
    633633  Pop $0 ; Ret value
     
    643643!if $%VBOX_WITH_CROGL% == "1"
    644644
    645   DetailPrint "Removing Direct3D support ..."
     645  ${LogVerbose} "Removing Direct3D support ..."
    646646
    647647  ; Do file validation before we uninstall
     
    649649  Pop $0
    650650  ${If} $0 == "1" ; D3D files are invalid
    651     DetailPrint $(VBOX_UNINST_INVALID_D3D)
     651    ${LogVerbose} $(VBOX_UNINST_INVALID_D3D)
    652652    MessageBox MB_ICONSTOP|MB_OK $(VBOX_UNINST_INVALID_D3D) /SD IDOK
    653653    Goto d3d_uninstall_end
     
    731731
    732732  ; Remove mouse driver
    733   DetailPrint "Removing mouse driver ..."
     733  ${LogVerbose} "Removing mouse driver ..."
    734734  nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" service delete VBoxMouse'
    735735  Pop $0 ; Ret value
     
    750750  ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" "GinaDLL"
    751751  ${If} $0 == "VBoxGINA.dll"
    752     DetailPrint "Removing auto-logon support ..."
     752    ${LogVerbose} "Removing auto-logon support ..."
    753753    DeleteRegValue HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" "GinaDLL"
    754754  ${EndIf}
     
    760760
    761761  ; Remove guest driver
    762   DetailPrint "Removing guest driver ..."
     762  ${LogVerbose} "Removing guest driver ..."
    763763  nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver uninstall "$INSTDIR\VBoxGuest.inf"'
    764764  Pop $0 ; Ret value
     
    775775
    776776  ; Remove shared folders driver
    777   DetailPrint "Removing shared folders driver ..."
     777  ${LogVerbose} "Removing shared folders driver ..."
    778778  nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" netprovider remove VBoxSF'
    779779  Pop $0 ; Ret value
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