https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #6 from jakubkwadrans15@gmail.com --- (In reply to Louis Lenders from comment #5)
(In reply to jakubkwadrans15 from comment #4)
Thanks a lot for the reply, however, I'm kind of inexperienced with Linux, as I'm fairly new to it. What do I do with the hack? Just run it in cmd, or are there specifics steps to it? Thanks in advance.
Kind regards.
Well, you'd have to recompile wine with that patch applied but I guess if you never did that , that will cost you many hours of setting up a build environment.
If you don't mind playing dirty tricks here's very quick way to get it started:
Just replace the string "VirtualAlloc2" in the installer with another string so the installer cannot find the export anymore in wine:
sed 's/VirtualAlloc2/QirtualAlloc2/g' LandOfHeroes_Install.exe
hackedinstaller.exe
Then just do 'wine hackedinstaller.exe' ; Important: use wine-staging otherwise you will run into bug 52396.
Last remark: the error window might come from missing webview2 installation (not 100% sure) but I wasn't able to install this, needs more investigation
After installing wine-staging 8.8, I can run the hacked installer via sudo wine hackedinstaller.exe, however, after doing so, and when I click past the error, I get an alert that I don't have VC++ 2022 installed, and if I want to install it now. No matter if I say yes or no, the application does nothing.