[vlc-devel] commit: Win32: fix version check at install time (Geoffroy Couprie )
git version control
git at videolan.org
Tue Sep 8 21:33:55 CEST 2009
vlc | branch: master | Geoffroy Couprie <geal at videolan.org> | Tue Sep 8 19:53:49 2009 +0200| [f2f9617e632fb99b9af21cf61bc8a19d94101b06] | committer: Geoffroy Couprie
Win32: fix version check at install time
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f2f9617e632fb99b9af21cf61bc8a19d94101b06
---
extras/package/win32/vlc.win32.nsi.in | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/extras/package/win32/vlc.win32.nsi.in b/extras/package/win32/vlc.win32.nsi.in
index 6afecd4..b974871 100644
--- a/extras/package/win32/vlc.win32.nsi.in
+++ b/extras/package/win32/vlc.win32.nsi.in
@@ -147,10 +147,10 @@ NoBackup:
WriteRegStr HKCR "VLC$R0\DefaultIcon" "" '"$INSTDIR\vlc.exe",0'
;;; Vista Only part
- ; Vista detection
+ ; Vista and above detection
ReadRegStr $R1 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
- StrCpy $R2 $R1 3
- StrCmp $R2 '6.0' ForVista ToEnd
+ StrCpy $R2 $R1 1
+ StrCmp $R2 '6' ForVista ToEnd
ForVista:
WriteRegStr HKLM "Software\Clients\Media\VLC\Capabilities\FileAssociations" "$R0" "VLC$R0"
@@ -446,11 +446,11 @@ Section $Name_Section01 SEC01
'"$INSTDIR\vlc.exe" --started-from-file "%1"'
!insertmacro MacroAllExtensions WriteRegStrSupportedTypes
-; Vista Registration
- ; Vista detection
+; Windows default programs Registration
+ ; Vista and above detection
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
- StrCpy $R1 $R0 3
- StrCmp $R1 '6.0' lbl_vista lbl_done
+ StrCpy $R1 $R0 1
+ StrCmp $R1 '6' lbl_vista lbl_done
lbl_vista:
WriteRegStr HKLM "Software\RegisteredApplications" "VLC" "Software\Clients\Media\VLC\Capabilities"
More information about the vlc-devel
mailing list