Recently, I noticed the strange text mesages during installation of our MSI created in WiX 3.11 + VS 2017. I'm seeing "Copying new files File: [1], Directory: [9], Size [6]" text:
Similarly, I'm getting the following during uninstallation:
This happens on the latest Windows 10 Pro build 15063.296. I think I didn't notice this problem before. I tried the same installer on Win 7 that was not updated for some time and it worked correctly (or better):
I think I'm not alone, according to the screenshot on this page. But I couldn't find any information. Did you experience the same problem? If yes, is there a way to fix it?
I found the solution. All I needed was to add the following line inside the <Product> tag in my main wxs:
<UIRef Id="WixUI_ErrorProgressText" />
Explanation
Without the above mentioned line, my MSI package was using the stock messages inside Windows Installer for ActionText, see this tutorial. It seems, that in earlier versions of Windows, these messages were identical to those supplied by Wix. That's why I got the correct "Copying new files" in Win 7 but incorrect "Copying new files File: [1], Directory: [9], Size [6]" in the latest Win 10.
After adding a reference to WixUI_ErrorProgressText, the messages defined by Wix are used (these messages are correct) and everything is OK.
Note
In Wix, there's the following template defined as well (and this has confused me at first):
"File: [1], Directory: [9], Size [6]"
But if you expect to see the file names and their sizes during installation, you're wrong. The ProgressDlg in Wix doesn't display it. If you want this info, you need to override that dialog and add the ActionData text explicitly. I didn't test it. See how it's done in PrepareDlg.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With