#!/bin/bash
if
[
"$POL_ARCH"
==
"amd64"
];
then
POL_Debug_Fatal
"$(eval_gettext 'This package does not work on a 64-bit installation')"
fi
POL_Wine
uninstaller --remove
'{E45D8920-A758-4088-B6C6-31DBB276992E}'
||
true
Set_OS
"win2k"
cat
<< EOF >
"dotnet11_fix.reg"
[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]
"ProductName"
=
"Microsoft Windows 2000"
"CSDVersion"
=
""
"CurrentVersion"
=
"5.0"
"CurrentBuildNumber"
=
"2195"
[HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Windows]
"CSDVersion"
=dword:00000000
EOF
POL_Wine
regedit
"dotnet11_fix.reg"
mkdir
"$POL_USER_ROOT/ressources/dotnet11"
cd
"$POL_USER_ROOT/ressources/dotnet11"
rm
-rf
"$WINEPREFIX"
/Microsoft
.NET
/Framework/v1
.1.4322/
POL_Wine
--ignore-errors reg delete
"HKLM\Software\Microsoft\.NETFramework\policy\v2.0"
/f
POL_Wine
--ignore-errors reg delete
"HKLM\Software\Microsoft\.NETFramework"
/v
InstallRoot
/f
POL_Wine_InstallFonts
WINEDLLOVERRIDES=
"regsvcs.exe=b"
WINEDLLOVERRIDES=
"fusion=n"
:$WINEDLLOVERRIDES
export
WINEDLLOVERRIDES
POL_Wine_WaitBefore
".NET Framework 1.1"
POL_Wine
--ignore-errors dotnetfx.exe
/q
/c
:
"install.exe /q"
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"