akvirtualcamera/ports/deploy/installscript.windows.qs

32 lines
768 B
Text
Raw Normal View History

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) {
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
if (!installer.fileExists(assistantPath))
continue;
// Load assistant daemon.
component.addElevatedOperation("Execute",
assistantPath, "--install",
"UNDOEXECUTE",
assistantPath, "--uninstall");
}
2020-06-05 22:09:17 +00:00
}