Silent installation msi

1

0x80070652 - when installing VS 2012 C++ redistributables. Hi All,

I have a weird issue for the last few days now, i've been looking for a solution in the forums, google etc. So far, couldn't find a similar problem:

Scenario:

  1. I have an "Basic MSI" project that deploy our company product.
  2. everything worked OK till i needed to add installation of VS 2012 C++ redistributables.
  3. i'm using the installscript to initiate a command line for installing it quietly - 'vcredist_x64.exe /q'.
  4. if the custom action is being added to the execute sequance, the following error is coming from the "VS 2012 C++ redistributables. - ERROR 0X80070652: ERROR_INSTALL_ALREADY_RUNNING.This error is due to Another installation is already in progress. Complete that installation before proceeding with this install.
  5. if running it manually, regardless to the IS installation, everything is working perfectly.
  6. Also, when the custom action is on the UI sequance - works great. - i cannot leave it on the UI sequance, since our product is being deployed quietly along with our product client.
  7. I've been trying to change into a different project type - "installscript MSI"... Same error.

Please advise, thanks for any inputs.

installshield
asked on Stack Overflow Jan 15, 2021 by vinoth kumar

1 Answer

0

Short Answer: You can't run this executable from inside your MSI for technical reasons, you should run them in sequence instead. First the executable, then your MSI (batch file or manually). Or you should make an executable that runs them in sequence (WiX Bundle for example).


VCRedist: The VS 2012 C++ redistributable vcredist_x64.exe is a WiX Bundle with a couple of MSI files inside. You are not allowed to run embedded / nested MSI files concurrently with the main MSI installation. Simple explanation here. Inline explanation: This is because MSI files install as a transaction that is supposed to be possible to roll back. Hence the file installation sequence locks the system to prevent other MSI files installing when one is already in progress.

Extract: You can extract a WiX bundle using the WiX toolkit's dark.exe: dark.exe /x D:\VCRedist vcredist_x64.exe. WiX toolkit must be installed and dark.exe must be in the path or you must specify its full path.

Setup.exe: The solution is to run the MSI files in sequence inside a setup.exe bundle created with WiX, Installshield (see link for sample screenshot - more on suite projects here), Advanced Installer or a similar setup creation tool. Another approach is to simply deliver the runtime next to your installer and install them in sequence with a batch file or even by instructing the user to do so.

Merge Modules: Most VCRedist versions have merge modules that you can use to install the runtime (as opposed to setup executables). WiX sample. These are merged into your own MSI at build time and hence feature no nested MSI processes. There are some issues with merge modules and recent VCRedist versions.


Links:

answered on Stack Overflow Jan 16, 2021 by Stein Åsmul • edited Jan 17, 2021 by Stein Åsmul

User contributions licensed under CC BY-SA 3.0