Attempting to bypass .net check/use mono

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
bryteise
Level 1
Level 1
Posts: 6
Joined: Tue Jul 27, 2010 10:20 am

Attempting to bypass .net check/use mono

Post by bryteise »

I am trying to use the mono26 install from winetricks in order to run an installer that fails to find:

C:\\windows\\Microsoft.NET\\Framework\\v2.0.50727\\mscorsvw.exe

even though I have both that 2.0 and the 3.0 framework in my .wine/ folder. Once it fails to find that file it starts to run a 3.5 framework installer that wine doesn't quite have working yet.

Does anybody have any advice on getting the mono install to be used in place of .net for the installer check?
madewokherd
Level 4
Level 4
Posts: 149
Joined: Mon Jun 02, 2008 5:03 pm

Attempting to bypass .net check/use mono

Post by madewokherd »

try:

$ cd ~/.wine/drive_c/Microsoft.NET/Framework/v2.0.50727/
$ cp ngen.exe mscorsvw.exe
$ cd /usr/lib/wine
$ cp ngen.exe.so mscorsvw.exe.so

Ultimately, Wine will have to provide a replacement for mscorsvw.exe.

On Tue, Jul 27, 2010 at 7:14 PM, bryteise <[email protected]> wrote:
I am trying to use the mono26 install from winetricks in order to run an installer that fails to find:

C:\\windows\\Microsoft.NET\\Framework\\v2.0.50727\\mscorsvw.exe

even though I have both that 2.0 and the 3.0 framework in my .wine/ folder.  Once it fails to find that file it starts to run a 3.5 framework installer that wine doesn't quite have working yet.

Does anybody have any advice on getting the mono install to be used in place of .net for the installer check?




bryteise
Level 1
Level 1
Posts: 6
Joined: Tue Jul 27, 2010 10:20 am

Post by bryteise »

Thanks for the help! I still am getting the following message:

wine: cannot find L"C:\\windows\\Microsoft.NET\\Framework\\v2.0.50727\\mscorsvw.exe"

I am using wine 1.2 installed through the ubuntu ppa. I am using 64 bit ubuntu so my lib directory is /usr/lib32/wine though I don't know if that makes much difference. Also my full path for the v2 .NET folder is:

~/.wine/drive_c/windows/Microsoft.NET/Framework/v2.0.50727

Not sure if it makes any difference since you didn't have the windows folder between drive_c and Microsoft.NET. The error message I'm getting is pointing to my directory anyway.

Really not sure why it isn't seeing the file though.

$ cd ~/.wine/drive_c/Microsoft.NET/Framework/v2.0.50727/
$ cp ngen.exe mscorsvw.exe
$ cd /usr/lib/wine
$ cp ngen.exe.so mscorsvw.exe.so
madewokherd
Level 4
Level 4
Posts: 149
Joined: Mon Jun 02, 2008 5:03 pm

Attempting to bypass .net check/use mono

Post by madewokherd »

I am using wine 1.2 installed through the ubuntu ppa.  I am using 64 bit ubuntu so my lib directory is /usr/lib32/wine though I don't know if that makes much difference.  Also my full path for the v2 .NET folder is:
I'm not sure, but I don't think it should matter.
~/.wine/drive_c/windows/Microsoft.NET/Framework/v2.0.50727

Not sure if it makes any difference since you didn't have the windows folder between drive_c and Microsoft.NET.  The error message I'm getting is pointing to my directory anyway.
That was my mistake, sorry.

the ngen.exe file in the c: drive is a stub dll. It essentially tells
wine to look elsewhere (a .exe.so file) for the actual code. So if you
copy it that way, you need an mscorsvw.exe.so file for it to work.

The ngen.exe in Wine is nothing special, just a stub that prints its
arguments. Any old .exe file would probably work just as well.

But this is a very hacky way of doing it.

Could you file a bug about this and CC me, as a reminder that we need
a real replacement in Wine?
bryteise
Level 1
Level 1
Posts: 6
Joined: Tue Jul 27, 2010 10:20 am

Post by bryteise »

Thanks again, I have created Bug 23816 and CC'd you, I will be following that for adding any more information I didn't think of adding right away.

As for my current issue, I have wine no longer giving the missing file error just a

