Commit d2bd8e96 authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Baptiste Kempf

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
(cherry picked from commit b0c000c5883225d0edb4f268d967c77d07254dce)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1091da8e
...@@ -785,8 +785,8 @@ Function .onInit ...@@ -785,8 +785,8 @@ Function .onInit
@HAVE_WIN64_TRUE@ ${Endif} @HAVE_WIN64_TRUE@ ${Endif}
@HAVE_WIN64_TRUE@ SetRegView 64 @HAVE_WIN64_TRUE@ SetRegView 64
ReadRegStr $INSTDIR HKLM "${PRODUCT_DIR_REGKEY}" "" ReadRegStr $INSTDIR HKLM "${PRODUCT_DIR_REGKEY}" "InstallDir"
StrCmp $INSTDIR "" 0 +1 StrCmp $INSTDIR "" 0 UAC_Elevate
StrCpy $INSTDIR "$@PROGRAMFILES@\VideoLAN\VLC" StrCpy $INSTDIR "$@PROGRAMFILES@\VideoLAN\VLC"
UAC_Elevate: UAC_Elevate:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment