rmdir doesn't have /S flag in smbclient context
Delete installer file first to empty the directory
only check for keep_temp once
Merge pull request #8715 from UtahDave/develop

Properly delete temporary directory and installer on Windows