search cancel

Error 1713 when attempting to call an .MSI from within another .MSI

book

Article ID: 174990

calendar_today

Updated On:

Products

Symantec Products

Issue/Introduction

The error, "Error 1713 (cannot install one of its required products)" appears when attempting to call an .MSI from within another .MSI.

Resolution

Found that adding the Property Setting ALLUSERS=[ALLUSERS] on the Install MSI From Installation custom action can resolve this error message.  

Alternatives to nested installs:
Microsoft best practice recommendations include not using nested installations due to significant limitations such as upgrade and patching issues. Below are two different methods to use which install two .MSIs during one installation.

Use the Execute Program from Destination to call an .MSI from the User Interface script.  User Interface script is run before the Windows Installer Engine starts up, so the .MSI will not be nested. 

  1. Create a WiseScript that will install the .MSI to a temporary location on the computer using the Install Files action.
  2. Place the Wisescript in the User Interface after CostFinalize.
  3. Add an Execute Program from Destination custom action in the User Interface of MSI Script after the Run WiseScript action that installs the .MSI to the computer.
  4. Complete the Execute Program from Destination as shown below:
    • Custom Action Name: Enter any name
    • Working Directory: Enter SystemFolder
    • EXE and CommandLine:  [SystemFolder]msiexec.exe /i <PathToYourMsi>
  5. Accept all other defaults and click OK.

Note: If the .MSI will reside in the same folder as your main .MSI, then you can use [SourceDir] as the path to the .MSI (include the name of the .MSI in the path). 

Note: Add double quotes around your paths if it fails to execute in the .EXE and CommandLine field.

You can also use an .EXE wrapper to a call both .MSIs.

  1. Go to the Build Options page in the Release Definition group Installation Expert.
  2. Select Single-File .EXE (only valid for files inside .MSI) from the .EXE Options drop down.
  3. Go to Prerequisites Page in the Release Definition group of Installation Expert and select Add > Prerequisites.
  4. The Prerequisites Details dialog appears. In the File Path field, browse for MSI.
  5. In the Command Line field, enter any necessary command line.
  6. Click OK.
  7. Compile and run the .EXE.

Completing this process will install the first .MSI and then install the main .MSI. You can also choose to create your own wrapper using Wisescript Script that would launch the first .MSI then the second using the Execute Program action.