Changeset 35679 in vbox
- Timestamp:
- Jan 24, 2011 2:50:32 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh
r35678 r35679 325 325 Push $0 ; For fetching results 326 326 327 drv_guest:328 329 StrCmp $g_bNoGuestDrv "true" drv_video330 DetailPrint "Installing guest driver ..."331 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver install "$INSTDIR\VBoxGuest.inf"'332 Pop $0 ; Ret value333 LogText "Guest driver result: $0"334 IntCmp $0 0 +1 error error ; Check ret value (0=OK, 1=Error)335 336 drv_video:337 338 StrCmp $g_bNoVideoDrv "true" drv_mouse339 327 SetOutPath "$INSTDIR" 340 ${If} $g_bWithWDDM == "true" 341 DetailPrint "Installing WDDM video driver ..." 342 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver install "$INSTDIR\VBoxVideoWddm.inf"' 328 329 ${If} $g_bNoGuestDrv <> "true" 330 StrCmp $g_bNoGuestDrv "true" drv_video 331 DetailPrint "Installing guest driver ..." 332 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver install "$INSTDIR\VBoxGuest.inf"' 333 Pop $0 ; Ret value 334 LogText "Guest driver returned: $0" 335 IntCmp $0 0 +1 error error ; Check ret value (0=OK, 1=Error) 343 336 ${Else} 344 DetailPrint "Installing video driver ..." 345 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver install "$INSTDIR\VBoxVideo.inf"' 346 ${EndIf} 347 Pop $0 ; Ret value 348 LogText "Video driver result: $0" 349 IntCmp $0 0 +1 error error ; Check ret value (0=OK, 1=Error) 350 351 drv_mouse: 352 353 StrCmp $g_bNoMouseDrv "true" vbox_service 354 DetailPrint "Installing mouse filter ..." 355 ; The mouse filter does not contain any device IDs but a "DefaultInstall" section; 356 ; so this .INF file needs to be installed using "InstallHinfSection" which is implemented 357 ; with VBoxDrvInst's "driver executeinf" routine 358 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver executeinf "$INSTDIR\VBoxMouse.inf"' 359 Pop $0 ; Ret value 360 LogText "Mouse driver returned: $0" 361 IntCmp $0 0 +1 error error ; Check ret value (0=OK, 1=Error) 362 363 vbox_service: 364 365 DetailPrint "Installing VirtualBox service ..." 337 LogText "Guest driver installation skipped!" 338 ${EndIf} 339 340 ${If} $g_bNoVideoDrv <> "true" 341 ${If} $g_bWithWDDM == "true" 342 DetailPrint "Installing WDDM video driver ..." 343 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver install "$INSTDIR\VBoxVideoWddm.inf"' 344 ${Else} 345 DetailPrint "Installing video driver ..." 346 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver install "$INSTDIR\VBoxVideo.inf"' 347 ${EndIf} 348 Pop $0 ; Ret value 349 LogText "Video driver returned: $0" 350 IntCmp $0 0 +1 error error ; Check ret value (0=OK, 1=Error) 351 ${Else} 352 LogText "Video driver installation skipped!" 353 ${EndIf} 354 355 ${If} $g_bNoMouseDrv <> "true" 356 DetailPrint "Installing mouse driver ..." 357 ; The mouse filter does not contain any device IDs but a "DefaultInstall" section; 358 ; so this .INF file needs to be installed using "InstallHinfSection" which is implemented 359 ; with VBoxDrvInst's "driver executeinf" routine 360 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver executeinf "$INSTDIR\VBoxMouse.inf"' 361 Pop $0 ; Ret value 362 LogText "Mouse driver returned: $0" 363 IntCmp $0 0 +1 error error ; Check ret value (0=OK, 1=Error) 364 ${Else} 365 LogText "Mouse driver installation skipped!" 366 ${EndIf} 366 367 367 368 ; Create the VBoxService service 368 369 ; No need to stop/remove the service here! Do this only on uninstallation! 370 DetailPrint "Installing VirtualBox service ..." 369 371 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" service create "VBoxService" "VirtualBox Guest Additions Service" 16 2 "system32\VBoxService.exe" "Base"' 370 372 Pop $0 ; Ret value
Note:
See TracChangeset
for help on using the changeset viewer.

