The forum

dotnet11 fails in 1.5.18

Author Replies
hyperfang8 Sunday 25 November 2012 at 4:05
hyperfang8

It seems that Gui installer for dotnet1.1 crashes.
I have installed it manualy but i think it should be fixed, console log:
[11/25/12 04:01:20] - ----- Starting function POL_Install_dotnet11 -----
...
[11/25/12 04:01:26] - Running wine-1.5.18 reg delete HKLM\\Software\\Microsoft\\.NETFramework\\policy\\v2.0 /f (Working directory : /home/kiki/.PlayOnLinux/ressources/dotnet11)
DELETE - HKLM\\Software\\Microsoft\\.NETFramework\\policy\\v2.0 (null) 0 0 1
Error: The system was unable to find the specified registry key or value

Patched script: http://pastebin.com/FFK8vNHY

Edited by hyperfang8


Avoid the Gates of Hell. Use
Linux.
petch Sunday 25 November 2012 at 9:21
petch

Seems to be broken with Wine 1.5.x indeed

Source is available from "Functions" section:
http://www.playonmac.com/en/source-527-POL_Install_dotnet11.html
But dotnet* scripts are tricky business...

I opened a bug report: http://www.playonmac.com/en/issue-1584.html

Edited by petch

hyperfang8 Sunday 25 November 2012 at 13:52
hyperfang8

Hi, i have found and fixed the problem...

Patched script: http://pastebin.com/FFK8vNHY

Source of the problem(s):
POL_Wine reg delete "HKLM\\Software\\Microsoft\\.NETFramework\\policy\\v2.0" /f
POL_Wine reg delete "HKLM\\Software\\Microsoft\\.NETFramework" /v InstallRoot /f

About the problem:
It seems that "reg" returns crash if the noted key is not found, this seems to be wine problem not POL.
This makes POL asume that there was error and it crashes whole thing

The solution:
Use .reg file to delete 2 noted keys , alos use --ignore-errors to prevent wine from crashing.

Compatability:
The script itself seems to work with wine 1.5.x,1.4.x,1.3.x,1.2.x and should work with any version...

Note: script in the link is intended to run from POL shel of your targeted prefix

EDIT:
By the way, where can i get res of the scripts , it seems that corefonts is crashing as well...
EDIT 2:
Found them, http://www.playonmac.com/repository/?cat=100 !
EDIT 3:
It seems that corefonts was ment to run this way.

Edited by hyperfang8


Avoid the Gates of Hell. Use
Linux.
Quentin PÂRIS Sunday 25 November 2012 at 17:26
Quentin PÂRISAnonymous

I thing that your method is a bit complicated :)

Two other ways:
- Making a .reg file

Or easier
- Adding --ignore-errors after "POL_Wine"

Could you test that?
hyperfang8 Sunday 25 November 2012 at 18:16
hyperfang8

Already tested!
Didn't work.:-(

Avoid the Gates of Hell. Use
Linux.
Quentin PÂRIS Sunday 25 November 2012 at 23:15
Quentin PÂRISAnonymous

What did you test?
hyperfang8 Sunday 25 November 2012 at 23:41
hyperfang8

I already tested this, it doesn't help:
@Making a .reg file
-tried [-HKLM\\Software
\\Microsoft\\.NETFramework] and few others
-all failed also, same error

@--ignore-errors after "POL_Wine"
-doesn't help, stil crashes

Avoid the Gates of Hell. Use
Linux.
Quentin PÂRIS Monday 26 November 2012 at 1:59
Quentin PÂRISAnonymous

Where did you put --ignore-errors ? Give the exact line please
hyperfang8 Monday 26 November 2012 at 8:41
hyperfang8

Where did you put --ignore-errors ? Give the exact line please

Quote from Tinou

Tried:
POL_Wine --ignore-errors reg delete "HKLM\\Software\\Microsoft\\.NETFramework\\policy\\v2.0" /f
Fails...


However i have just realized that there is another way!
The reason wine crashes is because "reg" can not finde specified registry key!
So, what about making one before we try to delete it?
This is actualy easy, because there already is a .reg file called before that!
The result is this:  http://pastebin.com/FFK8vNHY !
I didn't test this yet.

Also i have been thinking about backslashes in windows and i think i made mistake with, the registry file:
-i did: [-HKLM\\Software\\Microsoft\\.NETFramework\\policy\\v2.0]
-instead of: [-HKLM\\\\Software\\\\Microsoft\\\\.NETFramework\\\\policy\\\\v2.0]
Will have to test that as well!

Edit:
-tested again and again
-script no longer crashes but key isn't geting delete
-the first solution still works the best
-tested .reg method again, not working: http://pastebin.com/index/FFK8vNHY

Edited by hyperfang8


Avoid the Gates of Hell. Use
Linux.
hyperfang8 Tuesday 27 November 2012 at 7:34
hyperfang8

bumb...
I hope the script gets patched quickly because dotnet1.1 is needed for some programs that mainly work in wine 1.5

Avoid the Gates of Hell. Use
Linux.
Quentin PÂRIS Tuesday 27 November 2012 at 12:13
Quentin PÂRISAnonymous

Can you send here a clean and fixed script, (with no .bat generation). I'm sure it is possible
hyperfang8 Tuesday 27 November 2012 at 14:23
hyperfang8

Can you send here a clean and fixed script, (with no .bat generation). I'm sure it is possible

Quote from Tinou


My mistake , .reg solution actualy works... 

Updated script: http://pastebin.com/FFK8vNHY

However i'm still not sure if reg file should be called before POL_Wine_InstallFonts or after, where can i finde POL_Wine_InstallFonts source??


Btw , i have noticed that i can't download (maybe because i'm curently on public network):
http://files.playonlinux.com/dotnet/1/dotnetfx.exe

Edited by hyperfang8


Avoid the Gates of Hell. Use
Linux.
Quentin PÂRIS Tuesday 27 November 2012 at 17:13
Quentin PÂRISAnonymous

http://files.playonlinux.com/dotnet/1/dotnetfx.exe just works. That's not normal if you cannot download it.

POL_Wine_InstallFonts is a builtin POL fonction, no matter if you update the registry before or after, it won't have any impact.

I'm going to review your script
Quentin PÂRIS Tuesday 27 November 2012 at 17:19
Quentin PÂRISAnonymous

(By the way, I'm working on a way to make script update easier for users)
hyperfang8 Tuesday 27 November 2012 at 19:12
hyperfang8

(By the way, I'm working on a way to make script update easier for users)

Quote from Tinou


I hope the main script gets updated soon, i need it for my lotro script.
Lotro depends on bug fixes in 1.5.18 and dotnet11!!

Avoid the Gates of Hell. Use
Linux.
Quentin PÂRIS Tuesday 27 November 2012 at 20:08
Quentin PÂRISAnonymous

It is already up to date
hyperfang8 Tuesday 27 November 2012 at 20:51
hyperfang8

It is already up to date

Quote from Tinou

Awesome, when i get home i'm going to releas my lotro script!

Avoid the Gates of Hell. Use
Linux.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com