[Bug 39987] Multiple applications need 'shell32.SHOpenFolderAndSelectItems' implementation to open explorer window with specified items in particular folder selected (Firefox 42.0, Windows 95 Electron app)

WineHQ Bugzilla wine-bugs at winehq.org
Sun Feb 14 17:33:10 CST 2021


https://bugs.winehq.org/show_bug.cgi?id=39987

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|https://www.mozilla.org/en- |https://web.archive.org/web
                   |US/firefox/all/             |/20160114092300/http://ftp.
                   |                            |mozilla.org/pub/firefox/rel
                   |                            |eases/42.0/win32/en-US/Fire
                   |                            |fox%20Setup%2042.0.exe
            Summary|Firefox 42.0 cannot open    |Multiple applications need
                   |download's folder, needs    |'shell32.SHOpenFolderAndSel
                   |SHOpenFolderAndSelectItems  |ectItems' implementation to
                   |implemented                 |open explorer window with
                   |                            |specified items in
                   |                            |particular folder selected
                   |                            |(Firefox 42.0, Windows 95
                   |                            |Electron app)
                 CC|                            |focht at gmx.net

--- Comment #1 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

confirming still present. Refining summary to collect more applications here.

Also encountered with 'Windows 95' github project. Windows 95 running in an
Electron app for the memes ;-)

https://github.com/felixrieseberg/windows95

https://github.com/felixrieseberg/windows95/releases/download/v2.3.0/windows95-win32-ia32-2.3.0.zip

Created snapshot via Internet Archive:

https://web.archive.org/web/20210214233049/https://github.com/felixrieseberg/windows95/releases/download/v2.3.0/windows95-win32-ia32-2.3.0.zip

Selecting 'Machine' -> 'Go to Disk Image' in main menu ought to open explorer
window.

--- snip ---
$ pwd
/home/focht/.wine/drive_c/users/focht/Local Settings/Application Data/windows95

$ wine ./windows95.exe
...
Sending "SHOW_DISK_IMAGE"
02c4:fixme:shell:SHOpenFolderAndSelectItems 0x103ddef8 1 0xb1ffb94 0x0: stub
--- snip ---

The Electron / Squirrel-based installer suffers from bug 40613 ("Multiple
applications require UAC implementation to run installer/app as a normal user
instead of administrator (WhatsApp Desktop, Smartflix, Squirrel Installers,
OneDrive)")

Since 'runas' was disabled in Wine-Staging 5.16+ you could use the hack from
bug 40613 and rebuild Wine from source. Alternatively use my nifty one-liner
which doesn't require any Wine source change as it hot-patches the installer,
bypassing the UAC check:

--- snip ---
$ echo "set *((unsigned short *)0x004073EA) = 0x9046" | \
    winedbg --gdb ./windows95-2.3.0-setup-ia32.exe --rerunningWithoutUAC
--- snip ---

The app works with both, Wine-Mono or MS .NET Framework 4.5.x

You need at least 'WINEDLLOVERRIDES=libglesv2.dll=d' as workaround to make the
main menu render which allows to send the command (bug 44985).

If you want to see the full Wine meme, use WinVer 'Windows 10' setting. This
makes the emulator client window render all content. Yes, Windows 95 actually
boots/runs instantly when you press 'start'. Most of it can be attributed to
usage of Electron framework and v86 project though.

$ sha1sum windows95-2.3.0-setup-ia32.exe 
0dd0845abd2ae0758ca1a875500514f8e4e6aac9  windows95-2.3.0-setup-ia32.exe

$ du -sh windows95-2.3.0-setup-ia32.exe 
293M    windows95-2.3.0-setup-ia32.exe

$ wine --version
wine-6.2

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list