Commit f2f9617e authored by Geoffroy Couprie's avatar Geoffroy Couprie

Win32: fix version check at install time

parent 71ad7338
...@@ -147,10 +147,10 @@ NoBackup: ...@@ -147,10 +147,10 @@ NoBackup:
WriteRegStr HKCR "VLC$R0\DefaultIcon" "" '"$INSTDIR\vlc.exe",0' WriteRegStr HKCR "VLC$R0\DefaultIcon" "" '"$INSTDIR\vlc.exe",0'
;;; Vista Only part ;;; Vista Only part
; Vista detection ; Vista and above detection
ReadRegStr $R1 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion ReadRegStr $R1 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
StrCpy $R2 $R1 3 StrCpy $R2 $R1 1
StrCmp $R2 '6.0' ForVista ToEnd StrCmp $R2 '6' ForVista ToEnd
ForVista: ForVista:
WriteRegStr HKLM "Software\Clients\Media\VLC\Capabilities\FileAssociations" "$R0" "VLC$R0" WriteRegStr HKLM "Software\Clients\Media\VLC\Capabilities\FileAssociations" "$R0" "VLC$R0"
...@@ -446,11 +446,11 @@ Section $Name_Section01 SEC01 ...@@ -446,11 +446,11 @@ Section $Name_Section01 SEC01
'"$INSTDIR\vlc.exe" --started-from-file "%1"' '"$INSTDIR\vlc.exe" --started-from-file "%1"'
!insertmacro MacroAllExtensions WriteRegStrSupportedTypes !insertmacro MacroAllExtensions WriteRegStrSupportedTypes
; Vista Registration ; Windows default programs Registration
; Vista detection ; Vista and above detection
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
StrCpy $R1 $R0 3 StrCpy $R1 $R0 1
StrCmp $R1 '6.0' lbl_vista lbl_done StrCmp $R1 '6' lbl_vista lbl_done
lbl_vista: lbl_vista:
WriteRegStr HKLM "Software\RegisteredApplications" "VLC" "Software\Clients\Media\VLC\Capabilities" WriteRegStr HKLM "Software\RegisteredApplications" "VLC" "Software\Clients\Media\VLC\Capabilities"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment