Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Installer How to open custom file with custom application after install?
Forum Updated to NodeBB v4.3 + New Features

Qt Installer How to open custom file with custom application after install?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 509 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.
  • A Offline
    A Offline
    aido
    wrote on last edited by aido
    #1

    Hello!

    I tried to run script after install but unsuccesfully. Here is a sample code:

    function Component()
    {
        installer.installationFinished.connect(this, Component.prototype.installationFinishedScript);
    }
    
    Component.prototype.installationFinishedScript = function()
    {
        component.addOperation("Execute", "\"%SYSTEMDRIVE%\\Program Files\\Git\\bin\\sh.exe\""+installer.value("TargetDir")+"/app_name/post_install.sh")
    }
    

    How to run some script after installation?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You have no space between sh.exe and your target dir.

      (Z(:^

      1 Reply Last reply
      1

      • Login

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