-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathscript.js
More file actions
43 lines (41 loc) · 1.78 KB
/
script.js
File metadata and controls
43 lines (41 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
include(["engines", "wine", "engine", "object"]);
include(["engines", "wine", "plugins", "override_dll"]);
include(["utils", "functions", "net", "resource"]);
include(["engines", "wine", "verbs", "luna"]);
include(["utils", "functions", "filesystem", "files"]);
include(["engines", "wine", "plugins", "windows_version"]);
/**
* Verb to install .NET 2.0
* @returns {Wine} Wine object
*/
Wine.prototype.dotnet20 = function () {
if (this.architecture() == "x86") {
this.windowsVersion("win2k");
var setupFile = new Resource()
.wizard(this.wizard())
.url("https://download.lenovo.com/ibmdl/pub/pc/pccbbs/thinkvantage_en/dotnetfx.exe")
.checksum("a3625c59d7a2995fb60877b5f5324892a1693b2a")
.name("dotnetfx.exe")
.get();
this.uninstall("Mono");
remove(this.system32directory() + "/mscoree.dll");
this.wizard().wait(tr("Please wait while {0} is installed...", ".NET Framework 2.0"));
this.run(setupFile, ["/q:a", "/c:install.exe /q"], null, false, true);
this.windowsVersion("win7");
remove(this.system32directory() + "/msvcr80.dll");
remove(this.system32directory() + "/msvcm80.dll");
remove(this.system32directory() + "/msvcp80.dll");
}
else {
var setupFile = new Resource()
.wizard(this.wizard())
.url("https://download.microsoft.com/download/a/3/f/a3f1bf98-18f3-4036-9b68-8e6de530ce0a/NetFx64.exe")
.checksum("e59cca309463a5d98daeaada83d1b05fed5126c5")
.name("NetFx64.exe")
.get();
this.uninstall("Mono");
this.wizard().wait(tr("Please wait while {0} is installed...", ".NET Framework 2.0"));
this.run(setupFile, ["/q:a", "/c:install.exe /q"], null, false, true)
}
return this;
};