[vlc-commits] Fix #6449

Rafaël Carré git at videolan.org
Sat Jan 26 16:27:07 CET 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Jan 26 16:25:49 2013 +0100| [b0c000c5883225d0edb4f268d967c77d07254dce] | committer: Rafaël Carré

Fix #6449

A relative jump of +1 is the same than 0, we need +2 to skip the next
instruction.
Use named label so it is more clear than +2.

Read the InstallDir regkey, "" points to vlc.exe

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

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

diff --git a/extras/package/win32/NSIS/vlc.win32.nsi.in b/extras/package/win32/NSIS/vlc.win32.nsi.in
index 07425b3..d63c8a5 100644
--- a/extras/package/win32/NSIS/vlc.win32.nsi.in
+++ b/extras/package/win32/NSIS/vlc.win32.nsi.in
@@ -433,8 +433,8 @@ Function .onInit
 @HAVE_WIN64_TRUE@ ${Endif}
 
 @HAVE_WIN64_TRUE@ SetRegView 64
-ReadRegStr $INSTDIR HKLM "${PRODUCT_DIR_REGKEY}" ""
-StrCmp $INSTDIR "" 0 +1
+ReadRegStr $INSTDIR HKLM "${PRODUCT_DIR_REGKEY}" "InstallDir"
+StrCmp $INSTDIR "" 0 UAC_Elevate
 StrCpy $INSTDIR "$@PROGRAMFILES@\VideoLAN\VLC"
 
 UAC_Elevate:



More information about the vlc-commits mailing list