[vlc-commits] [Git][videolan/vlc][master] 2 commits: package/win32: remove vista check from NSIS installer

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Nov 20 06:08:24 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
4e041ce6 by Steve Lhomme at 2026-11-20T05:24:26+00:00
package/win32: remove vista check from NSIS installer

We check early in the installer that it's running on Win7+ since
cd2c46f81846ed8b172fbde4c629bec194b75143.

- - - - -
956dda12 by Steve Lhomme at 2026-11-20T05:24:26+00:00
glwin32: remove hack to disable the module on Windows XP

VLC 4 requires Windows 7.

- - - - -


4 changed files:

- extras/package/win32/NSIS/helpers/extensions.nsh
- extras/package/win32/NSIS/helpers/utils.nsh
- extras/package/win32/NSIS/vlc.win32.nsi.in
- modules/video_output/win32/glwin32.c


Changes:

=====================================
extras/package/win32/NSIS/helpers/extensions.nsh
=====================================
@@ -35,9 +35,7 @@ Function RegisterExtension
   WriteRegStr HKCR "VLC$R0\DefaultIcon" "" '"$INSTDIR\vlc.exe",0'
   WriteRegStr HKCR "Applications\vlc.exe\SupportedTypes" $0 ""
 
-  ${If} ${AtLeastWinVista}
     WriteRegStr HKLM "Software\Clients\Media\VLC\Capabilities\FileAssociations" "$R0" "VLC$R0"
-  ${EndIf}
 FunctionEnd
 
 ;; Function that registers one skin extension for VLC
@@ -48,9 +46,7 @@ Function RegisterSkinExtension
   WriteRegStr HKCR "VLC$R0\shell\Open\command" "" '"$INSTDIR\vlc.exe" -Iskins --skins2-last "%1"'
   WriteRegStr HKCR "VLC$R0\DefaultIcon" "" '"$INSTDIR\vlc.exe",0'
 
-  ${If} ${AtLeastWinVista}
     WriteRegStr HKLM "Software\Clients\Media\VLC\Capabilities\FileAssociations" "$R0" "VLC$R0"
-  ${EndIf}
 FunctionEnd
 
 ;; Function that removes one extension that VLC owns.


=====================================
extras/package/win32/NSIS/helpers/utils.nsh
=====================================
@@ -30,11 +30,7 @@
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
 Function AppExecAs
-  ${If} ${AtLeastWinVista}
     Exec '"$WINDIR\explorer.exe" "$INSTDIR\vlc.exe"'
-  ${Else}
-    Exec '"$INSTDIR\vlc.exe"'
-  ${Endif}
 FunctionEnd
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


=====================================
extras/package/win32/NSIS/vlc.win32.nsi.in
=====================================
@@ -357,8 +357,6 @@ skip_uninstall32_cleanup:
   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\vlc.exe" "Path" "$INSTDIR"
 
   ; Windows default programs Registration
-  ; Vista and above detection
-  ${If} ${AtLeastWinVista}
     WriteRegStr HKLM "Software\RegisteredApplications" "VLC" "Software\Clients\Media\VLC\Capabilities"
     WriteRegStr HKLM "Software\Clients\Media\VLC\Capabilities" "ApplicationName" "${PRODUCT_NAME}"
     WriteRegStr HKLM "Software\Clients\Media\VLC\Capabilities" "ApplicationDescription" "VLC - The video swiss knife"
@@ -367,7 +365,6 @@ skip_uninstall32_cleanup:
     WriteRegStr HKLM "Software\Clients\Media\VLC\InstallInfo" "ShowIconsCommand" "$\"$INSTDIR\spad-setup.exe$\" /ShowIcons /S"
     WriteRegStr HKLM "Software\Clients\Media\VLC\InstallInfo" "ReinstallCommand" "$\"$INSTDIR\spad-setup.exe$\" /Reinstall /S"
     WriteRegDWORD HKLM "Software\Clients\Media\VLC\InstallInfo" "IconsVisible" 0x001
-  ${EndIf}
 ${MementoSectionEnd}
 
 ${MementoSection} "$(Name_Section02a)" SEC02a


=====================================
modules/video_output/win32/glwin32.c
=====================================
@@ -161,10 +161,6 @@ static int Open(vout_display_t *vd,
 {
     vout_display_sys_t *sys;
 
-    /* do not use OpenGL on XP unless forced */
-    if(!vd->obj.force && !IsWindowsVistaOrGreater())
-        return VLC_EGENERIC;
-
     /* Allocate structure */
     vd->sys = sys = calloc(1, sizeof(*sys));
     if (!sys)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/9c35ded8a18b8b2b1fc7221cc676c9c2e372561d...956dda12b5d8ebe577bf82b3eadf8f88ad4816b3

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/9c35ded8a18b8b2b1fc7221cc676c9c2e372561d...956dda12b5d8ebe577bf82b3eadf8f88ad4816b3
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list