2020-06-05 22:09:17 +00:00
|
|
|
function Component()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Component.prototype.beginInstallation = function()
|
|
|
|
{
|
|
|
|
component.beginInstallation();
|
|
|
|
}
|
|
|
|
|
|
|
|
Component.prototype.createOperations = function()
|
|
|
|
{
|
|
|
|
component.createOperations();
|
2020-06-17 22:52:39 +00:00
|
|
|
let archs = ["x86", "x64"];
|
2020-06-05 22:09:17 +00:00
|
|
|
|
2020-06-17 22:52:39 +00:00
|
|
|
for (let i in archs) {
|
2020-10-09 12:06:02 +00:00
|
|
|
// Remove virtual cameras
|
2020-10-08 23:07:51 +00:00
|
|
|
if (installer.isUninstaller()) {
|
|
|
|
let managerPath =
|
|
|
|
installer.value("TargetDir")
|
|
|
|
+ "/"
|
|
|
|
+ archs[i]
|
|
|
|
+ "/AkVCamManager.exe";
|
2021-02-06 04:45:40 +00:00
|
|
|
component.addElevateOperation("Execute",
|
|
|
|
managerPath,
|
|
|
|
"remove-devices");
|
2020-10-08 23:07:51 +00:00
|
|
|
component.addElevatedOperation("Execute",
|
2021-02-06 04:45:40 +00:00
|
|
|
managerPath,
|
|
|
|
"update");
|
2020-10-08 23:07:51 +00:00
|
|
|
}
|
2020-10-09 12:06:02 +00:00
|
|
|
|
2020-06-17 22:52:39 +00:00
|
|
|
let assistantPath =
|
|
|
|
installer.value("TargetDir")
|
|
|
|
+ "/"
|
|
|
|
+ archs[i]
|
|
|
|
+ "/AkVCamAssistant.exe";
|
2020-06-05 22:09:17 +00:00
|
|
|
|
2020-06-17 22:52:39 +00:00
|
|
|
// Load assistant daemon.
|
2020-10-08 23:07:51 +00:00
|
|
|
if (installer.fileExists(assistantPath))
|
|
|
|
component.addElevatedOperation("Execute",
|
|
|
|
assistantPath, "--install",
|
|
|
|
"UNDOEXECUTE",
|
|
|
|
assistantPath, "--uninstall");
|
2020-06-17 22:52:39 +00:00
|
|
|
}
|
2020-06-05 22:09:17 +00:00
|
|
|
}
|