Details
Description
I attempted to have my installer's component script add a firewall exception using the netsh utility on Windows. If any of the arguments I pass to the Execute operation contain spaces (even if they are correctly enclosed in double quotations) the operation fails.
Component script that fails:
component.addOperation( "Execute", "netsh", "advfirewall", "firewall", "add", "rule", "name=\"Has Space\"", //!< Fails due to space, even tho its in quotes "dir=in", "action=allow", "program=\"C:\\bad folder\\wtf.exe\"", //!< Fails due to space, even tho its in quotes "enable=yes" );
Error message from installer:
I have verified this operation will succeed if there are no spaces in the arguments.