[Qt Installer Framework] How to run a shell script after installation is finished?
-
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.