You need a runtime action for that like SetDirectorty -- Nir Bar, Independent WiX Expert. Creator of- JetBA: WiX WPF Bootstrapper User Interface Framework JetBA++: WiX Native Bootstrapper User Interface Framework