Advertisement
hyperfang8

PlayOnLinux dotnet11 wine 1.5.x fix v2 UPDATED

Nov 26th, 2012
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.33 KB | None | 0 0
  1. #!/bin/bash
  2. # PlayOnLinux Function
  3. # Date : (2009-11-21 21:00)
  4. # Last revision : (2012-06-10 21:00)
  5. # Author : Berillions
  6. # Updated by : GNU_Raziel
  7. # Only For : http://www.playonlinux.com
  8.  
  9. #POL_Call POL_Install_dotnet11sp1
  10. #return 0
  11. #We can't do that as POL_Install_dotnet11sp1 uses POL_Install_dotnet11, catch 22
  12.  
  13. [ "$PLAYONLINUX" = "" ] && exit
  14. source "$PLAYONLINUX/lib/sources"
  15.  
  16. POL_Debug_Init
  17.  
  18. # Checking wine arch
  19. if [ "$POL_ARCH" == "amd64" ]; then
  20.         POL_Debug_Fatal "$(eval_gettext 'This package does not work on a 64-bit installation')"
  21. fi
  22.  
  23. # Remove wine-mono if present
  24. POL_Wine uninstaller --remove '{E45D8920-A758-4088-B6C6-31DBB276992E}' || true
  25.  
  26. # Setting OS check Fix
  27. Set_OS "win2k"
  28. cat << EOF > "dotnet11_fix.reg"
  29. [HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]
  30. "ProductName"="Microsoft Windows 2000"
  31. "CSDVersion"=""
  32. "CurrentVersion"="5.0"
  33. "CurrentBuildNumber"="2195"
  34. [HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Windows]
  35. "CSDVersion"=dword:00000000
  36. [-HKLM\\Software\\Microsoft\\.NETFramework]
  37. EOF
  38. #Fix for 1.5.x crash (need --ignore-errors or script crashes)
  39. POL_Wine --ignore-errors regedit "dotnet11_fix.reg"
  40.  
  41.  
  42. mkdir "$POL_USER_ROOT/ressources/dotnet11"
  43. cd "$POL_USER_ROOT/ressources/dotnet11"
  44.  
  45. # Downloading dotnet11
  46. POL_Download_Resource "http://files.playonlinux.com/dotnet/1/dotnetfx.exe" "52456ac39bbb4640930d155c15160556" "dotnet11"
  47.  
  48. # Setting Fix 1
  49. POL_Wine_InstallFonts
  50.  
  51. #Broken since 1.5.x
  52. #POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\.NETFramework\policy\v2.0" /f
  53. #POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\.NETFramework" /v InstallRoot /f
  54.  
  55. # Setting Fix 2
  56. WINEDLLOVERRIDES="regsvcs.exe=b"
  57. export WINEDLLOVERRIDES
  58.  
  59. # Installing dotnet11
  60. POL_Wine_WaitBefore ".NET Framework 1.1"
  61. POL_Wine --ignore-errors dotnetfx.exe /q /c:"install.exe /q"
  62.  
  63. # Restoring wine version
  64. unset WINEDLLOVERRIDES
  65. wineserver -k
  66. Set_OS "winxp" "sp3"
  67. cat << EOF > "Default_OS_Version.reg"
  68. [HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]
  69. "ProductName"="Microsoft Windows XP"
  70. "CSDVersion"="Service Pack 3"
  71. "CurrentVersion"="5.3"
  72. "CurrentBuildNumber"="2600"
  73. [HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Windows]
  74. "CSDVersion"=dword:00000300
  75. EOF
  76. POL_Wine regedit "Default_OS_Version.reg"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement