VirtualBox

Changeset 98626 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Feb 18, 2023 2:13:49 AM (2 years ago)
Author:
vboxsync
Message:

Add/VBoxGuest.inf,VBoxVideo.inf,Installer: Seems we need special versions of the .INF-files for windows 2000 and NT4, as these doesn't grok the comma stuff in the [Manufacturer] section. VBoxGuest works, VBoxVideo not so much on W2K.

Location:
trunk/src/VBox/Additions
Files:
8 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/Makefile.kmk

    r98416 r98626  
    109109 VBoxGuest-inf_SOURCES = \
    110110        $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf
     111 VBoxGuest-inf_SOURCES.x86 = \
     112        $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxGuestEarlyNT.inf
    111113 VBoxGuest-inf_CLEAN = $(VBoxGuest-inf_SOURCES)
     114 VBoxGuest-inf_CLEAN.x86 = $(VBoxGuest-inf_SOURCES.x86)
    112115 VBoxGuest-inf_BLDDIRS = $(PATH_TARGET)/VBoxGuestCat.dir
     116 VBoxGuest-inf_BLDDIRS.x86 = $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir
    113117
    114118 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf: $(PATH_SUB_CURRENT)/common/VBoxGuest/win/VBoxGuest.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
    115119        $(call MSG_GENERATE,VBoxGuest-inf,$@,$<)
     120        $(call VBOX_EDIT_INF_FN,$<,$@)
     121
     122 $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxGuestEarlyNT.inf: $(PATH_SUB_CURRENT)/common/VBoxGuest/win/VBoxGuestEarlyNT.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
     123        $(call MSG_GENERATE,VBoxGuestEarlyNT-inf,$@,$<)
    116124        $(call VBOX_EDIT_INF_FN,$<,$@)
    117125
     
    123131        $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
    124132        $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe
    125 
    126   $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys: $$(VBoxGuest_1_TARGET) | $$(dir $$@)
     133  VBoxGuest-inf_SOURCES.x86 += \
     134        $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxGuestEarlyNT.cat
     135
     136  $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
     137  $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxGuest.sys: $$(VBoxGuest_1_TARGET) | $$(dir $$@)
    127138        $(INSTALL) -m 644 $< $(@D)
    128139
    129   $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe: $$(VBoxControl_1_TARGET) | $$(dir $$@)
     140  $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
     141  $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxControl.exe: $$(VBoxControl_1_TARGET) | $$(dir $$@)
    130142        $(INSTALL) -m 755 $< $(@D)
    131143
    132   $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe: $$(VBoxTray_1_TARGET) | $$(dir $$@)
     144  $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe \
     145  $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxTray.exe: $$(VBoxTray_1_TARGET) | $$(dir $$@)
    133146        $(INSTALL) -m 755 $< $(@D)
    134147
     
    139152                $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe
    140153        $(call MSG_TOOL,Inf2Cat,VBoxGuest-inf,$@,$<)
     154        $(call VBOX_MAKE_CAT_FN, $(@D),$@)
     155
     156  $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxGuestEarlyNT.cat: \
     157                $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxGuestEarlyNT.inf \
     158                $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxGuest.sys \
     159                $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxControl.exe \
     160                $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxTray.exe
     161        $(call MSG_TOOL,Inf2Cat,VBoxGuestEarlyNT-inf,$@,$<)
    141162        $(call VBOX_MAKE_CAT_FN, $(@D),$@)
    142163 endif # signing
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/Makefile.kmk

    r98438 r98626  
    4343VBoxVideo-inf_SOURCES = \
    4444        $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf
     45VBoxVideo-inf_SOURCES.x86 = \
     46        $(PATH_TARGET)/VBoxVideoEarlyNTCat.dir/VBoxVideoEarlyNT.inf
    4547VBoxVideo-inf_CLEAN = $(VBoxVideo-inf_SOURCES)
    4648VBoxVideo-inf_BLDDIRS = $(PATH_TARGET)/VBoxVideoCat.dir
     49VBoxVideo-inf_BLDDIRS.x86 = $(PATH_TARGET)/VBoxVideoEarlyNTCat.dir
    4750
    4851$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf: $(PATH_SUB_CURRENT)/mp/xpdm/VBoxVideo.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
    4952        $(call MSG_GENERATE,VBoxVideo-inf,$@,$<)
     53        $(call VBOX_EDIT_INF_FN,$<,$@)
     54
     55$(PATH_TARGET)/VBoxVideoEarlyNTCat.dir/VBoxVideoEarlyNT.inf: $(PATH_SUB_CURRENT)/mp/xpdm/VBoxVideoEarlyNT.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
     56        $(call MSG_GENERATE,VBoxVideoEarlyNT-inf,$@,$<)
    5057        $(call VBOX_EDIT_INF_FN,$<,$@)
    5158
     
    5663        $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys \
    5764        $(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll
    58 
    59  $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys: $$(VBoxVideo_1_TARGET) | $$(dir $$@)
    60         $(INSTALL) -m 644 $< $(@D)
    61 
    62  $(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll: $$(VBoxDisp_1_TARGET) | $$(dir $$@)
     65 VBoxVideo-inf_SOURCES.x86 += \
     66        $(PATH_TARGET)/VBoxVideoEarlyNTCat.dir/VBoxVideoEarlyNT.cat
     67
     68 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys \
     69 $(PATH_TARGET)/VBoxVideoEarlyNTCat.dir/VBoxVideo.sys: $$(VBoxVideo_1_TARGET) | $$(dir $$@)
     70        $(INSTALL) -m 644 $< $(@D)
     71
     72 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll \
     73 $(PATH_TARGET)/VBoxVideoEarlyNTCat.dir/VBoxDisp.dll: $$(VBoxDisp_1_TARGET) | $$(dir $$@)
    6374        $(INSTALL) -m 644 $< $(@D)
    6475
     
    6980        $(call MSG_TOOL,Inf2Cat,VBoxVideo-inf,$@,$<)
    7081        $(call VBOX_MAKE_CAT_FN, $(@D),$@)
     82
     83 $(PATH_TARGET)/VBoxVideoEarlyNTCat.dir/VBoxVideoEarlyNT.cat: \
     84                $(PATH_TARGET)/VBoxVideoEarlyNTCat.dir/VBoxVideoEarlyNT.inf \
     85                $(PATH_TARGET)/VBoxVideoEarlyNTCat.dir/VBoxVideo.sys \
     86                $(PATH_TARGET)/VBoxVideoEarlyNTCat.dir/VBoxDisp.dll
     87        $(call MSG_TOOL,Inf2Cat,VBoxVideoEarlyNT-inf,$@,$<)
     88        $(call VBOX_MAKE_CAT_FN, $(@D),$@)
     89
    7190endif # signing
    7291
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxVideo.inf

    r98328 r98626  
    11; $Id$
    22;; @file
    3 ; VirtualBox Video miniport driver
     3; VirtualBox Video miniport driver, XP+ edition.
    44;
    55
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxVideoEarlyNT.inf

    r98599 r98626  
    11; $Id$
    22;; @file
    3 ; VirtualBox Video miniport driver
     3; VirtualBox Video miniport driver, Windows 2000 and NT4 edition.
    44;
    55
     
    3333DriverPackageType=PlugAndPlay
    3434;edit-DriverVer=08/26/2008,2.00.0000
    35 ;cat CatalogFile = VBoxVideo.cat
     35;cat CatalogFile = VBoxVideoEarlyNT.cat
    3636
    3737[DestinationDirs]
     
    4040VBoxVideo.Display  = 11 ; system32
    4141
     42; Windows 2000 and NT4 treats entries here as pure 'name=section' and will not
     43; split the value on commas. Newer InfVerif.exe requires the comma stuff here.
    4244[Manufacturer]
    43 ;x86   %ORACLE%=VBoxVideo@COMMA-NT-ARCH@
    44 ;amd64 %ORACLE%=VBoxVideo@COMMA-NT-ARCH@@[email protected]
     45%ORACLE%=VBoxVideo
    4546
    46 [VBoxVideo@DOT-NT-ARCH@]
     47[VBoxVideo]
    4748%VBoxVideo.SvcDesc% = VBoxVideo_Install, PCI\VEN_80EE&DEV_BEEF
    48 
    49 ;amd64 [VBoxVideo@[email protected]]
    50 ;amd64 %VBoxVideo.SvcDesc% = VBoxVideo_Install, PCI\VEN_80EE&DEV_BEEF
    5149
    5250[VBoxVideo_Install]
     
    6058VBoxDisp.dll,,,0x00004000  ; COPYFLG_IN_USE_TRY_RENAME
    6159
    62 [VBoxVideo_Install.Services]
     60[VBoxVideo.Services]
    6361AddService=VBoxVideo, 0x00000002, vboxvideo_Service_Inst, vboxvideo_EventLog_Inst
    6462
  • trunk/src/VBox/Additions/WINNT/Installer/Makefile.kmk

    r98416 r98626  
    177177endif
    178178
     179ifeq ($(KBUILD_TARGET_ARCH),x86)
     180 VBOX_WINDOWS_ADDITIONS_OTHER_FILES += \
     181        $(PATH_STAGE_BIN)/additions/VBoxGuestEarlyNT.inf \
     182        $(PATH_STAGE_BIN)/additions/VBoxVideoEarlyNT.inf
     183endif
     184
    179185if defined(VBOX_SIGNING_MODE) && defined(VBOX_SIGN_ADDITIONS)
    180186 VBOX_WINDOWS_ADDITIONS_OTHER_FILES += \
     
    185191        $(PATH_STAGE_BIN)/additions/VBoxMouse.cat \
    186192        $(PATH_STAGE_BIN)/additions/VBoxMouse-PreW10.cat
     193 ifeq ($(KBUILD_TARGET_ARCH),x86)
     194  VBOX_WINDOWS_ADDITIONS_OTHER_FILES += \
     195        $(PATH_STAGE_BIN)/additions/VBoxGuestEarlyNT.cat \
     196        $(PATH_STAGE_BIN)/additions/VBoxVideoEarlyNT.cat
     197 endif
    187198endif
    188199
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi

    r98103 r98626  
    237237Var g_bCapXPDM                          ; Capability: Is the guest able to handle/use our XPDM driver?
    238238Var g_bCapWDDM                          ; Capability: Is the guest able to handle/use our WDDM driver?
     239Var g_strEarlyNTDrvInfix                ; Empty or 'EarlyNT'.  For Picking VBoxGuestEarlyNT.inf and VBoxVideoEarlyNT.inf on w2k & nt4.
     240
    239241
    240242; Command line parameters - these can be set/modified
     
    10391041  Pop $g_strWinVersion
    10401042
     1043  ; Init global variables that depends on the windows version.
     1044  ${If} $g_strWinVersion == "2000"
     1045    StrCpy $g_strEarlyNTDrvInfix "EarlyNT"
     1046  ${ElseIf} $g_strWinVersion == "NT4"
     1047    StrCpy $g_strEarlyNTDrvInfix "EarlyNT"
     1048  ${Else}
     1049    StrCpy $g_strEarlyNTDrvInfix ""
     1050  ${EndIf}
     1051
    10411052  ; Retrieve capabilities
    10421053  Call CheckForCapabilities
     
    11861197  Pop $g_strWinVersion
    11871198
     1199  ; Init global variables that depends on the windows version.
     1200  ${If} $g_strWinVersion == "2000"
     1201    StrCpy $g_strEarlyNTDrvInfix "EarlyNT"
     1202  ${ElseIf} $g_strWinVersion == "NT4"
     1203    StrCpy $g_strEarlyNTDrvInfix "EarlyNT"
     1204  ${Else}
     1205    StrCpy $g_strEarlyNTDrvInfix ""
     1206  ${EndIf}
     1207
    11881208  ; Retrieve capabilities
    11891209  Call un.CheckForCapabilities
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsCommon.nsh

    r98103 r98626  
    6060
    6161  FILE "$%PATH_OUT%\bin\additions\VBoxVideo.inf"
     62!if $%KBUILD_TARGET_ARCH% == "x86"
     63  ${If} $g_strEarlyNTDrvInfix != ""
     64    FILE "$%PATH_OUT%\bin\additions\VBoxVideoEarlyNT.inf"
     65  !ifdef VBOX_SIGN_ADDITIONS
     66    FILE "$%PATH_OUT%\bin\additions\VBoxVideoEarlyNT.cat"
     67  !endif
     68  ${EndIf}
     69!endif
    6270!ifdef VBOX_SIGN_ADDITIONS
    6371  ${If} $g_strWinVersion == "10"
     
    92100  FILE "$%PATH_OUT%\bin\additions\VBoxVideo.sys"
    93101  FILE "$%PATH_OUT%\bin\additions\VBoxVideo.inf"
     102!if $%KBUILD_TARGET_ARCH% == "x86"
     103  ${If} $g_strEarlyNTDrvInfix != ""
     104    FILE "$%PATH_OUT%\bin\additions\VBoxVideoEarlyNT.inf"
     105  !ifdef VBOX_SIGN_ADDITIONS
     106    FILE "$%PATH_OUT%\bin\additions\VBoxVideoEarlyNT.cat"
     107  !endif
     108  ${EndIf}
     109!endif
    94110!ifdef VBOX_SIGN_ADDITIONS
    95111  ${If} $g_strWinVersion == "10"
     
    159175  FILE "$%PATH_OUT%\bin\additions\VBoxGuest.sys"
    160176  FILE "$%PATH_OUT%\bin\additions\VBoxGuest.inf"
     177!if $%KBUILD_TARGET_ARCH% == "x86"
     178  ${If} $g_strEarlyNTDrvInfix != ""
     179    FILE "$%PATH_OUT%\bin\additions\VBoxGuestEarlyNT.inf"
     180  !ifdef VBOX_SIGN_ADDITIONS
     181    FILE "$%PATH_OUT%\bin\additions\VBoxGuestEarlyNT.cat"
     182  !endif
     183  ${EndIf}
     184!endif
    161185!ifdef VBOX_SIGN_ADDITIONS
    162186  ${If} $g_strWinVersion == "10"
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh

    r98103 r98626  
    380380  FILE "$%PATH_OUT%\bin\additions\VBoxGuest.sys"
    381381  FILE "$%PATH_OUT%\bin\additions\VBoxGuest.inf"
     382!if $%KBUILD_TARGET_ARCH% == "x86"
     383  ${If} $g_strEarlyNTDrvInfix != ""
     384    FILE "$%PATH_OUT%\bin\additions\VBoxGuestEarlyNT.inf"
     385  !ifdef VBOX_SIGN_ADDITIONS
     386    FILE "$%PATH_OUT%\bin\additions\VBoxGuestEarlyNT.cat"
     387  !endif
     388  ${EndIf}
     389!endif
    382390!ifdef VBOX_SIGN_ADDITIONS
    383391  ${If} $g_strWinVersion == "10"
     
    506514  ${If} $g_bNoGuestDrv == "false"
    507515    ${LogVerbose} "Installing guest driver ..."
    508     ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" driver install $\"$INSTDIR\VBoxGuest.inf$\" $\"$INSTDIR\install_drivers.log$\"" 'non-zero-exitcode=abort'
     516    ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" driver install $\"$INSTDIR\VBoxGuest$g_strEarlyNTDrvInfix.inf$\" $\"$INSTDIR\install_drivers.log$\"" 'non-zero-exitcode=abort'
    509517  ${Else}
    510518    ${LogVerbose} "Guest driver installation skipped!"
     
    517525    ${Else}
    518526      ${LogVerbose} "Installing video driver ..."
    519       ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" driver install $\"$INSTDIR\VBoxVideo.inf$\" $\"$INSTDIR\install_drivers.log$\"" 'non-zero-exitcode=abort'
     527      ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" driver install $\"$INSTDIR\VBoxVideo$g_strEarlyNTDrvInfix.inf$\" $\"$INSTDIR\install_drivers.log$\"" 'non-zero-exitcode=abort'
    520528    ${EndIf}
    521529  ${Else}
     
    594602  Delete /REBOOTOK "$INSTDIR\VBoxVideo.inf"
    595603  Delete /REBOOTOK "$INSTDIR\VBoxVideo.cat"
     604  Delete /REBOOTOK "$INSTDIR\VBoxVideoEarlyNT.inf"
     605  Delete /REBOOTOK "$INSTDIR\VBoxVideoEarlyNT.cat"
    596606  Delete /REBOOTOK "$INSTDIR\VBoxDisp.dll"
    597607
     
    605615  Delete /REBOOTOK "$INSTDIR\VBoxGuest.inf"
    606616  Delete /REBOOTOK "$INSTDIR\VBoxGuest.cat"
     617  Delete /REBOOTOK "$INSTDIR\VBoxGuestEarlyNT.inf"
     618  Delete /REBOOTOK "$INSTDIR\VBoxGuestEarlyNT.cat"
    607619
    608620  Delete /REBOOTOK "$INSTDIR\VBCoInst.dll" ; Deprecated, does not get installed anymore
     
    678690  ; Remove VirtualBox video driver
    679691  ${LogVerbose} "Uninstalling video driver ..."
    680   ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" driver uninstall $\"$INSTDIR\VBoxVideo.inf$\"" 'non-zero-exitcode=log'
     692  ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" driver uninstall $\"$INSTDIR\VBoxVideo$g_strEarlyNTDrvInfix.inf$\"" 'non-zero-exitcode=log'
    681693  ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" service delete VBoxVideo" 'non-zero-exitcode=log'
    682694  Delete /REBOOTOK "$g_strSystemDir\drivers\VBoxVideo.sys"
     
    764776  ; Remove guest driver
    765777  ${LogVerbose} "Removing guest driver ..."
    766   ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" driver uninstall $\"$INSTDIR\VBoxGuest.inf$\"" 'non-zero-exitcode=log'
     778  ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" driver uninstall $\"$INSTDIR\VBoxGuest$g_strEarlyNTDrvInfix.inf$\"" 'non-zero-exitcode=log'
    767779
    768780  ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" service delete VBoxGuest" 'non-zero-exitcode=log'
  • trunk/src/VBox/Additions/common/VBoxGuest/win/VBoxGuest.inf

    r98308 r98626  
    11; $Id$
    22;; @file
    3 ; INF file for installing the VirtualBox Windows guest driver.
     3; INF file for installing the VirtualBox Windows guest driver, XP and later.
    44;
    55
  • trunk/src/VBox/Additions/common/VBoxGuest/win/VBoxGuestEarlyNT.inf

    r98599 r98626  
    11; $Id$
    22;; @file
    3 ; INF file for installing the VirtualBox Windows guest driver.
     3; INF file for installing the VirtualBox Windows guest driver, pre-XP variant.
    44;
    55
     
    4242DriverPackageType=PlugAndPlay
    4343;edit-DriverVer=08/26/2008,2.00.0000
    44 ;cat CatalogFile=VBoxGuest.cat
     44;cat CatalogFile=VBoxGuestEarlyNT.cat
    4545
    4646[SourceDisksNames]
     
    5656VBoxTray_CopyFiles = 11 ; system32
    5757
     58; Windows 2000 and NT4 treats entries here as pure 'name=section' and will not
     59; split the value on commas. Newer InfVerif.exe requires the comma stuff here.
    5860[Manufacturer]
    59 %ORACLE%=VBoxGuest@COMMA-NT-ARCH@
     61%ORACLE%=VBoxGuest
    6062
    61 [VBoxGuest@DOT-NT-ARCH@]
     63[VBoxGuest]
    6264%VBoxGuest.DeviceDesc%=VBoxGuest_Install,PCI\VEN_80ee&DEV_cafe
    6365
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