Delete cameras before uninstall in Mac.
This commit is contained in:
parent
84d630e422
commit
5f68d6bfd2
2 changed files with 12 additions and 1 deletions
|
@ -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",
|
||||
|
|
|
@ -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")
|
||||
+ "/"
|
||||
|
|
Loading…
Reference in a new issue