Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
3.2.0
-
None
Description
I customized my installer to make it able to do an automatic uninstallation when the user override a previous installation. To do that I have to launch the maintenance binary that is in the target folder.
I use the simple following code on Windows:
installer.execute("\"" + dir + "/maintenancetool.exe\"", "--script=" + dir + "/scripts/auto_uninstall.js");
When on Linux I need to do:
installer.execute("sh", ["-c" , "\"" + dir + "/maintenancetool\" --script=\"" + dir + "/scripts/auto_uninstall.js\""]);
It was pretty hard and long to figure that execute function on linux only accept few shell commands and how I have to pass the arguments.
I am expecting to same behavior or a least a better documentation with precise examples of what is working and what is not.
I think that this issue may also affect the operation "Execute" (launch with addOperation and performOperation).