Open file from volumes

Hi everyone, I’ve just been here. My program will have to be “portable” installed on a usb.

It will need to be executable on both Mac and Windows.

When the program is opened, only a button will have to appear and as soon as pressed will have to open an executable file present on the USB according to the operating system.

If windows /viewer/viewer.exe

If Mac viewer/

Does anyone know how to help me?

Not possible. You would need two apps.

Since you have two apps, there is no point having another app to launch them.