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
- fix formatting
  • Loading branch information
madoar committed Jun 28, 2019
commit a30e6ab89f8fad9474ca992f195fb9c90a6239e5
300 changes: 150 additions & 150 deletions Applications/Internet/Internet Explorer 6.0/Online/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,154 +11,154 @@ include("utils.functions.apps.resources");
include("engines.wine.verbs.msls31");

new PlainInstaller().withScript(() => {
var appsManager = Bean("repositoryManager");
var application = appsManager.getApplication([TYPE_ID, CATEGORY_ID, APPLICATION_ID]);
var setupWizard = SetupWizard(InstallationType.APPS, "Internet Explorer 6.0", application.getMainMiniature());

setupWizard.presentation("Internet Explorer 6.0", "Microsoft", "http://www.microsoft.com", "Quentin PÂRIS");

var setupFile = new Resource()
.wizard(setupWizard)
.url("http://files.playonlinux.com/ie/6.0/ie60.exe")
.checksum("8e483db28ff01a7cabd39147ab6c59753ea1f533")
.name("ie60.exe")
.get();

var wine = new Wine()
.wizard(setupWizard)
.prefix("InternetExplorer6", "upstream", "x86", LATEST_STABLE_VERSION)
.create()
.msls31();

wine.windowsVersion("win2k");

remove(wine.prefixDirectory() + "/drive_c/IE 6.0 Full/");
remove(wine.prefixDirectory() + "/drive_c/" + wine.programFiles() + "/Internet Explorer/iexplore.exe");

[
"itircl",
"itss",
"jscript",
"mlang",
"mshtml",
"msimtf",
"shdoclc",
"shdocvw",
"shlwapi",
"urlmon",
"browseui",
"iseng",
"inetcpl"
].forEach(function(dll) {
remove(wine.prefixDirectory() + "/drive_c/windows/system32/" + dll + ".dll");
});

wine.run(setupFile, [], null, false, true);

new CabExtract()
.wizard(setupWizard)
.archive(wine.prefixDirectory() + "/drive_c/IE 6.0 Full/ACTSETUP.CAB")
.to(wine.prefixDirectory() + "/drive_c/windows/system32/")
.extract(["-F", "inseng.dll"]);

wine.run("iexplore", ["-unregserver"], null, false, true);
wine
.overrideDLL()
.set("native", ["inseng"])
.do();
wine.runInsidePrefix("IE 6.0 Full/IE6SETUP.EXE", [], true);
wine
.overrideDLL()
.set("native,builtin", [
"inetcpl.cpl",
"itircl",
"itss",
"jscript",
"mlang",
"mshtml",
"msimtf",
"shdoclc",
"shdocvw",
"shlwapi",
"urlmon"
])
.do();

var librariesToRegister = [
"actxprxy.dll",
"browseui.dll",
"browsewm.dll",
"cdfview.dll",
"ddraw.dll",
"dispex.dll",
"dsound.dll",
"iedkcs32.dll",
"iepeers.dll",
"iesetup.dll",
"imgutil.dll",
"inetcomm.dll",
"inetcpl.cpl",
"inseng.dll",
"isetup.dll",
"jscript.dll",
"laprxy.dll",
"mlang.dll",
"mshtml.dll",
"mshtmled.dll",
"msi.dll",
"msident.dll",
"msoeacct.dll",
"msrating.dll",
"mstime.dll",
"msxml3.dll",
"occache.dll",
"ole32.dll",
"oleaut32.dll",
"olepro32.dll",
"pngfilt.dll",
"quartz.dll",
"rpcrt4.dll",
"rsabase.dll",
"rsaenh.dll",
"scrobj.dll",
"scrrun.dll",
"shdocvw.dll",
"shell32.dll",
"urlmon.dll",
"vbscript.dll",
"webcheck.dll",
"wshcon.dll",
"wshext.dll",
"asctrls.ocx",
"hhctrl.ocx",
"mscomct2.ocx",
"plugin.ocx",
"proctexe.ocx",
"tdc.ocx",
"webcheck.dll",
"wshom.ocx"
];

var progressBar = setupWizard.progressBar(tr("Please wait..."));
var i = 1;
librariesToRegister.forEach(function(dll) {
progressBar.setProgressPercentage((i * 100) / librariesToRegister.length);
progressBar.setText(tr("Installing {0}...", dll));
wine.regsvr32().install(dll);
i++;
});

remove(wine.prefixDirectory() + "/drive_c/windows/system32/iexplore.exe");

new WineShortcut()
.name("Internet Explorer 6.0")
.prefix("InternetExplorer6")
.search("iexplore.exe")
.miniature([TYPE_ID, CATEGORY_ID, APPLICATION_ID])
.create();

var registrySettings = new AppResource().application([TYPE_ID, CATEGORY_ID, APPLICATION_ID]).get("ie6.reg");
wine.regedit().patch(registrySettings);

setupWizard.close();
var appsManager = Bean("repositoryManager");
var application = appsManager.getApplication([TYPE_ID, CATEGORY_ID, APPLICATION_ID]);
var setupWizard = SetupWizard(InstallationType.APPS, "Internet Explorer 6.0", application.getMainMiniature());

setupWizard.presentation("Internet Explorer 6.0", "Microsoft", "http://www.microsoft.com", "Quentin PÂRIS");

var setupFile = new Resource()
.wizard(setupWizard)
.url("http://files.playonlinux.com/ie/6.0/ie60.exe")
.checksum("8e483db28ff01a7cabd39147ab6c59753ea1f533")
.name("ie60.exe")
.get();

var wine = new Wine()
.wizard(setupWizard)
.prefix("InternetExplorer6", "upstream", "x86", LATEST_STABLE_VERSION)
.create()
.msls31();

wine.windowsVersion("win2k");

remove(wine.prefixDirectory() + "/drive_c/IE 6.0 Full/");
remove(wine.prefixDirectory() + "/drive_c/" + wine.programFiles() + "/Internet Explorer/iexplore.exe");

[
"itircl",
"itss",
"jscript",
"mlang",
"mshtml",
"msimtf",
"shdoclc",
"shdocvw",
"shlwapi",
"urlmon",
"browseui",
"iseng",
"inetcpl"
].forEach(function (dll) {
remove(wine.prefixDirectory() + "/drive_c/windows/system32/" + dll + ".dll");
});

wine.run(setupFile, [], null, false, true);

new CabExtract()
.wizard(setupWizard)
.archive(wine.prefixDirectory() + "/drive_c/IE 6.0 Full/ACTSETUP.CAB")
.to(wine.prefixDirectory() + "/drive_c/windows/system32/")
.extract(["-F", "inseng.dll"]);

wine.run("iexplore", ["-unregserver"], null, false, true);
wine
.overrideDLL()
.set("native", ["inseng"])
.do();
wine.runInsidePrefix("IE 6.0 Full/IE6SETUP.EXE", [], true);
wine
.overrideDLL()
.set("native,builtin", [
"inetcpl.cpl",
"itircl",
"itss",
"jscript",
"mlang",
"mshtml",
"msimtf",
"shdoclc",
"shdocvw",
"shlwapi",
"urlmon"
])
.do();

var librariesToRegister = [
"actxprxy.dll",
"browseui.dll",
"browsewm.dll",
"cdfview.dll",
"ddraw.dll",
"dispex.dll",
"dsound.dll",
"iedkcs32.dll",
"iepeers.dll",
"iesetup.dll",
"imgutil.dll",
"inetcomm.dll",
"inetcpl.cpl",
"inseng.dll",
"isetup.dll",
"jscript.dll",
"laprxy.dll",
"mlang.dll",
"mshtml.dll",
"mshtmled.dll",
"msi.dll",
"msident.dll",
"msoeacct.dll",
"msrating.dll",
"mstime.dll",
"msxml3.dll",
"occache.dll",
"ole32.dll",
"oleaut32.dll",
"olepro32.dll",
"pngfilt.dll",
"quartz.dll",
"rpcrt4.dll",
"rsabase.dll",
"rsaenh.dll",
"scrobj.dll",
"scrrun.dll",
"shdocvw.dll",
"shell32.dll",
"urlmon.dll",
"vbscript.dll",
"webcheck.dll",
"wshcon.dll",
"wshext.dll",
"asctrls.ocx",
"hhctrl.ocx",
"mscomct2.ocx",
"plugin.ocx",
"proctexe.ocx",
"tdc.ocx",
"webcheck.dll",
"wshom.ocx"
];

var progressBar = setupWizard.progressBar(tr("Please wait..."));
var i = 1;
librariesToRegister.forEach(function (dll) {
progressBar.setProgressPercentage((i * 100) / librariesToRegister.length);
progressBar.setText(tr("Installing {0}...", dll));
wine.regsvr32().install(dll);
i++;
});

remove(wine.prefixDirectory() + "/drive_c/windows/system32/iexplore.exe");

new WineShortcut()
.name("Internet Explorer 6.0")
.prefix("InternetExplorer6")
.search("iexplore.exe")
.miniature([TYPE_ID, CATEGORY_ID, APPLICATION_ID])
.create();

var registrySettings = new AppResource().application([TYPE_ID, CATEGORY_ID, APPLICATION_ID]).get("ie6.reg");
wine.regedit().patch(registrySettings);

setupWizard.close();
});
Loading