Changeset 109120 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Apr 30, 2025 3:01:33 PM (9 days ago)
- svn:sync-xref-src-repo-rev:
- 168672
- Location:
- trunk/src/VBox/Additions/WINNT/Installer
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/Makefile.kmk
r108683 r109120 311 311 $(PATH_SUB_CURRENT)/ReplaceDLL.nsh \ 312 312 $(PATH_SUB_CURRENT)/servicepack.nsh \ 313 $(PATH_SUB_CURRENT)/strstr.nsh \314 313 $(PATH_SUB_CURRENT)/winver.nsh \ 315 314 $(PATH_SUB_CURRENT)/Languages/English.nsh \ … … 366 365 $(PATH_SUB_CURRENT)/ReplaceDLL.nsh \ 367 366 $(PATH_SUB_CURRENT)/servicepack.nsh \ 368 $(PATH_SUB_CURRENT)/strstr.nsh \369 367 $(PATH_SUB_CURRENT)/winver.nsh \ 370 368 $(PATH_SUB_CURRENT)/Languages/English.nsh \ … … 491 489 ReplaceDLL.nsh \ 492 490 servicepack.nsh \ 493 strstr.nsh \494 491 VBoxGuestAdditionsCommon.nsh \ 495 492 VBoxGuestAdditionsExternal.nsh \ -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi
r108772 r109120 95 95 !include "Library.nsh" 96 96 !include "Sections.nsh" 97 !include "strstr.nsh" ; Function "strstr". 97 98 ; String functions. 99 !include "StrFunc.nsh" 100 ${Using:StrFunc} StrStr 101 ${Using:StrFunc} UnStrStr 102 ${Using:StrFunc} StrStrAdv 103 ; Provide a custom define for ${UnStrStr} so that we can make use of it in 104 ; macro function which are (also) being used in the uninstaller (functions must begin with ".un"). 105 !define `un.StrStr` `${UnStrStr}` 106 98 107 !if $%KBUILD_TARGET_ARCH% == "x86" ; Only needed for NT4 SP6 recommendation. 99 108 !include "servicepack.nsh" ; Function "GetServicePack". … … 615 624 ${LogVerbose} "Installer runs in debug mode" 616 625 !endif 626 627 Abort 617 628 618 629 ; -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsCommon.nsh
r108936 r109120 288 288 Pop $0 ; Windows Version. 289 289 290 Push $0 ; The windows versionstring.291 Push "NT" ; String to search for. W2K+ returns no string containing "NT".292 Call ${un}StrStr293 Pop $1290 ; Param "$1" ; Result string. 291 ; Param "$0" ; The windows version string. 292 ; Param "NT" ; String to search for. W2K+ returns no string containing "NT". 293 ${${un}StrStr} "$1" "$0" "NT" 294 294 295 295 ${If} $1 == "" ; If empty -> not NT 3.XX or 4.XX. … … 297 297 ${Else} 298 298 ; Ok we know it is NT. Must be a string like NT X.XX. 299 Push $0 ; The windows versionstring.300 Push "4." ; String to search for.301 Call ${un}StrStr302 Pop $1299 ; Param "$1" ; Result string. 300 ; Param "$0" ; The windows version string. 301 ; Param "4." ; String to search for. 302 ${${un}StrStr} "$1" "$0" "4." 303 303 ${If} $1 == "" ; If empty -> not NT 4. 304 304 ;; @todo NT <= 3.x ? … … 342 342 343 343 ; Extract major version. 344 Push "$0" ; String345 Push "." ; SubString346 Push ">" ; SearchDirection347 Push "<" ; StrInclusionDirection348 Push "0" ; IncludeSubString349 Push "0" ; Loops350 Push "0" ; CaseSensitive351 Call ${un}StrStrAdv352 Pop $g_strAddVerMaj344 ; Param "$g_strAddVerMaj" ; Result string 345 ; Param "$0" ; String to search for 346 ; Param "." ; SubString 347 ; Param ">" ; SearchDirection 348 ; Param "<" ; StrInclusionDirection 349 ; Param "0" ; IncludeSubString 350 ; Param "0" ; Loops 351 ; Param "0" ; CaseSensitive 352 ${${un}StrStrAdv} "$g_strAddVerMaj" "$0" "." ">" "<" "0" "0" "0" 353 353 354 354 ; Extract minor version. 355 Push "$0" ; String356 Push "." ; SubString357 Push ">" ; SearchDirection358 Push ">" ; StrInclusionDirection359 Push "0" ; IncludeSubString360 Push "0" ; Loops361 Push "0" ; CaseSensitive362 Call ${un}StrStrAdv363 Pop $1 ; Got first part (e.g. "1.5")364 365 Push "$1" ; String366 Push "." ; SubString367 Push ">" ; SearchDirection368 Push "<" ; StrInclusionDirection369 Push "0" ; IncludeSubString370 Push "0" ; Loops371 Push "0" ; CaseSensitive372 Call ${un}StrStrAdv373 Pop $g_strAddVerMin ; Extracted second part (e.g. "5" from "1.5")355 ; Param "$1" ; Result string 356 ; Param "$0" ; String 357 ; Param "." ; SubString 358 ; Param ">" ; SearchDirection 359 ; Param ">" ; StrInclusionDirection 360 ; Param "0" ; IncludeSubString 361 ; Param "0" ; Loops 362 ; Param "0" ; CaseSensitive 363 ${${un}StrStrAdv} "$1" "$0" "." ">" ">" "0" "0" "0" 364 365 ; Param "$g_strAddVerMin" ; Result string 366 ; Param "$1" ; String 367 ; Param "." ; SubString 368 ; Param ">" ; SearchDirection 369 ; Param "<" ; StrInclusionDirection 370 ; Param "0" ; IncludeSubString 371 ; Param "0" ; Loops 372 ; Param "0" ; CaseSensitive 373 ${${un}StrStrAdv} "$g_strAddVerMin" "$1" "." ">" "<" "0" "0" "0" 374 374 375 375 ; Extract build number. 376 Push "$0" ; String377 Push "." ; SubString378 Push "<" ; SearchDirection379 Push ">" ; StrInclusionDirection380 Push "0" ; IncludeSubString381 Push "0" ; Loops382 Push "0" ; CaseSensitive383 Call ${un}StrStrAdv384 Pop $g_strAddVerBuild376 ; Param "$g_strAddVerBuild" ; Result string 377 ; Param "$0" ; String 378 ; Param "." ; SubString 379 ; Param "<" ; SearchDirection 380 ; Param ">" ; StrInclusionDirection 381 ; Param "0" ; IncludeSubString 382 ; Param "0" ; Loops 383 ; Param "0" ; CaseSensitive 384 ${${un}StrStrAdv} "$g_strAddVerBuild" "$0" "." "<" ">" "0" "0" "0" 385 385 386 386 Pop $1 -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh
r108948 r109120 61 61 ; Or: \Registry\Machine\System\CurrentControlSet\Control\Video\vboxvideo\Device0 62 62 ; Result: Machine\System\CurrentControlSet\Control\Video\{28B74D2B-F0A9-48E0-8028-D76F6BB1AE65}\0000 63 Push "$tmp" ; String64 Push "\" ; SubString65 Push ">" ; SearchDirection66 Push ">" ; StrInclusionDirection67 Push "0" ; IncludeSubString68 Push "2" ; Loops69 Push "0" ; CaseSensitive70 Call StrStrAdv71 Pop $tmppath ; $1 only contains the full path63 ; Param: "$tmppath" ; Result string 64 ; Param: "$tmp" ; String to be searched 65 ; Param: "\" ; SubString 66 ; Param: ">" ; SearchDirection 67 ; Param: ">" ; StrInclusionDirection 68 ; Param: "0" ; IncludeSubString 69 ; Param: "2" ; Loops 70 ; Param: "0" ; CaseSensitive 71 ${StrStrAdv} "$tmppath" "$tmp" "\" ">" ">" "0" "2" "0" 72 72 StrCmp $tmppath "" dev_not_found 73 73
Note:
See TracChangeset
for help on using the changeset viewer.