Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add .NET 4.6.1 Verb (PhoenicisOrg#598)
  • Loading branch information
Zemogiter authored and plata committed May 30, 2018
commit 62974ad74730ddb6fe59a9e95d797e21914dd5f2
46 changes: 46 additions & 0 deletions Engines/Wine/Verbs/dotnet461/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
include(["engines", "wine", "engine", "object"]);
include(["utils", "functions", "net", "resource"]);
include(["engines", "wine", "verbs", "luna"]);
include(["utils", "functions", "filesystem", "files"]);
include(["engines", "wine", "verbs", "dotnet452"]);

/**
* Verb to install .NET 4.6.1
* @returns {Wine} Wine object
*/
Wine.prototype.dotnet461 = function () {
var OSVersion = this.windowsVersion();
var setupFile = new Resource()
.wizard(this._wizard)
.url("https://download.microsoft.com/download/E/4/1/E4173890-A24A-4936-9FC9-AF930FE3FA40/NDP461-KB3102436-x86-x64-AllOS-ENU.exe")
.checksum("864056903748706e251fec9f5d887ef9")
.name("NDP461-KB3102436-x86-x64-AllOS-ENU.exe")
.get();

this.uninstall("Mono");

this.wizard().wait(tr("Please wait ..."));
this.run("reg", ["delete", "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4", "/f"], null, false, true);

remove(this.system32directory() + "/mscoree.dll");
this.dotnet452()
this.windowsVersion("win7");

this.overrideDLL()
.set("builtin", ["fusion"])
.do();

this.wizard().wait(tr("Please wait while {0} is installed ...", ".NET Framework 4.6.1"));
this.run(setupFile, [setupFile, "/q", "/c:\"install.exe /q\""], null, false, true);

this.overrideDLL()
.set("native", ["mscoree"])
.do();

this.windowsVersion(OSVersion);

if (OSVersion != "win2003") {
print(tr("{0} applications can have issues when windows version is not set to \"win2003\"", ".NET 4.6.1"));
}
return this;
};
14 changes: 14 additions & 0 deletions Engines/Wine/Verbs/dotnet461/script.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"scriptName" : ".NET 4.6.1",
"id" : "dotnet461",
"compatibleOperatingSystems" : [
"MACOSX",
"LINUX"
],
"testingOperatingSystems" : [
"MACOSX",
"LINUX"
],
"free" : true,
"requiresPatch" : false
}