From add095801992fcbbe1ce282b9e0a7f9fe23d4982 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sat, 9 Nov 2019 01:47:20 +0200 Subject: [PATCH] win: inno: use SuppressibleMsgBox instead of MsgBox --- scripts/innosetup/addsymlink.iss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/innosetup/addsymlink.iss b/scripts/innosetup/addsymlink.iss index 33fa407af..6f0565e37 100644 --- a/scripts/innosetup/addsymlink.iss +++ b/scripts/innosetup/addsymlink.iss @@ -6,9 +6,9 @@ begin SRCdir := ExpandConstant('{app}'); if isUninstaller() = false then begin if not ShellExec('', 'powershell.exe', '-noninteractive -windowstyle hidden -executionpolicy bypass -File "' + SRCdir + '\addSymLinkPermissions.ps1" -mytype ' + SymLinkType, '', SW_HIDE, ewWaitUntilTerminated, ErrorCode) then begin - MsgBox('Failed to automatically grant SeCreateSymbolicLinkPrivilege. Please download Polsedit(www.southsoftware.com/polsedit.zip). Launch polseditx32.exe or polseeditx64.exe (depending on your Windows version), navigate to "Security Settings" -> "User Rights Assignment", add the account(s) to the list named "Create symbolic links", logoff and login back into your account. More info at https://github.com/git-for-windows/git/wiki/Symbolic-Links.', mbInformation, MB_OK); + SuppressibleMsgBox('Failed to automatically grant SeCreateSymbolicLinkPrivilege. Please download Polsedit(www.southsoftware.com/polsedit.zip). Launch polseditx32.exe or polseeditx64.exe (depending on your Windows version), navigate to "Security Settings" -> "User Rights Assignment", add the account(s) to the list named "Create symbolic links", logoff and login back into your account. More info at https://github.com/git-for-windows/git/wiki/Symbolic-Links.', mbInformation, MB_OK, IDOK); end else begin - MsgBox('Automatically added SeCreateSymbolicLinkPrivilege. Please logoff and login back into your account in order for the change to take effect.', mbInformation, MB_OK); + SuppressibleMsgBox('Automatically added SeCreateSymbolicLinkPrivilege. Please logoff and login back into your account in order for the change to take effect.', mbInformation, MB_OK, IDOK); end; end; end;