CPack/NSIS: preinstall commands runs after components are installed
NSIS installer generated by CPack put commands from CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS
after processing of the components section, which is not very logical.
For example: when needed to kill process silently before coping (updating) target files:
- in case of installer without components will executed correctly
- in case if installer support components, kill will be executed only after an attempt to coping components files, which might be useless.