[QT INSTALLER FW] register custom actions (encryption, adding font)
-
Hi everyone, I'm using Qt Installer Framework (on Windows 7) and it works fine :)
I'm fairly new to Qt Script and wondered how to register certain operations.I've read the documentation:
http://doc-snapshot.qt-project.org/qtifw-1.4/scripting.html
http://doc-snapshot.qt-project.org/qtifw-1.4/operations.htmlWhere do we register those custom operations ? in the file installscript.qs ?
Is it possible to register more specific operations, like encrypting an installed directory (to prevent the user from reading the files it contains), or installing a new font (if it does not already exist) ?Thanks a lot
-
UPDATE: I know the operations can be added after installation using the method installationFinished()
but it seems not to be working, even a simple Copy or CreateShortcut...@Component.prototype.installationFinished = function()
{
component.addOperation("CreateShortcut",
"path/launcher.exe",
"@StartMenuDir@/launcher.lnk",
"workingDirectory="+workingDirectory,
"iconPath="+iconDirectory+"/logo.ico");
}@