09e3b6ad3a
Added sub-command for dumping all posssible information about the devices and configurations in XML format. Added sub-command for listening global events. Added sub-command for showing virtual camera version. Now the manager recognises negative numbers as arguments instead as an option. The manager can execute sub-commands as root when required. Fixed installer. The virtual camera is working fine in both Mac and Windows.
44 lines
1.3 KiB
Text
44 lines
1.3 KiB
Text
function Component()
|
|
{
|
|
}
|
|
|
|
Component.prototype.beginInstallation = function()
|
|
{
|
|
component.beginInstallation();
|
|
}
|
|
|
|
Component.prototype.createOperations = function()
|
|
{
|
|
component.createOperations();
|
|
let archs = ["x86", "x64"];
|
|
|
|
for (let i in archs) {
|
|
// Remove virtual cameras
|
|
if (installer.isUninstaller()) {
|
|
let managerPath =
|
|
installer.value("TargetDir")
|
|
+ "/"
|
|
+ archs[i]
|
|
+ "/AkVCamManager.exe";
|
|
component.addElevateOperation("Execute",
|
|
managerPath,
|
|
"remove-devices");
|
|
component.addElevatedOperation("Execute",
|
|
managerPath,
|
|
"update");
|
|
}
|
|
|
|
let assistantPath =
|
|
installer.value("TargetDir")
|
|
+ "/"
|
|
+ archs[i]
|
|
+ "/AkVCamAssistant.exe";
|
|
|
|
// Load assistant daemon.
|
|
if (installer.fileExists(assistantPath))
|
|
component.addElevatedOperation("Execute",
|
|
assistantPath, "--install",
|
|
"UNDOEXECUTE",
|
|
assistantPath, "--uninstall");
|
|
}
|
|
}
|