#!/bin/bash
if
VersionLower $(POL_Config_PrefixRead VERSION) 1.3.23;
then
POL_Debug_Fatal
"$(eval_gettext 'This package does not work with wine 1.3.22 or lower')"
fi
if
[
"$POL_ARCH"
==
"amd64"
];
then
POL_Debug_Fatal
"$(eval_gettext 'This package does not work on a 64-bit installation')"
fi
if
[ ! -e
"$WINEPREFIX/drive_c/windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll"
];
then
POL_Call
POL_Install_dotnet20
fi
cd
"$POL_USER_ROOT/ressources/dotnet20"
Set_OS
"win2k"
"sp4"
cat
<< EOF >
"dotnet20sp1_fix.reg"
[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]
"ProductName"
=
"Microsoft Windows 2000"
"CSDVersion"
=
"Service Pack 4"
"CurrentVersion"
=
"5.0"
"CurrentBuildNumber"
=
"2195"
[HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Windows]
"CSDVersion"
=dword:00000400
EOF
POL_Wine
regedit
"dotnet20sp1_fix.reg"
WINEDLLOVERRIDES=
"ngen.exe,regsvcs.exe,mscorsvw.exe=b"
export
WINEDLLOVERRIDES
wineserver -k
POL_Wine
--ignore-errors reg add
"HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v2.0.50727"
/v
Version
/t
REG_SZ
/d
"2.0.50727"
/f
POL_Wine_WaitBefore
".NET Framework 2.0 SP1 Update"
POL_Wine
--ignore-errors NetFx20SP1_x86.exe
/q
/c
:
"install.exe /q"
rm
-f
"$WINEPREFIX/drive_c/windows/system32/msvc?80.dll"
unset
WINEDLLOVERRIDES
wineserver -k
Set_OS
"winxp"
"sp3"
cat
<< EOF >
"Default_OS_Version.reg"
[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]
"ProductName"
=
"Microsoft Windows XP"
"CSDVersion"
=
"Service Pack 3"
"CurrentVersion"
=
"5.3"
"CurrentBuildNumber"
=
"2600"
[HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Windows]
"CSDVersion"
=dword:00000300
EOF
POL_Wine
regedit
"Default_OS_Version.reg"