locked
Failed Exchange 2016 CU2 install RRS feed

  • Question

  • On a fresh install of Windows server 2012 R2 I tried to install Exchange 2016 CU2. I ran the command "setup /Mode:Install /Role:Mailbox /TargetDir:"D:\Program Files\Microsoft\Exchange Server\V15" /IAcceptExchangeServerLicenseTerms".  It actually still installed into "C:\Program Files\Microsoft\Exchange Server\V15" and failed.  It did appear in "Programs and Features" so I tried to uninstall it from there.  Gives an error that says imcomplete installation was detected and to run setup again to complete.  So I run the setup command again to try again and it gives this:

    Welcome to Microsoft Exchange Server 2016 Cumulative Update 2 Unattended Setup
    Languages
    Mailbox role: Transport service
    Mailbox role: Client Access service
    Mailbox role: Unified Messaging service
    Mailbox role: Mailbox service
    Mailbox role: Front End Transport service
    Mailbox role: Client Access Front End service
    The target directory was specified but cannot be changed.
    File exchangeserver.msi does not exist in specified directory
     D:\Program,Files\Microsoft\Exchange,Server\V15\bin.
    The Exchange Server setup operation didn't complete. More details can be found
    in ExchangeSetup.log located in the <SystemDrive>:\ExchangeSetupLogs folder.

    Why is it putting comas in the pat where spaces should be??

    I look in the ExchangeSetup.log and see this line: [ERROR] File exchangeserver.msi does not exist in specified directory D:\Program,Files\Microsoft\Exchange,Server\V15\bin.

    Any help would be greatly appreciated to get Exchange uninstalled so I can get it installed on the D: drive instead of the C: drive.  Thanks!!! 

    Friday, June 24, 2016 7:32 PM

Answers

  • You've ran into a setup bug. The first time you run setup you need to specify the target install directory. But if setup fails and you rerun, setup notices that the target directory has been set the previous time you ran setup and errors out. What it should do is check to see if the target directory being given matches what it remembers the target directory is from last time. If it's different it can error out, but if it's the same it should let things go. If you're running install a second time don't put the target directory, and setup will use what was specified the first time the command was run.
    • Marked as answer by David-Mac Tuesday, July 5, 2016 3:49 PM
    Wednesday, June 29, 2016 9:08 AM

