akvirtualcamera/ports/deploy/installscript.windows.qs
Gonzalo Exequiel Pedone 4e3b9ba303
Window installer working.
2020-06-17 19:52:39 -03:00

31 lines
768 B
Text

function Component()
{
}
Component.prototype.beginInstallation = function()
{
component.beginInstallation();
}
Component.prototype.createOperations = function()
{
component.createOperations();
let archs = ["x86", "x64"];
for (let i in archs) {
let assistantPath =
installer.value("TargetDir")
+ "/"
+ archs[i]
+ "/AkVCamAssistant.exe";
if (!installer.fileExists(assistantPath))
continue;
// Load assistant daemon.
component.addElevatedOperation("Execute",
assistantPath, "--install",
"UNDOEXECUTE",
assistantPath, "--uninstall");
}
}