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!

Reply With Quote