Thread with 24 posts

jump to expanded post

everyone who's ever used WINE has seen this little box that pops up while it's creating or updating the wineprefix. this is drawn by wineboot.exe, which makes sense.

anyway how does it do the actual prefix setup? by executing an honest-to-god .inf file!!! https://gitlab.winehq.org/wine/wine/-/blob/master/loader/wine.inf.in

Open thread at this post

so I've been trying to get WINE to copy ReactOS's mspaint.exe into the wineprefix's system32. wine.inf has a wildcard that copies any exe files in /usr/lib/wine/x86_64-windows into system32, but that skips ones without a special signature in the DOS stub! so I'm using CopyFiles

Open thread at this post

I tried the creating-shortcuts-with-an-INF-file trick on Windows 95!

  • It brings up the “Updating Shortcuts” window we remember from the first boot after installing Windows 95!
  • It creates a setup.old file, presumably renamed from setup.ini after execution!
  • No underscores! :)
Open thread at this post

then I discovered that, with a fresh install of Win95, there's a setup.old file with a bizarre mess of entries, many with no target for the shortcut, only a name. I thought it might be leftover developer mess, but it turns out name-only lines remove shortcuts: upgrade cleanup!

Open thread at this post

ahh, writing C89 code dealing with the Windows API… it's been so long since we've done serious C programming, we've really missed this. genuinely. it's like coming home…

gotta love some DWORDs and WCHARs and a SetupGetLineTextW( &context, NULL, NULL, NULL, NULL, 0, &size )

Open thread at this post