Farsi Windows 3.1 halts on Windows portion of Setup...

Discuss MS-DOS, Windows 1, 2 and 3.
scatman
User avatar
Posts: 22
Joined: Wed May 31, 2017 2:25 pm

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by scatman »

Could the image provided be corrupted?

Battler
User avatar
Donator
Posts: 2117
Joined: Sat Aug 19, 2006 8:13 am
Location: Slovenia, Central Europe.
Contact:

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by Battler »

We have this on several MSDN discs, all file comparisons match, and all copies have the same problem, so it's definitely not corruption.
Main developer of the 86Box emulator.
Join the 86Box Discord server, a nice community for true enthusiasts and 86Box supports!

The anime channel is on the Ring of Lightning Discord server.

Check out our SoftHistory Forum for quality discussion about older software.

roytam1
Posts: 735
Joined: Mon Nov 03, 2008 6:15 am

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by roytam1 »

checkout sub_91C6 in GDI.EXE there is a subroutine for dongle I/O.

Battler
User avatar
Donator
Posts: 2117
Joined: Sat Aug 19, 2006 8:13 am
Location: Slovenia, Central Europe.
Contact:

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by Battler »

- roytam1: This confirms it's indeed dongle-protected. I'm going to take a look at this.
Main developer of the 86Box emulator.
Join the 86Box Discord server, a nice community for true enthusiasts and 86Box supports!

The anime channel is on the Ring of Lightning Discord server.

Check out our SoftHistory Forum for quality discussion about older software.

roytam1
Posts: 735
Joined: Mon Nov 03, 2008 6:15 am

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by roytam1 »

for me I'd likee to bypress dongle codes and use it without dongle.

in GDI.EXE, DAVIDMSGDI3() calls sub_8EDA() which calls sub_8F21() which calls sub_91C6()

roytam1
Posts: 735
Joined: Mon Nov 03, 2008 6:15 am

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by roytam1 »

hacked GDI.EXE a little bit just to bypass dongle operations
Image

switching to Farsi UI
Image

Current Drive Letter is broken?
Image
Image
Image
EDIT: Seems to be common if no floppy drive is available in system

Farsi Font dialog:
Image
Last edited by roytam1 on Sat Jul 15, 2017 12:04 pm, edited 2 times in total.

roytam1
Posts: 735
Joined: Mon Nov 03, 2008 6:15 am

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by roytam1 »

SETUP with patched GDI.EXE
Image

Image

Image

Image

Image

Image

Image

Image

and it seems to have other places having dongle check.
EDIT: Seems both progman.exe and winfile.exe has dongle check.

roytam1
Posts: 735
Joined: Mon Nov 03, 2008 6:15 am

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by roytam1 »

OK patched files uploaded here:
mega.nz/#!DY9jRIzK!m7TzhpOMldY3tz0PlfxCkbSkZdBex9BzmnlUS8rFlbY

Battler
User avatar
Donator
Posts: 2117
Joined: Sat Aug 19, 2006 8:13 am
Location: Slovenia, Central Europe.
Contact:

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by Battler »

Thanks for your patched files, they will do until I get around to emulating the dongle. :p

Now, I wonder how exactly it communicates to the dongle, that is, what does it send to what port, and what it expects to get back.
Main developer of the 86Box emulator.
Join the 86Box Discord server, a nice community for true enthusiasts and 86Box supports!

The anime channel is on the Ring of Lightning Discord server.

Check out our SoftHistory Forum for quality discussion about older software.

roytam1
Posts: 735
Joined: Mon Nov 03, 2008 6:15 am

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by roytam1 »

Battler wrote:Thanks for your patched files, they will do until I get around to emulating the dongle. :p

Now, I wonder how exactly it communicates to the dongle, that is, what does it send to what port, and what it expects to get back.
It seems to be a parallel port dongle(normally, but can be serial port dongle as well, or even ISA card "dongle") as it use x86 IN/OUT instructions.
FYI: https://stackoverflow.com/questions/321 ... 6-used-for

for "how it expect dongle's output", you may need studying the assembly codes (and the caller's codes)
unfortunately hex-rays seems unable to turn 16bit assembly into pseudo code.

dfawcus
Posts: 81
Joined: Sat Apr 29, 2017 2:21 pm

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by dfawcus »

BTW - What is that MiniDos program? Google gives too many false positives.

roytam1
Posts: 735
Joined: Mon Nov 03, 2008 6:15 am

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by roytam1 »

dfawcus wrote:BTW - What is that MiniDos program? Google gives too many false positives.
Thats my self-written VB3 program ;)

Battler
User avatar
Donator
Posts: 2117
Joined: Sat Aug 19, 2006 8:13 am
Location: Slovenia, Central Europe.
Contact:

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by Battler »

What is the actual offset in GDI.EXE of sub_91C6()?
Main developer of the 86Box emulator.
Join the 86Box Discord server, a nice community for true enthusiasts and 86Box supports!

The anime channel is on the Ring of Lightning Discord server.

Check out our SoftHistory Forum for quality discussion about older software.

roytam1
Posts: 735
Joined: Mon Nov 03, 2008 6:15 am

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by roytam1 »

Battler wrote:What is the actual offset in GDI.EXE of sub_91C6()?
GDI.EXE absolute file offset 0xB3E6 is starting of sub_91C6().

Battler
User avatar
Donator
Posts: 2117
Joined: Sat Aug 19, 2006 8:13 am
Location: Slovenia, Central Europe.
Contact:

Re: Farsi Windows 3.1 halts on Windows portion of Setup...

Post by Battler »

I made 86Box log LPT1 reads and writes, this is the output from where Windows hangs: https://pastebin.com/EG1QvH6c . Seems it tries to send two sequences to the port, F8/FC/FC and E8/FC/FC, and expects to receive some data in return.
Main developer of the 86Box emulator.
Join the 86Box Discord server, a nice community for true enthusiasts and 86Box supports!

The anime channel is on the Ring of Lightning Discord server.

Check out our SoftHistory Forum for quality discussion about older software.

Post Reply