NSIS: Try to ignore (invalid) errors from NSIS UAC

This commit is contained in:
Daniel Molkentin 2015-09-17 13:37:48 +02:00
parent 8f8bf98ca6
commit 38eaf241fa

View file

@ -741,6 +741,8 @@ Function .onInit
Quit Quit
${EndSwitch} ${EndSwitch}
ClearError
;Prevent multiple instances. ;Prevent multiple instances.
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${APPLICATION_SHORTNAME}Installer") i .r1 ?e' System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${APPLICATION_SHORTNAME}Installer") i .r1 ?e'
Pop $R0 Pop $R0
@ -806,6 +808,8 @@ Function un.onInit
Quit Quit
${EndSwitch} ${EndSwitch}
ClearError
;Prevent multiple instances. ;Prevent multiple instances.
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${APPLICATION_SHORTNAME}Uninstaller") i .r1 ?e' System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${APPLICATION_SHORTNAME}Uninstaller") i .r1 ?e'
Pop $R0 Pop $R0