Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Posts
    26

    Error 2721 calling MSIExec from an msi

    I am trying to create an MSI that installs another MSI using MSIExec with command line parameters and I get an error code 2721 when it runs.

    Annoyingly enough I copied this code from Setup Factory 6 where it works perfectly.

    The MSI I have created contains nothing but an msi and a Data1.cab file. I install it to a specific directory and then I call a custom action to run an executable. I have selected Full path with working folder and the path is:
    C:\Windows\System32\msiexec.exe

    I then put in command line arguments that specify the exact install location of MSI that i have just installed, plus some other stuff to get it to run silently, select drivers and so on. (I will use variables for this but only after I have removed the issue)

    If I build and run the msi if extracts the files and then gives me the error 2721.

    The questions are:
    Am I doing this the correct way?
    Why am I getting the error?

    I need to optionally install the final msi dependant on user choices as they may not have the device so we will break license agreements if we install it every time.

    Help!

  2. #2
    Join Date
    Mar 2004
    Posts
    26
    I forgot to mention: After getting the error I can copy the details from the custom action into 'Start, run' and it runs perfectly.

  3. #3
    Join Date
    Mar 2004
    Posts
    26
    Not working fix 2:

    I created a batch file that took a command line parameter of the msi I just placed on the local machine, effectively replacing the direct run executable method, and then called this from the MSI I created.

    It appears to run as I had the bat file have a pause command in it so I could see what was going on...and it doesn't appear to install!

    Is there something within the MSIExec itself that stops MSI's being run when there are other MSI's running? I'm going into "Add or Remove Programs" to see if the installation has run correctly and it is not showing in there. Maybe this is the problem?

  4. #4
    Join Date
    Mar 2004
    Posts
    26
    Just found the solution. ( I hope you are enjoying my ramblings...)

    You cannot call an MSI from an MSI. Great.

    You can use BootStrapper: http://blogs.msdn.com/chrsmith/artic...r_package.aspx

    but it's a prerequisite so I don't know if I can optionally install dependent on user configurations. Ho hum, on we go.

Similar Threads

  1. Replies: 2
    Last Post: 02-23-2011, 09:17 PM
  2. Setup Factory for Windows Installer is now MSI Factory 2.0
    By Ted Sullivan in forum MSI Factory 2.0 Discussion
    Replies: 0
    Last Post: 05-07-2008, 04:55 PM
  3. MSI Factory 2.0 Eases the Development of Software Installer Packages
    By Ted Sullivan in forum Announcements & News
    Replies: 0
    Last Post: 05-07-2008, 02:35 PM
  4. MSI Factory 2.0 Eases the Development of Software Installer Packages
    By Ted Sullivan in forum MSI Factory 2.0 Discussion
    Replies: 0
    Last Post: 05-07-2008, 02:35 PM
  5. Extract MSI from InstallShield EXE for SUFWI
    By JXBURNS in forum MSI Factory 2.0 Discussion
    Replies: 2
    Last Post: 11-02-2007, 10:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts