Вроде как-то так для кнопки:
procedure ButtonClicks(hBtn: HWND);
var
ErrorCode: Integer;
begin
if IsWin64 then
ShellExec('open', ExpandConstant ('{src}\EXE_64.exe'), '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
if not IsWin64 then
ShellExec('open', ExpandConstant ('{src}\EXE_32.exe'), '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
end;
var
ErrorCode: Integer;
begin
if IsWin64 then
ShellExec('open', ExpandConstant ('{src}\EXE_64.exe'), '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
if not IsWin64 then
ShellExec('open', ExpandConstant ('{src}\EXE_32.exe'), '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
end;
Последнее редактирование: