Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
ef2377a9
Commit
ef2377a9
authored
May 25, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nsis: refuse to run on Windows < XP SP2
parent
9c0864bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
extras/package/win32/NSIS/vlc.win32.nsi.in
extras/package/win32/NSIS/vlc.win32.nsi.in
+13
-0
No files found.
extras/package/win32/NSIS/vlc.win32.nsi.in
View file @
ef2377a9
...
...
@@ -49,6 +49,7 @@ RequestExecutionLevel user
!addincludedir NSIS
!addplugindir NSIS
!include UAC.nsh
!include WinVer.nsh
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; NSIS Modern User Interface configuration ;
...
...
@@ -430,6 +431,14 @@ Function .onInit
@HAVE_WIN64_TRUE@ MessageBox MB_OK|MB_ICONSTOP "This version of VLC only runs on 64bits operating systems.$\nYour operating system is 32bits.$\n$\nPlease get the 32 BITS version."
@HAVE_WIN64_TRUE@ Quit
@HAVE_WIN64_TRUE@ ${Endif}
${If} ${AtLeastWinXP}
${If} ${IsWinXP}
${AndIf} ${AtMostServicePack} 1
Goto WinTooOld
${Endif}
${Else}
Goto WinTooOld
${Endif}
@HAVE_WIN64_TRUE@ SetRegView 64
ReadRegStr $INSTDIR HKLM "${PRODUCT_DIR_REGKEY}" "InstallDir"
...
...
@@ -451,6 +460,10 @@ UAC_ElevationAborted:
MessageBox mb_iconstop "This installer requires admin access, aborting!"
Abort
WinTooOld:
MessageBox MB_OK|MB_ICONSTOP "This version of VLC only runs on Windows XP SP2 and newer."
Quit
UAC_Success:
StrCmp 1 $3 +4
StrCmp 3 $1 0 UAC_ElevationAborted
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment