Some code to work with installing PE.