Mark Richman
Mark Richman

Reputation: 29710

Getting progress events from WiX Deployment Tools Foundation

How can I get install progress events using the WiX Deployment Tools Foundation Microsoft.Deployment.WindowsInstaller.Installer.InstallProduct()?

I do not want any kind of UI, just an event that I can handle. I see references to the InstallMessage enum, which has a Progress member, but I'd like to see an example of its usage.

Upvotes: 1

Views: 472

Answers (2)

Bob Arnson
Bob Arnson

Reputation: 21886

Call Installer.EnableLog with InstallLogModes.Progress and Installer.SetExternalUI before Installer.InstallProduct. The delegate gets messages including InstallMessage.Progress.

Upvotes: 3

Christopher Painter
Christopher Painter

Reputation: 55571

Download the source to WiX and look in the src/DTF/Samples/EnbeddedUI project.

Upvotes: 2

Related Questions