diff --git a/Misc/NEWS b/Misc/NEWS
index 2ed64911724..36cb6e4db3d 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -150,6 +150,8 @@ Build
Windows
-------
+- Issue #25102: Windows installer does not precompile for -O or -OO.
+
- Issue #25081: Makes Back button in installer go back to upgrade page when
upgrading.
diff --git a/Tools/msi/bundle/bundle.wxl b/Tools/msi/bundle/bundle.wxl
index 684e0dac4e3..d7a65c48dc4 100644
--- a/Tools/msi/bundle/bundle.wxl
+++ b/Tools/msi/bundle/bundle.wxl
@@ -2,4 +2,6 @@
C Runtime Update (KB2999226)
Precompiling standard library
+ Precompiling standard library (-O)
+ Precompiling standard library (-OO)
diff --git a/Tools/msi/bundle/packagegroups/postinstall.wxs b/Tools/msi/bundle/packagegroups/postinstall.wxs
index 7b0f3fc818e..b40c2a5a305 100644
--- a/Tools/msi/bundle/packagegroups/postinstall.wxs
+++ b/Tools/msi/bundle/packagegroups/postinstall.wxs
@@ -40,23 +40,64 @@
-
+
+
+
+
+
+