Commit b0c000c5 authored by Rafaël Carré's avatar 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
parent 9a0a47a5
...@@ -433,8 +433,8 @@ Function .onInit ...@@ -433,8 +433,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