[Qt Installer Framework] How to run a shell script after installation is finished?
-
wrote on 11 Jan 2021, 06:54 last edited by
Hi. I'm trying to run a shell script after my Linux installer has finished installation.
In Windows, I had to run a batch script after installation is finished. For that, I had used:
if (installer.isInstaller() && installer.status = QInstaller.Success) { QDesktopServices.openUrl("file:///" + installer.value("TargetDir") + "test.bat"); }
The above worked in Windows. But doing the same does not work for shell script, i.e., replacing
test.bat
with mytest.sh
will simply open the shell script file in gedit instead of executing it. Yes, I have given execution permission to the shell script file.Please help me here.
-
Hi. I'm trying to run a shell script after my Linux installer has finished installation.
In Windows, I had to run a batch script after installation is finished. For that, I had used:
if (installer.isInstaller() && installer.status = QInstaller.Success) { QDesktopServices.openUrl("file:///" + installer.value("TargetDir") + "test.bat"); }
The above worked in Windows. But doing the same does not work for shell script, i.e., replacing
test.bat
with mytest.sh
will simply open the shell script file in gedit instead of executing it. Yes, I have given execution permission to the shell script file.Please help me here.
-
wrote 26 days ago last edited by Nalizhi
Thank you for your help.I consider that the point is that executing .sh should be in Component when status of installer is Succcess.