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

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


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Sep 16 16:46:22 2013 +0200| [a6a85ef927c02541847538f2ba148fb1c19b0370] | 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>

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

 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