SafeDiscShim icon indicating copy to clipboard operation
SafeDiscShim copied to clipboard

Debugging help

Open Evan-Burch opened this issue 1 year ago • 6 comments

Been trying to use this tool to get Medal of Honor Allied Assault working on Windows 10. When I run the game exe, I get the "Please insert the correct CD_ROM, select OK and restart application message." I am trying to determine if I am dealing with SafeDiskShim not working, or some other issue.

When I run the game exe, I see that the SECDRV.SYS file appears at C:\Windows\SysWOW64\drivers. And if I delete it and run again, it is created once more. Here are a couple of Windows Event logs that are output each time I try and run the game exe:

The description for Event ID 1060 from source Application Popup cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

\??\C:\windows\SysWow64\drivers\SECDRV.SYS

The message resource is present but the message was not found in the message table

and

The SecDrv service failed to start due to the following error: 
This driver has been blocked from loading

Also, here is the output from the SafeDiscShim.log file: MOHAA.exe_SafeDiscShim.log

I have also tried deleting drvmgt.dll as mentioned in the README but alas it does not have any affect.

Any help to narrow down the issue would be appreciated. Even if I could know for sure the SafeDiskShim is not the issue

Evan-Burch avatar Aug 09 '24 20:08 Evan-Burch

In https://github.com/RibShark/SafeDiscShim/issues/24 we figured W11 should have smart app control disabled. Can you try that?

mirh avatar Aug 10 '24 11:08 mirh

I'm actually using Windows 10 not 11. Realized I had said 11 in my initial post. Any ideas for W10?

Evan-Burch avatar Aug 12 '24 21:08 Evan-Burch

btw This game requires you insert 2 disks. They are both mounted when I try and run the game exe

Evan-Burch avatar Aug 12 '24 22:08 Evan-Burch

Check the Microsoft-Windows-Application-Experience/Program-Telemetry event log and see if InjectDll is getting applied to a .tmp file in the temp folder.

mirh avatar Aug 13 '24 11:08 mirh

yup this event log comes through twice.

Compatibility fix applied to C:\Users\hotsh\AppData\Local\Temp\~f51e43.tmp.
Fix information: InjectDll, {3432bc96-d181-4529-b261-1a3964961b6c}, 0x10205.

Evan-Burch avatar Aug 13 '24 16:08 Evan-Burch

Well.. for some reason the injection isn't working good/soon enough and the original safedisc driver is (attempted to be) load. More than trying to rename the executable and playing randomly with compatibility options, I wouldn't know.

mirh avatar Aug 13 '24 23:08 mirh