Wrap installation code to transaction