#!/bin/bash
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/v3.0/Microsoft .NET Framework 3.0/logo.bmp"
];
then
POL_Call
POL_Install_dotnet30
fi
Set_OS
"winxp"
"sp3"
cat
<< EOF >
"dotnet30sp1_fix.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
"dotnet30sp1_fix.reg"
cd
"$POL_USER_ROOT/ressources/dotnet30"
POL_Wine
--ignore-errors reg add
"HKLM\\Software\\Microsoft\\Net Framework Setup\\NDP\\v3.0"
/v
Version
/t
REG_SZ
/d
"3.0"
/f
POL_Wine
--ignore-errors reg add
"HKLM\\Software\\Microsoft-\\Net Framework Setup\\NDP\\v3.0"
/v
SP
/t
REG_DWORD
/d
0001
/f
wineserver -k
POL_Wine
msiexec
/i
"RGB9RAST_x86.msi"
/q
POL_Wine_WaitExit
".NET Framework 3.0 SP1 fix 1"
POL_Wine
"XPSEPSC-x86-en-US.exe"
/quiet
/passive
/norestart
POL_Wine_WaitExit
".NET Framework 3.0 SP1 fix 2"
POL_Wine
--ignore-errors sc delete
"FontCache3.0.0.0"
if
[
"$(POL_Config_PrefixRead VERSION)"
=
"1.5.6"
];
then
WINEDLLOVERRIDES=
"ngen.exe,mscorsvw.exe=b"
WINEDLLOVERRIDES=
"mscoree,fusion=n"
:$WINEDLLOVERRIDES
else
WINEDLLOVERRIDES=
"ngen.exe,mscorsvw.exe=b"
fi
export
WINEDLLOVERRIDES
wineserver -k
POL_Wine_WaitBefore
".NET Framework 3.0 SP1 Update"
POL_Wine
--ignore-errors NetFx30SP1_x86.exe
/q
/c
:
"install.exe /q"
unset
WINEDLLOVERRIDES
wineserver -k