Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
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
Show 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