forked from PhoenicisOrg/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
38 lines (31 loc) · 1.24 KB
/
script.js
File metadata and controls
38 lines (31 loc) · 1.24 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
include(["Engines", "Wine", "Engine", "Object"]);
include(["Utils", "Functions", "Net", "Resource"]);
include(["Utils", "Functions", "Filesystem", "Files"]);
/**
* Inspired from winetricks quartz -> https://github.com/Winetricks/winetricks/blob/63bc6dbe612d017a0cb6bf6e4cde265162d75bca/src/winetricks#L8523
* @returns {Wine}
*/
Wine.prototype.quartz = function(){
var setupFile = new Resource()
.wizard(this._wizard)
.url("https://download.microsoft.com/download/E/E/1/EE17FF74-6C45-4575-9CF4-7FC2597ACD18/directx_feb2010_redist.exe")
.checksum("a97c820915dc20929e84b49646ec275760012a42")
.name("directx_feb2010_redist.exe")
.get();
new CabExtract()
.archive(setupFile)
.wizard(this._wizard)
.to(this.prefixDirectory + "/TMP/")
.extract(["-L", "-F", "dxnt.cab"]);
new CabExtract()
.archive(this.prefixDirectory + "/TMP/dxnt.cab")
.wizard(this._wizard)
.to(this.system32directory())
.extract(["-L", "-F", "quartz.dll"]);
remove(this.prefixDirectory + "/TMP/");
this.regsvr32().install("quartz.dll");
this.overrideDLL()
.set("native, builtin", ["quartz"])
.do()
return this;
}