fixme:heap:HeapSetInformation (nil) 1 (nil) 0

when I attempt to run the installer with mono26 and forcemono winetricks active. The installer comes up and tells me I need .NET 3.5 and will try to run the installer instead of trying to use mono like I hope it would do.
qwertymn
Level 4
Level 4
Posts: 236
Joined: Thu Mar 27, 2008 3:42 am

Post by qwertymn »

is the application freely downloadable so we could give it a try?
bryteise
Level 1
Level 1
Posts: 6
Joined: Tue Jul 27, 2010 10:20 am

Post by bryteise »

The program can be downloaded here:http://www.fileplay.net/file/9159/blood ... -installer

I actually was able to get the installer to proceed past that by just accepting through the .NET 3.5 and XNA downloads and installing until I received another error that I had to control-c out of. Relaunching the installer and repeating my steps this time allowed the installer to run all the way through.

At this point the application is installed but if I try and run the program through the following wine start menu in gnome (env WINEPREFIX="/home/wdouglas/.wine" wine C:\\windows\\command\\start.exe /Unix /home/wdouglas/.wine/dosdevices/c:/users/wdouglas/Start\ Menu/Programs/Bloodline\ Champions/Bloodline\ Champions.lnk)

But it fails to launch or show any error dialog. I attempt to run the executables in the installed directory as well through wine (env WINEPREFIX="/home/wdouglas/.wine" wine C:\\windows\\command\\start.exe /Unix /home/wdouglas/.wine/dosdevices/c:/users/wdouglas/Start\ Menu/Programs/Bloodline\ Champions/Bloodline\ Champions.lnk) but receive the following errors:

> wine BloodlineChampions.exe
fixme:actctx:parse_manifest_buffer root element is L"asmv1:assembly", not <assembly>
fixme:actctx:parse_manifest_buffer root element is L"asmv1:assembly", not <assembly>
** Message: Unknown heap type: {smartassembly}

Unhandled Exception: System.InvalidProgramException: Invalid IL code in #Qu.#u4f:#eHb (string[]): IL_0011: brtrue.s IL_0062


> wine BloodlineChampionsLoader.exe
fixme:actctx:parse_manifest_buffer root element is L"asmv1:assembly", not <assembly>
fixme:actctx:parse_manifest_buffer root element is L"asmv1:assembly", not <assembly>
** Message: Unknown heap type: {smartassembly}

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for <Module> ---> System.InvalidProgramException: Invalid IL code in .: (): IL_0005: bne.un.s IL_000e


at <Module>..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---


> wine LoaderUpdater.exe
fixme:actctx:parse_manifest_buffer root element is L"asmv1:assembly", not <assembly>
fixme:actctx:parse_manifest_buffer root element is L"asmv1:assembly", not <assembly>
Argument errors
starting BloodlineChampionsLoader.exe
fixme:exec:SHELL_execute flags ignored: 0x00000100
fixme:actctx:parse_manifest_buffer root element is L"asmv1:assembly", not <assembly>
wdouglas@wd-workstation:~/.wine/drive_c/Program Files/Stunlock Studios/Bloodline Champions Beta/Binary$ fixme:actctx:parse_manifest_buffer root element is L"asmv1:assembly", not <assembly>
** Message: Unknown heap type: {smartassembly}

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for <Module> ---> System.InvalidProgramException: Invalid IL code in .: (): IL_0005: bne.un.s IL_000e


at <Module>..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
bryteise
Level 1
Level 1
Posts: 6
Joined: Tue Jul 27, 2010 10:20 am

Post by bryteise »

I was able to proceed a little further getting the program to launch by installing the .net 2.0 and 3.0 frameworks after installing the program itself with just mono26.

I have updated my Bug 23816 with that information and attached a log file for running the program.
bryteise
Level 1
Level 1
Posts: 6
Joined: Tue Jul 27, 2010 10:20 am

Post by bryteise »

I had made a bit more progress on getting this program to work but seem to have hit a bit of a wall on my latest error. At the very least I'd like a way to figure out the full error included in the screenshot but would of course like to get the library working for the last 10% of launching the game.

Full details in the bug http://bugs.winehq.org/show_bug.cgi?id=23816.
Locked