You need a custom bootstrapper application to do that. Override OnDetectBegin and test Command.Restart value -- https://JetBA.net - Native and WPF WiX BootstrapperApplication Frameworks