[wix-users] Custom message before/after installing .NET Framework
Vanniekerk, Tyrel (GE Healthcare)
tyrel.vanniekerk at ge.com
Wed Jul 29 11:18:31 PDT 2020
Hi,
This is probably a rather odd case, but I have a prerequisite set up to install .NET Framework 4.8. This works fine most of the time (In the field they are saying the installer does not always start back up after reboot), but they are unhappy with the message that WiX Toolset shows. After the install, it shows a message that says "The requested operation is successful. Changes will not be effective until the system is rebooted." The message is shown in "src\ext\BalExtension\wixstdba\WixStandardBootstrapperApplication.cpp" in OnChangeState if a restart is required. Their complaint is that it has an OK/Cancel button and when you click OK, it reboots! What else were you expecting it to do!!!???!!! Ugh, sorry, sometimes... They say it's unexpected. I seriously don't know what they are expecting, but there you have it.
Is there any way to show some custom message before or after the .NET Framework install starts telling them that it might reboot? Honestly, this is so ridiculous it hurts, but that's what they are asking for.
Thanks,
Tyrel
P.S. This is the code snippet I use for the prerequisite:
<Fragment>
<util:RegistrySearchRef Id="NETFRAMEWORK45"/>
<WixVariable Id="WixMbaPrereqPackageId" Value="NetFx48Redist" />
<WixVariable Id="WixMbaPrereqLicenseUrl" Value="$(var.NetFx48EulaLink)" Overridable="yes" />
<WixVariable Id="NetFx48RedistDetectCondition" Value="NETFRAMEWORK45 >= $(var.NetFx48MinRelease)" Overridable="yes" />
<WixVariable Id="NetFx48RedistInstallCondition" Value="" Overridable="yes" />
<WixVariable Id="NetFx48RedistPackageDirectory" Value="redist\" Overridable="yes" />
<PackageGroup Id="NetFx48Redist">
<ExePackage
InstallCommand="/q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx48FullLog].html""
RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[NetFx48FullLog].html""
UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx48FullLog].html""
PerMachine="yes"
DetectCondition="!(wix.NetFx48RedistDetectCondition)"
InstallCondition="!(wix.NetFx48RedistInstallCondition)"
Id="NetFx48Redist"
Vital="yes"
Permanent="yes"
Protocol="netfx4"
DownloadUrl="$(var.NetFx48RedistLink)"
LogPathVariable="NetFx48FullLog"
Compressed="no"
Name="!(wix.NetFx48RedistPackageDirectory)ndp48-x86-x64-allos-enu.exe">
<RemotePayload
CertificatePublicKey="D17AFCE951979605250FAEBAFA7AE974899AED22"
CertificateThumbprint="C82273A065EC470FB1EBDE846A91E6FFB29E9C12"
Description="Microsoft .NET Framework 4.8 Setup"
Hash="8DD233698D5EB4609B86C2AC917279FE39E0EF4C"
ProductName="Microsoft .NET Framework 4.8"
Size="117380440"
Version="4.8.3928.0" />
</ExePackage>
</PackageGroup>
</Fragment>
More information about the wix-users
mailing list