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. Call createshortcut when updating with Qt Installer FW fails
Forum Updated to NodeBB v4.3 + New Features

Call createshortcut when updating with Qt Installer FW fails

Scheduled Pinned Locked Moved Solved General and Desktop
qtifwinstaller frameinstaller
3 Posts 2 Posters 1.3k 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.
  • S Offline
    S Offline
    SamiN
    wrote on last edited by SamiN
    #1

    I am trying to make a update to my existing package. In current package there is a operation which add's a desktop shortcut pointing to my app. When running maintenance tool update the old package undo operation remove that shortcut. On new package's createOperation I only have creation of shortcut (same code than first version has), but when running from update respository this shortcut is newer seen. Old application is removed and new one is updated but shortcut is not shown. Strange is that when I run maintenance tool with -v debugging it works!

    I have tried performOperation, addOperation and addElevatedOperation to achieve this but with no success.

    UPDATE 26.4.2017: Currently I am working with QTIFW3.0 branch because I am using --silentUpdate option in maintenancetool to make update in background. Development OS is Windows 10 64bit, but Mac is also a target for deployment (but that is different story...).

    Br,
    -sami

    S 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should add the version of the installer framework you are using as well as target OS.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S SamiN

        I am trying to make a update to my existing package. In current package there is a operation which add's a desktop shortcut pointing to my app. When running maintenance tool update the old package undo operation remove that shortcut. On new package's createOperation I only have creation of shortcut (same code than first version has), but when running from update respository this shortcut is newer seen. Old application is removed and new one is updated but shortcut is not shown. Strange is that when I run maintenance tool with -v debugging it works!

        I have tried performOperation, addOperation and addElevatedOperation to achieve this but with no success.

        UPDATE 26.4.2017: Currently I am working with QTIFW3.0 branch because I am using --silentUpdate option in maintenancetool to make update in background. Development OS is Windows 10 64bit, but Mac is also a target for deployment (but that is different story...).

        Br,
        -sami

        S Offline
        S Offline
        SamiN
        wrote on last edited by SamiN
        #3

        @SamiN This seemed to be quite straight forward to solve. I created my shortcuts under user desktop area, but when running maintenance tool from service using qtservice it most probably didn't have that 'user' setup in place so trying to add shortcut to desktop failed. Changed location of the shortcut to c:\users\public\desktop seems to help on this one.

        Br,
        -sami

        1 Reply Last reply
        0

        • Login

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