Delete cameras before uninstall in Mac.

This commit is contained in:
Gonzalo Exequiel Pedone 2020-10-09 09:06:02 -03:00
parent 84d630e422
commit 5f68d6bfd2
No known key found for this signature in database
GPG key ID: B8B09E63E9B85BAF
2 changed files with 12 additions and 1 deletions

View file

@ -11,6 +11,16 @@ Component.prototype.createOperations = function()
{
component.createOperations();
// Remove virtual cameras
if (installer.isUninstaller()) {
component.addOperation("Execute",
"@TargetDir@/@Name@.plugin/Contents/Resources/AkVCamManager",
"remove-devices");
component.addOperation("Execute",
"@TargetDir@/@Name@.plugin/Contents/Resources/AkVCamManager",
"update");
}
// Remove old plugin
if (installer.isInstaller()) {
component.addOperation("ConsumeOutput",

View file

@ -13,6 +13,7 @@ Component.prototype.createOperations = function()
let archs = ["x86", "x64"];
for (let i in archs) {
// Remove virtual cameras
if (installer.isUninstaller()) {
let managerPath =
installer.value("TargetDir")
@ -24,7 +25,7 @@ Component.prototype.createOperations = function()
component.addElevatedOperation("Execute",
managerPath, "update");
}
let assistantPath =
installer.value("TargetDir")
+ "/"