Windows builds failing

Hi,
here is a fix for the windows builds.
The promise never resolved if the `winIco` option is set to `false`.