VirtualBox

Changeset 33087 in vbox for trunk/src


Ignore:
Timestamp:
Oct 13, 2010 7:29:41 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66616
Message:

Windows Guest Additions installer: Added switch for not shutting down VBoxService when installing, ignore unknown command line parameters in silent mode.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi

    r32683 r33087  
    159159RequestExecutionLevel highest
    160160
    161 Var g_iSystemMode       ; Current system mode (0 = Normal boot, 1 = Fail-safe boot, 2 = Fail-safe with network boot)
    162 Var g_strSystemDir      ; Windows system directory
    163 Var g_strCurUser        ; Current user using the system
    164 Var g_strAddVerMaj      ; Installed Guest Additions: Major version
    165 Var g_strAddVerMin      ; Installed Guest Additions: Minor version
    166 Var g_strAddVerBuild    ; Installed Guest Additions: Build number
    167 Var g_strAddVerRev      ; Installed Guest Additions: SVN revision
    168 Var g_strWinVersion     ; Current Windows version we're running on
    169 Var g_bLogEnable        ; Do logging when installing? "true" or "false"
    170 Var g_bFakeWHQL         ; Cmd line: Fake Windows to install non WHQL certificated drivers (only for W2K and XP currently!!) ("/unsig_drv")
    171 Var g_bForceInstall     ; Cmd line: Force installation on unknown Windows OS version.
    172 Var g_bUninstall        ; Cmd line: Just uninstall any previous Guest Additions and exit
    173 Var g_bRebootOnExit     ; Cmd line: Auto-Reboot on successful installation. Good for unattended installations ("/reboot")
    174 Var g_iScreenBpp        ; Cmd line: Screen depth ("/depth=X")
    175 Var g_iScreenX          ; Cmd line: Screen resolution X ("/resx=X")
    176 Var g_iScreenY          ; Cmd line: Screen resolution Y ("/resy=Y")
    177 Var g_iSfOrder          ; Cmd line: Order of Shared Folders network provider (0=first, 1=second, ...)
    178 Var g_bNoVideoDrv       ; Cmd line: Do not install the VBoxVideo driver
    179 Var g_bNoGuestDrv       ; Cmd line: Do not install the VBoxGuest driver
    180 Var g_bNoMouseDrv       ; Cmd line: Do not install the VBoxMouse driver
    181 Var g_bWithAutoLogon    ; Cmd line: Install VBoxGINA / VBoxCredProv for auto logon support
    182 Var g_bWithD3D          ; Cmd line: Install Direct3D support
    183 Var g_bWithWDDM         ; Install the WDDM driver instead of the normal one
    184 Var g_bOnlyExtract      ; Cmd line: Only extract all files, do *not* install them. Only valid with param "/D" (target directory)
    185 Var g_bCapWDDM          ; Capability: Is the guest able to handle/use our WDDM driver?
     161Var g_iSystemMode           ; Current system mode (0 = Normal boot, 1 = Fail-safe boot, 2 = Fail-safe with network boot)
     162Var g_strSystemDir          ; Windows system directory
     163Var g_strCurUser            ; Current user using the system
     164Var g_strAddVerMaj          ; Installed Guest Additions: Major version
     165Var g_strAddVerMin          ; Installed Guest Additions: Minor version
     166Var g_strAddVerBuild        ; Installed Guest Additions: Build number
     167Var g_strAddVerRev          ; Installed Guest Additions: SVN revision
     168Var g_strWinVersion         ; Current Windows version we're running on
     169Var g_bLogEnable            ; Do logging when installing? "true" or "false"
     170Var g_bFakeWHQL             ; Cmd line: Fake Windows to install non WHQL certificated drivers (only for W2K and XP currently!!) ("/unsig_drv")
     171Var g_bForceInstall         ; Cmd line: Force installation on unknown Windows OS version.
     172Var g_bUninstall            ; Cmd line: Just uninstall any previous Guest Additions and exit
     173Var g_bRebootOnExit         ; Cmd line: Auto-Reboot on successful installation. Good for unattended installations ("/reboot")
     174Var g_iScreenBpp            ; Cmd line: Screen depth ("/depth=X")
     175Var g_iScreenX              ; Cmd line: Screen resolution X ("/resx=X")
     176Var g_iScreenY              ; Cmd line: Screen resolution Y ("/resy=Y")
     177Var g_iSfOrder              ; Cmd line: Order of Shared Folders network provider (0=first, 1=second, ...)
     178Var g_bNoVBoxServiceExit    ; Cmd line: Do not quit VBoxService before updating - install on next reboot
     179Var g_bNoVideoDrv           ; Cmd line: Do not install the VBoxVideo driver
     180Var g_bNoGuestDrv           ; Cmd line: Do not install the VBoxGuest driver
     181Var g_bNoMouseDrv           ; Cmd line: Do not install the VBoxMouse driver
     182Var g_bWithAutoLogon        ; Cmd line: Install VBoxGINA / VBoxCredProv for auto logon support
     183Var g_bWithD3D              ; Cmd line: Install Direct3D support
     184Var g_bWithWDDM             ; Install the WDDM driver instead of the normal one
     185Var g_bOnlyExtract          ; Cmd line: Only extract all files, do *not* install them. Only valid with param "/D" (target directory)
     186Var g_bCapWDDM              ; Capability: Is the guest able to handle/use our WDDM driver?
    186187
    187188; Platform parts of this installer
     
    260261      ${Case} '/logging'
    261262        StrCpy $g_bLogEnable "true"
    262       ${Break}
     263        ${Break}
    263264
    264265      ${Case} '/ncrc' ; NSIS: /NCRC switch, skip
    265266        ${Break}
    266267
    267       ${Case} '/no_videodrv'
     268      ${Case} '/no_vboxservice_exit' ; Not officially documented
     269        StrCpy $g_bNoVBoxServiceExit "true"
     270        ${Break}
     271
     272      ${Case} '/no_videodrv' ; Not officially documented
    268273        StrCpy $g_bNoVideoDrv "true"
    269       ${Break}
    270 
    271       ${Case} '/no_guestdrv'
     274        ${Break}
     275
     276      ${Case} '/no_guestdrv' ; Not officially documented
    272277        StrCpy $g_bNoGuestDrv "true"
    273       ${Break}
    274 
    275       ${Case} '/no_mousedrv'
     278        ${Break}
     279
     280      ${Case} '/no_mousedrv' ; Not officially documented
    276281        StrCpy $g_bNoMouseDrv "true"
    277       ${Break}
     282        ${Break}
    278283
    279284      ${Case} '/reboot'
     
    321326
    322327      ${Default} ; Unknown parameter, print usage message
     328        ; Prevent popping up usage message on (yet) unknown parameters
     329        ; in silent mode, just skip
     330        IfSilent 0 +2
     331          ${Break}
    323332        goto usage
    324333        ${Break}
     
    970979  StrCpy $g_iScreenBpp "0"
    971980  StrCpy $g_iSfOrder "0"
     981  StrCpy $g_bNoVBoxServiceExit "false"
    972982  StrCpy $g_bNoVideoDrv "false"
    973983  StrCpy $g_bNoGuestDrv "false"
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsNT4.nsh

    r31634 r33087  
    7474Function NT_Prepare
    7575
    76   ; Stop / kill VBoxService
    77   Call StopVBoxService
     76  ${If} $g_bNoVBoxServiceExit == "false"
     77    ; Stop / kill VBoxService
     78    Call StopVBoxService
     79  ${EndIf}
    7880
    7981  ; Stop / kill VBoxTray
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh

    r32684 r33087  
    133133Function W2K_Prepare
    134134
    135   ; Stop / kill VBoxService
    136   Call StopVBoxService
     135  ${If} $g_bNoVBoxServiceExit == "false"
     136    ; Stop / kill VBoxService
     137    Call StopVBoxService
     138  ${EndIf}
    137139
    138140  ; Stop / kill VBoxTray
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