In a paint-spraying installation, two masks co-operate with the profiled bars that are to be partially coated.