msi: Only run the CreateFolder and RemoveFolder actions when the component is set to be installed or removed, respectively.