Gcenx / macports-wine

Updated wine Portfiles for macports
88 stars 11 forks source link

Application could not be started, or no application associated with the specified file. #96

Closed DavidPalaxo closed 8 months ago

DavidPalaxo commented 8 months ago

I apologise if I placed the issue on incorrect repo I have not find any working solution anywhere on web as well. Anyway, I have successfully installed game-porting-toolkit, but I am unable to run any executable (*.exe). Still getting following message if I do anything possible:

Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: 0024:err:start:fatal_error FormatMessage failed

I have build all available packages with Quartz support (+quartz), but based on documentation it should be supported. I have also tried to install wine-stable, but still the same problem.

winecfg working perfectly fine, notepad or explorer is working perfectly fine.

Can you please advise or direct me to next steps?

Thank you in advance!

Gcenx commented 8 months ago

Sounds like Terminal lacks permissions to access the location the exe

Screenshot 2023-11-27 at 5 33 48 PM

As you can see in the screenshot I've launched Gw2Setup-64.exe from my ~/Downloads folder but Terminal has permission to access this so it launched. The fact your able to launch wines builtin applications is the reason I believe this to be the case.

DavidPalaxo commented 8 months ago

I already have Privacy & Security > Full disk access enabled for Terminal app. I have tried to add wine64 as well with no success.

DavidPalaxo commented 8 months ago

Maybe output from winecfg can be useful...Not sure if relevant :/

wine: created the configuration directory '/Users/user/wine'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
002c:fixme:shell:create_link failed to connect to mount manager
002c:fixme:shell:create_link failed to connect to mount manager
00dc:err:setupapi:SetupDefaultQueueCallbackW copy error 1812 L"@C:\\windows\\system32\\drivers\\wineusb.sys,-1" -> L"C:\\windows\\inf\\wineusb.inf"
00dc:err:psdrv:PSDRV_PPDGetNextTuple Line too long.
wine: failed to start L"C:\\windows\\syswow64\\rundll32.exe"
wine: configuration in L"/Users/user/wine" has been updated.
0134:fixme:imm:ImeSetActiveContext (0xb790c0, 1): stub
0134:fixme:imm:ImmReleaseContext (000000000001007A, 0000000000B790C0): stub
013c:fixme:imm:ImeSetActiveContext (0x53bb550, 0): stub
013c:fixme:imm:ImmReleaseContext (0000000000030052, 00000000053BB550): stub
Gcenx commented 8 months ago

Please provide the entire launch command and exactly what your attempting to run as it possible what your attempting to run has additional unmet requirements.

DavidPalaxo commented 8 months ago

I have followed this guide to install the toolkit. A lot of ports have been rebuilt with +universal flag as I am using similar ports with arm64 architecture (f.e. Gimp or Inkscape). I have run into few problems that some of ports have not been rebuild automatically with universal support, but it was obvious from logs, so I have installed them manually with +universal option. At the end all required ports have finished installation without any error.

Then I have followed the steps:

  1. WINEPREFIX=~/wine /opt/local/libexec/game-porting-toolkit/bin/wine64 winecfg
  2. WINEPREFIX=~/wine /opt/local/libexec/game-porting-toolkit/bin/wine64 /Users/user/Downloads/SteamSetup.exe or gameportingtoolkit ~/wine /Users/user/Downloads/SteamSetup.exe is not working (the first one at least output any output)
Gcenx commented 8 months ago

Still sounds like a permissions issue as SteamSetup.exe doesn't have any special requirements.

Instead use gameportingtoolkit ~/wine explorer then navigate to the location of SteamSetup.exe if the folder happens to be blank inside the explorer window it doesn't have permissions to access the folder. An alternative is you could move SteamSetup.exe into another location that doesn't require special permissions.

DavidPalaxo commented 8 months ago

Actually, I can see all the content of Downloads folder. Even if I place text file test.txt I am able to open that using explorer with notepad, edit the file and save that. Screenshot 2023-11-28 at 9 56 27

Gcenx commented 8 months ago

You should be able to launch SteamSetup.exe directly from the explorer window then.

DavidPalaxo commented 8 months ago
00bc:fixme:shell:IShellBrowser_fnOnViewWindowActive stub, 000000000110C1E0 (00000000011139D0)
00bc:fixme:exec:SHELL_execute flags ignored: 0x0000000c
wine: failed to start L"Z:\\Users\\user\\Downloads\\SteamSetup.exe"
wine: failed to start L"Z:\\Users\\user\\Downloads\\SteamSetup.exe"

Screenshot 2023-11-28 at 10 17 42

It looks to me that I am missing some important port. Maybe it was not installed with +universal flag. Are you able to confirm that all packages are present. I have only dependencies of Wine (GPTK) installed with that flag. Attaching the list...

ports.txt

Gcenx commented 8 months ago

Can you confirm the contents of /opt/local/libexec/game-porting-toolkit/bin/

DavidPalaxo commented 8 months ago
10:30:33:user@[~/Downloads]$ ls -l /opt/local/libexec/game-porting-toolkit/bin/
total 552
-rwxr-xr-x  1 root  admin   14328 Nov 24 23:37 wine64
-rwxr-xr-x  1 root  admin  611912 Nov 24 23:37 wineserver
Gcenx commented 8 months ago

Now it makes sense why you’ve been unable to launch Steam via explorer wine64-preloader is missing guess Apples fix alone wasn’t enough.

I’ll apply an additional fix to the Portfile later and do a rev-bump.

DavidPalaxo commented 8 months ago

Thank you very much.

Looking forward for the fix :)

Gcenx commented 8 months ago

Please update your local copy of this repo is not using git format, then uninstall and reinstall game-porting-toolkit this should now work.

DavidPalaxo commented 8 months ago

It's working! Thank you for such a quick response and resolution!