MSIEXEC /f option can reboot machine

Support for Windows Server 2003 ended on July 14, 2015

Microsoft ended support for Windows Server 2003 on July 14, 2015. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article has been archived. It is offered "as is" and will no longer be updated.
Source: Microsoft Support
RAPID PUBLISHING
RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.
Symptom


Citrix/Terminal Server rebooted after an MSI installed product was repaired using /f option, even though the property REBOOT=ReallySuppress was specified.
Cause


/f option ignores properties.

/norestart is not an option since it translates to the same property value, which is then dropped from the command line.
Resolution


Use /i REINSTALLMODE=omus REBOOT=ReallySupress to repair a package without a reboot.
More Information


/i will achieve a similar function, and it will correctly use the passed in properties. A debug shows that /i with REINSTALLMODE=omus was identical to /fomus, if the package is specified via GUID.

 

Actually the two command lines do not both enter MsiReInstallProduct, however internally they both end up in ConfiureOrReinstallFeatureOrProduct and subsequently RunEngine, as you can see from the two stack traces:

 

/i:

 

0:000> kL

ChildEBP RetAddr

0007d734 7d2f91a7 msi!RunEngine+0x5

0007d7e4 7d293a72 msi!ConfigureOrReinstallFeatureOrProduct+0x1d5

0007d87c 01007790 msi!MsiConfigureProductExW+0xe1

0007dab0 01007ea8 msiexec!ConfigureOrRemoveProduct+0x9c

0007dac0 01009d54 msiexec!InstallPackage+0x1c

0007fee0 0100a8f2 msiexec!ServerMain+0x9c8

0007ff1c 0100f4a8 msiexec!WinMain+0x34

0007ffc0 7c816fd7 msiexec!WinMainCRTStartup+0x186

0007fff0 00000000 kernel32!BaseProcessStart+0x23

 

0:000> du 0x000a8900

000a8900 " REINSTALLMODE=fomus "

 

 

/f:

 

0:000> kL

ChildEBP RetAddr

0007ceac 7d2f91a7 msi!RunEngine+0x5

0007cf5c 7d282ba1 msi!ConfigureOrReinstallFeatureOrProduct+0x1d5

0007cf94 01007e71 msi!MsiReinstallProductW+0x72

0007dac0 01009d54 msiexec!RepairPackage+0x281

0007fee0 0100a8f2 msiexec!ServerMain+0x9c8

0007ff1c 0100f4a8 msiexec!WinMain+0x34

0007ffc0 7c816fd7 msiexec!WinMainCRTStartup+0x186

0007fff0 00000000 kernel32!BaseProcessStart+0x23

0:000> du 0x000a88f0

000a88f0 " REINSTALL=ALL REINSTALLMODE=omu"

000a8930 "s"

 
DISCLAIMER
MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.
Properties

Article ID: 961883 - Last Review: 01/16/2015 03:32:14 - Revision: 2.0

Microsoft Windows Server 2003, Standard Edition (32-bit x86), Microsoft Windows Server 2003, Enterprise Edition (32-bit x86), Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)

  • kbnosurvey kbarchive kbnomt kbrapidpub KB961883
Feedback