http://bugs.winehq.org/show_bug.cgi?id=5129
panning_gigahertz141@simplelogin.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |panning_gigahertz141@simple | |login.com
--- Comment #41 from panning_gigahertz141@simplelogin.com --- Thank God for you folks!
I have Faststone Viewer 5.7 working with Kubuntu 24.04 on Wayland with Wine 10.0.
unxed's script was a big help to read through but it didn't actually work for my install. I'm far from a programmer but think it's because the install path was Program Files x86 vs Program Files.
my steps - follow at your own peril: install FSViewer with wine (download here: http://web.archive.org/web/20210211222841if_/http://www.faststonesoft.net/DN...)
use these steps to get/unzip the comctl32.dll: wget https://downloads.sourceforge.net/project/pocmin/Win%2095_98%20Controls/Win%... wine ./CC32inst.exe /T:C:\comctl32.tmp /C /Q unzip ~/.wine/drive_c/comctl32.tmp/comctl32.tmp/comctl32.exe -d ~/.wine/drive_c/comctl32.tmp/comctl32.tmp wine ~/.wine/drive_c/comctl32.tmp/comctl32.tmp/x86/50ComUpd.Exe /T:C:\comctl32.tmp.1 /C /Q
copy the newly created comcnt.dll from ~/.wine/drive_c/comctl32.tmp.1/comctl32.tmp.1/ to the Faststone install directory. For me it was /~/.wine/drive_c/Program Files (x86)/FastStone Image Viewer/
make a backup copy of FSViewer.exe
use a hex editor (I used Jeex) to find and replace the term comctl32 and replace with comctr32 I think there's only ONE in this file.
Run these from the terminal: wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v comctl32 /t REG_SZ /d builtin /f wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v *comctl32 /t REG_SZ /d builtin /f
This gets it actually working on a direct launch of the .exe in the installation folder, but something is wrong with the shortcut in the App drawer, etc. Go here: ~/.local/share/applications/wine/Programs/FastStone Image Viewer/ and make a backup of the "FastStone Image Viewer.desktop". Right click>properties>application and remove the environment variables and work path fields. OK and it should now be working across the OS.
Thanks to all of you who are keeping this going. Faststone is a lifesaver for my work flow.