All replies

  • Hi David,

    Welcome to our forum.

    please post error when "It actually still installed into "C:\Program Files\Microsoft\Exchange Server\V15" and failed" to us for troubleshooting.

    By this issue, we suggest you run the following command to check if the error persist:

    Setup /Mode:Install /Role:Mailbox /TargetDir:"D:\Exchange"

    In addition, please navigate to setup.exe path to run this command.

    If the issue persist, please post a snapshot which is about command running in CMD to us.

    Best Regard,

    Jim Xu

    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Jim Xu
    TechNet Community Support

    Monday, June 27, 2016 5:46 AM
  • Hi David,

    Is there any update for this thread?

    If the above suggestions are helpful to you, please mark it as answer so that someone who has similar issue could find this thread as soon as possible.

    Best Regard,

    Jim Xu

    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Jim Xu
    TechNet Community Support

    Tuesday, June 28, 2016 10:24 AM
  • Try to run this command from administrative console. Windows powershell sometime doesn't find the file without .\.

    .\Setup.exe /mode:Install /role:Mailbox /TargetDir:"D:\Exchange Server" /IAcceptExchangeServerLicenseTerms

    Tuesday, June 28, 2016 10:50 AM
  • Apologies for the delay in updating.  I will try to update later today.

    Thank you

    Tuesday, June 28, 2016 1:26 PM
  • Thanks for the input.
    It was run from an elevated command prompt, not PowerShell.
    When I run “Setup /Mode:Install /Role:Mailbox /TargetDir:"D:\Exchange” /IAcceptExchangeServerLicenseTerms it gives error:

    Text version of the error:
    --------------------------------------------------------
    C:\Exch 2016 CU2 DVD>Setup /Mode:Install /Role:Mailbox /TargetDir:"D:\Exchange"
    /IAcceptExchangeServerLicenseTerms
    Welcome to Microsoft Exchange Server 2016 Cumulative Update 2 Unattended Setup
    Copying Files...
    File copy complete. Setup will now collect additional information needed for
    installation.
    Languages
    Mailbox role: Transport service
    Mailbox role: Client Access service
    Mailbox role: Unified Messaging service
    Mailbox role: Mailbox service
    Mailbox role: Front End Transport service
    Mailbox role: Client Access Front End service
    The target directory was specified but cannot be changed.
    The Exchange Server setup operation didn't complete. More details can be found
    in ExchangeSetup.log located in the <SystemDrive>:\ExchangeSetupLogs folder.
    C:\Exch 2016 CU2 DVD>

    -----------------------------------------------

    From ExchangeSetup.log
    [06/28/2016 13:47:26.0300] [0] **********************************************
    [06/28/2016 13:47:26.0300] [0] Starting Microsoft Exchange Server 2016 Setup
    [06/28/2016 13:47:26.0300] [0] **********************************************
    [06/28/2016 13:47:26.0315] [0] Local time zone: (UTC-06:00) Central Time (US & Canada).
    [06/28/2016 13:47:26.0315] [0] Operating system version: Microsoft Windows NT 6.2.9200.0.
    [06/28/2016 13:47:26.0315] [0] Setup version: 15.1.466.34.
    [06/28/2016 13:47:26.0315] [0] Logged on user: domain-name\administrator.
    [06/28/2016 13:47:26.0440] [0] Command Line Parameter Name='mode', Value='Install'.
    [06/28/2016 13:47:26.0440] [0] Command Line Parameter Name='roles', Value='Microsoft.Exchange.Management.Deployment.RoleCollection'.
    [06/28/2016 13:47:26.0440] [0] Command Line Parameter Name='targetdir', Value='D:\Exchange'.
    [06/28/2016 13:47:26.0440] [0] Command Line Parameter Name='iacceptexchangeserverlicenseterms', Value=''.
    [06/28/2016 13:47:26.0440] [0] Command Line Parameter Name='sourcedir', Value='C:\Exch 2016 CU2 DVD'.
    [06/28/2016 13:47:26.0456] [0] RuntimeAssembly was started with the following command: '/Mode:Install /Role:Mailbox /TargetDir:D:\Exchange /IAcceptExchangeServerLicenseTerms /sourcedir:C:\Exch 2016 CU2 DVD'.
    [06/28/2016 13:47:26.0456] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\v8.0, wasn't found.
    [06/28/2016 13:47:26.0456] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14, wasn't found.
    [06/28/2016 13:47:26.0456] [0] Copying Files...
    [06/28/2016 13:47:26.0456] [0] Starting copy from C:\Exch 2016 CU2 DVD\Setup\ServerRoles\Common to C:\Windows\Temp\ExchangeSetup.
    [06/28/2016 13:47:49.0581] [0] Finished copy from C:\Exch 2016 CU2 DVD\Setup\ServerRoles\Common to C:\Windows\Temp\ExchangeSetup.
    [06/28/2016 13:47:49.0581] [0] File copy complete.  Setup will now collect additional information needed for installation.

    [06/28/2016 13:47:49.0596] [0] Assembly dll file location is C:\Windows\Temp\ExchangeSetup\Microsoft.Exchange.Setup.Console.dll
    [06/28/2016 13:47:53.0081] [0] Setup is choosing the domain controller to use
    [06/28/2016 13:47:53.0299] [0] The MSExchangeADTopology has a persisted domain controller: DC1.domain-name.LOCAL
    [06/28/2016 13:47:54.0909] [0] PrepareAD has been run, and has replicated to this domain controller; so setup will use HVDC01.domain-name.LOCAL
    [06/28/2016 13:47:54.0909] [0] Setup is choosing a global catalog...
    [06/28/2016 13:47:54.0940] [0] Setup has chosen the global catalog server DC1.domain-name.LOCAL.
    [06/28/2016 13:47:54.0956] [0] Setup will use the domain controller 'DC1.domain-name.LOCAL'.
    [06/28/2016 13:47:54.0956] [0] Setup will use the global catalog 'DC1.domain-name.LOCAL'.
    [06/28/2016 13:47:54.0956] [0] Exchange configuration container for the organization is 'CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain-name,DC=LOCAL'.
    [06/28/2016 13:47:54.0956] [0] Exchange organization container for the organization is 'CN=org-namedomain-name,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain-name,DC=LOCAL'.
    [06/28/2016 13:47:54.0971] [0] Setup will search for an Exchange Server object for the local machine with name 'server-name'.
    [06/28/2016 13:47:55.0112] [0] Exchange Server object found : 'CN=server-name,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=org-namedomain-name,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain-name,DC=LOCAL'.
    [06/28/2016 13:47:55.0174] [0] The following roles have been unpacked: BridgeheadRole ClientAccessRole MailboxRole UnifiedMessagingRole FrontendTransportRole AdminToolsRole CafeRole
    [06/28/2016 13:47:55.0190] [0] The following datacenter roles are unpacked:
    [06/28/2016 13:47:55.0190] [0] The following roles are installed: BridgeheadRole AdminToolsRole
    [06/28/2016 13:47:55.0190] [0] The local server has some Exchange files installed.
    [06/28/2016 13:47:55.0237] [0] Server Name=server-name
    [06/28/2016 13:47:55.0252] [0] Setup will use the path 'C:\Exch 2016 CU2 DVD' for installing Exchange.
    [06/28/2016 13:47:55.0252] [0] Setup will discover the installed roles from server object 'CN=server-name,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=org-namedomain-name,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain-name,DC=LOCAL'.
    [06/28/2016 13:47:55.0252] [0] 'BridgeheadRole' is installed on the server object.
    [06/28/2016 13:47:55.0252] [0] 'ClientAccessRole' is installed on the server object.
    [06/28/2016 13:47:55.0252] [0] The installation mode is set to: 'Install'.
    [06/28/2016 13:47:56.0424] [0] An Exchange organization with name 'org-namedomain-name' was found in this forest.
    [06/28/2016 13:47:56.0424] [0] Active Directory Initialization status : 'True'.
    [06/28/2016 13:47:56.0424] [0] Schema Update Required Status : 'False'.
    [06/28/2016 13:47:56.0424] [0] Organization Configuration Update Required Status : 'False'.
    [06/28/2016 13:47:56.0424] [0] Domain Configuration Update Required Status : 'False'.
    [06/28/2016 13:47:56.0424] [0] The locally installed version is 15.1.466.34.
    [06/28/2016 13:47:56.0424] [0] Exchange Installation Directory : 'D:\Program,Files\Microsoft\Exchange,Server\V15'.
    [06/28/2016 13:47:56.0502] [0] Applying default role selection state
    [06/28/2016 13:47:56.0534] [0] Setup is determining what organization-level operations to perform.
    [06/28/2016 13:47:56.0534] [0] Because the value was specified, setup is setting the argument OrganizationName to the value Org-name domain-name.
    [06/28/2016 13:47:56.0534] [0] Setup will run from path 'D:\Program,Files\Microsoft\Exchange,Server\V15\'.
    [06/28/2016 13:47:56.0549] [0] InstallModeDataHandler has 13 DataHandlers
    [06/28/2016 13:47:56.0549] [0] RootDataHandler has 1 DataHandlers
    [06/28/2016 13:47:56.0549] [0]      Languages
    [06/28/2016 13:47:56.0549] [0]      Mailbox role: Transport service
    [06/28/2016 13:47:56.0549] [0]      Mailbox role: Client Access service
    [06/28/2016 13:47:56.0549] [0]      Mailbox role: Unified Messaging service
    [06/28/2016 13:47:56.0549] [0]      Mailbox role: Mailbox service
    [06/28/2016 13:47:56.0549] [0]      Mailbox role: Front End Transport service
    [06/28/2016 13:47:56.0549] [0]      Mailbox role: Client Access Front End service
    [06/28/2016 13:47:56.0565] [0] Validating options for the 6 requested roles
    [06/28/2016 13:47:56.0581] [0] [ERROR] The target directory was specified but cannot be changed.
    [06/28/2016 13:47:56.0581] [0] CurrentResult console.ProcessRunInternal:90: 1
    [06/28/2016 13:47:56.0581] [0] CurrentResult launcherbase.maincore:90: 1
    [06/28/2016 13:47:56.0581] [0] CurrentResult console.startmain:52: 1
    [06/28/2016 13:47:56.0581] [0] CurrentResult SetupLauncherHelper.loadassembly:452: 1
    [06/28/2016 13:47:56.0581] [0] The Exchange Server setup operation didn't complete.  More details can be found in ExchangeSetup.log located in the <SystemDrive>:\ExchangeSetupLogs folder.
    [06/28/2016 13:47:56.0581] [0] CurrentResult main.run:235: 1
    [06/28/2016 13:47:56.0581] [0] CurrentResult setupbase.maincore:396: 1
    [06/28/2016 13:47:56.0581] [0] End of Setup
    [06/28/2016 13:47:56.0581] [0] **********************************************

    Thanks all for the input!!

    Tuesday, June 28, 2016 2:05 PM
  • Here is the screen shot of the error when running the setup command from elevated command prompt.
    Tuesday, June 28, 2016 2:07 PM
  • Hi David,

    Please run the following command which /targetDir parameter is not included:

    .\Setup.exe /mode:Install /role:Mailbox /IAcceptExchangeServerLicenseTerms

    Best Regard,

    Jim Xu

    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Jim Xu
    TechNet Community Support

    Wednesday, June 29, 2016 8:45 AM
  • You've ran into a setup bug. The first time you run setup you need to specify the target install directory. But if setup fails and you rerun, setup notices that the target directory has been set the previous time you ran setup and errors out. What it should do is check to see if the target directory being given matches what it remembers the target directory is from last time. If it's different it can error out, but if it's the same it should let things go. If you're running install a second time don't put the target directory, and setup will use what was specified the first time the command was run.
    • Marked as answer by David-Mac Tuesday, July 5, 2016 3:49 PM
    Wednesday, June 29, 2016 9:08 AM
  • Hi David,

    Welcome to our forum.

    Is there any update for this thread?

    If the above suggestions are helpful to you, please mark it as answer so that someone who has similar issue could find this thread as soon as possible.

    Best Regard,

    Jim Xu


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Jim Xu
    TechNet Community Support

    Thursday, June 30, 2016 7:56 AM
  • Results in elevated command prompt:
    C:\Windows\system32>Setup.exe /mode:Install /role:Mailbox /IAcceptExchangeServerLicenseTerms
    Welcome to Microsoft Exchange Server 2016 Cumulative Update 2 Unattended Setup
    Languages
    Mailbox role: Transport service
    Mailbox role: Client Access service
    Mailbox role: Unified Messaging service
    Mailbox role: Mailbox service
    Mailbox role: Front End Transport service
    Mailbox role: Client Access Front End service
    File exchangeserver.msi does not exist in specified directory
     D:\Program,Files\Microsoft\Exchange,Server\V15\bin.
    The Exchange Server setup operation didn't complete. More details can be found
    in ExchangeSetup.log located in the <SystemDrive>:\ExchangeSetupLogs folder.

    So I copied exchangeserver.msi from the install media into "D:\Program,Files\Microsoft\Exchange,Server\V15\bin" and setup ran but still gives this error:

    C:\Windows\system32>Setup.exe /mode:Install /role:Mailbox /IAcceptExchangeServerLicenseTerms
    Welcome to Microsoft Exchange Server 2016 Cumulative Update 2 Unattended Setup
    Languages
    Mailbox role: Transport service
    Mailbox role: Client Access service
    Mailbox role: Unified Messaging service
    Mailbox role: Mailbox service
    Mailbox role: Front End Transport service
    Mailbox role: Client Access Front End service
    Performing Microsoft Exchange Server Prerequisite Check
        Configuring Prerequisites                                 COMPLETED
        Prerequisite Analysis                                     FAILED
    A Setup failure previously occurred while installing the ClientAccessRole role.
    Either run Setup again for just this role, or remove the role using Control
    Panel.
    For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.InstallWatermark.aspx
    The Exchange Server setup operation didn't complete. More details can be found
    in ExchangeSetup.log located in the <SystemDrive>:\ExchangeSetupLogs folder.

    Thanks for any assistance.

    Thursday, June 30, 2016 9:10 PM
  • Hi David,

    Please re-run Exchange 2016 prerequisites, then run setup to check if the issue persist:

    https://technet.microsoft.com/en-us/library/bb691354(v=exchg.160).aspx 

    Best Regard,

    Jim Xu

    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Jim Xu
    TechNet Community Support

    Friday, July 1, 2016 9:00 AM
  • Hi David,

    Is there any update for this thread?

    If the above suggestions are helpful to you, please mark it as answer so that someone who has similar issue could find this thread as soon as possible.

    Best Regard,

    Jim Xu

    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Jim Xu
    TechNet Community Support

    Monday, July 4, 2016 8:18 AM
  • I was finally able to uninstall it and the run set for the GUI and reinstall and browse to the directory I wanted to install in.

    The post can be closed.

    Thanks for all the input.

    Tuesday, July 5, 2016 3:50 PM
  • How did you finally uninstall? and where did you locate exchangeserver.msi?

    Thanks in advance

    Sunday, December 24, 2017 4:25 AM
  • Its been a while back so I don't remember all the details but I think I ended up manually creating the install path manually "D:\Program Files\Microsoft\Exchange Server\V15”.  Then ran the GUI setup and browsed to the path I created and it finished the install.  Sorry for not remembering all the details.  Hope it helps.
    Tuesday, December 26, 2017 2:18 PM