[wix-devs] Change for defect #5395

Vanniekerk, Tyrel (GE Healthcare) tyrel.vanniekerk at ge.com
Fri Jul 31 06:29:00 PDT 2020


Hi,

I am responsible for several of our installers that I converted from InstallShield to WiX Toolset.  Some of our service people have complained about the dialog that shows up to tell you that it needs to reboot after installing .NET Framework.  They were surprised that when they clicked OK on a dialog that says the installer needs to reboot to continue, it rebooted.  Probably about as surprised as when a politician does something they said they would do during the elections.  😊

https://github.com/wixtoolset/issues/issues/5395

I got the code to compile using the build guide and had to install a few extra bits for VS 2019, but it seems to work now.  I found the code in question and made the following change.

From:
int nResult = ::MessageBoxW(m_hWnd, sczUnformattedText ? sczUnformattedText : L"The requested operation is successful. Changes will not be effective until the system is rebooted.", m_pTheme->sczCaption, MB_ICONEXCLAMATION | MB_OKCANCEL);

To:
int nResult = ::MessageBoxW(m_hWnd, sczUnformattedText ? sczUnformattedText : L"The requested operation is successful. Changes will not be effective until the system is rebooted.\r\nOK to reboot, Cancel to exit.", m_pTheme->sczCaption, MB_ICONEXCLAMATION | MB_OKCANCEL);

Would this be an acceptable solution to this issue?  If so, I will figure out how to create a pull request etc. to get the change submitted.

Thanks,
Tyrel





More information about the wix-devs mailing list