Some trainers work with both and some are made specifically for Steam version. Some will work with Steam with the use of a no-cd fix. We do not own DS1 on Steam so I cannot comment.
Trainer works with Steam. Just start the game FIRST, THEN the trainer and it all works (for me, so far).