Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [QT INSTALLER FW] register custom actions (encryption, adding font)
Forum Updated to NodeBB v4.3 + New Features

[QT INSTALLER FW] register custom actions (encryption, adding font)

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Charlie37
    wrote on 31 Oct 2013, 15:38 last edited by
    #1

    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.html

    Where 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

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Charlie37
      wrote on 6 Nov 2013, 10:44 last edited by
      #2

      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");
      }@

      1 Reply Last reply
      1

      1/2

      31 Oct 2013, 15:38

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved