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
50 lines (42 loc) · 1.53 KB
/
script.js
File metadata and controls
50 lines (42 loc) · 1.53 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
44
45
46
47
48
49
include("engines.wine.engine.object");
include("utils.functions.net.resource");
include("engines.wine.verbs.luna");
/**
* Verb to install vcrun6sp6
* @returns {Wine} Wine object
*/
Wine.prototype.vcrun6sp6 = function () {
var toBeCabExtracted = new Resource()
.wizard(this.wizard())
.url("https://download.microsoft.com/download/1/9/f/19fe4660-5792-4683-99e0-8d48c22eed74/Vs6sp6.exe")
.checksum("2292437a8967349261c810ae8b456592eeb76620")
.name("Vs6sp6.exe")
.get();
var setupFile = new CabExtract()
.archive(toBeCabExtracted)
.to(this.prefixDirectory() + "/drive_c/vcrun6sp6/")
.extract(["-L", "-F", "vcredist.exe"]);
remove(this.system32directory() + "comcat.dll");
remove(this.system32directory() + "msvcrt.dll");
remove(this.system32directory() + "oleaut32.dll");
remove(this.system32directory() + "olepro32.dll");
remove(this.system32directory() + "stdole2.dll");
this.wizard().wait(tr("Please wait while {0} is installed...", "vcrun6sp6"));
this.run(setupFile, "/q", null, false, true);
return this;
};
/**
* Verb to install vcrun6sp6
*/
var verbImplementation = {
install: function (container) {
var wine = new Wine();
wine.prefix(container);
var wizard = SetupWizard(InstallationType.VERBS, "vcrun6sp6", java.util.Optional.empty());
wine.wizard(wizard);
wine.vcrun6sp6();
wizard.close();
}
};
/* exported Verb */
var Verb = Java.extend(org.phoenicis.engines.Verb, verbImplementation);