[vlc-commits] Win32 installer: do not try to elevate on XP

Jean-Baptiste Kempf git at videolan.org
Mon Sep 16 16:47:46 CEST 2013


vlc/vlc-2.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Sep 16 16:46:22 2013 +0200| [c576627b57e555886e714dc573fb7c83c08e2914] | committer: Jean-Baptiste Kempf

Win32 installer: do not try to elevate on XP

Should close #9375

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit a6a85ef927c02541847538f2ba148fb1c19b0370)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=c576627b57e555886e714dc573fb7c83c08e2914
---

 extras/package/win32/NSIS/vlc.win32.nsi.in |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/extras/package/win32/NSIS/vlc.win32.nsi.in b/extras/package/win32/NSIS/vlc.win32.nsi.in
index 8e413c7..dd640e9 100644
--- a/extras/package/win32/NSIS/vlc.win32.nsi.in
+++ b/extras/package/win32/NSIS/vlc.win32.nsi.in
@@ -81,7 +81,11 @@ RequestExecutionLevel user
   ; Finish page
 
     Function AppExecAs
+    ${If} ${AtLeastWinVista}
       Exec '"$WINDIR\explorer.exe" "$INSTDIR\vlc.exe"'
+    ${Else}
+      Exec '$INSTDIR\vlc.exe'
+    ${Endif}
     FunctionEnd
 
     !define MUI_FINISHPAGE_RUN



More information about the vlc-commits mailing list