Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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?


  • Moderators

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


Log in to reply