mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
installer: fix a permission right issue
We must prevent that LyX is installed as admin and then afterwards the same LyX version also without admin privileges.
This commit is contained in:
parent
bd0b46872d
commit
40fb3cca64
@ -42,7 +42,16 @@ Function .onInit
|
||||
${endif}
|
||||
|
||||
# check if LyX is already installed
|
||||
ReadRegStr $0 SHCTX "${APP_UNINST_KEY}" "Publisher"
|
||||
${if} $MultiUser.Privileges == "Admin"
|
||||
${orif} $MultiUser.Privileges == "Power"
|
||||
ReadRegStr $0 HKLM "${APP_UNINST_KEY}" "Publisher"
|
||||
${else}
|
||||
ReadRegStr $0 HKCU "${APP_UNINST_KEY}" "Publisher"
|
||||
# handle also the case that LyX is already installed in HKLM
|
||||
${if} $0 == ""
|
||||
ReadRegStr $0 HKLM "${APP_UNINST_KEY}" "Publisher"
|
||||
${endif}
|
||||
${endif}
|
||||
${if} $0 != ""
|
||||
MessageBox MB_OK|MB_ICONSTOP "$(StillInstalled)"
|
||||
Abort
|
||||
|
Loading…
Reference in New Issue
Block a user