Page 1 of 1

MSI Installer package not working

Posted: Wed Aug 26, 2015 3:05 pm
by mwilner
Hello,
I am building an Installer that is wrapping 3 MSI installation build by Visual Studio.
On a clean Windows 7 x64 the installation the first time around jumps just over the MSI installation that are called like this:
~InstallAware Clipboard Data~
~(Un)Install MSI Setup~
~{4D52113E-FA8D-4CC0-A1A9-67846B8583DF}~
~ADDLOCAL=ALL,FALSE,,TRUE,$SUPPORTDIR$\PrintMonitor.msi,"C:\ProgramData\Zebra Technologies\Enterprise\ZXP\install.log",MSI_RESULT,MSI_LAST_ERROR,FALSE~
~mMSI.dll\mMSIExec.dll~

If I uninstall and re-install or do a repair install the MSI installation works.
What can be the problem here?

Best regards,

Re: MSI Installer package not working

Posted: Thu Aug 27, 2015 6:09 am
by FrancescoT
Dear Manfred,

by the few information you shared it's quite difficult to say what can be the source of your issue.

"Maybe" that MSI package requires a Runtime which is only available once the wrapper installation is completed ... this is the only possible cause that comes to my mind.

Regards

Re: MSI Installer package not working

Posted: Thu Aug 27, 2015 9:49 am
by mwilner
Thank you Francesco.
The dependencies Runtimes are installed through the pre-requisite process so I don't believe that this is the case.
Also if installing the MSI's outside IA it works fine.

Very strange.
Best regards,

Re: MSI Installer package not working

Posted: Thu Aug 27, 2015 11:49 am
by FrancescoT
Dear Manfred,

if you have any chance to send me such installer or an IA project that replicates the issue, I'll try to see what happens.

Regards

Re: MSI Installer package not working

Posted: Thu Aug 27, 2015 12:22 pm
by mwilner
Hello Francesco,
I think I just figured it out.
The MSI installer was trying to write a log file to a directory location that would be created during the "Apply" process and wasn't there when the MSI call was made.
This was following a prior recommendation for installing services to be done before the "Apply". :cry:
Now can the MSI install function be called in the final process after "Apply" has created all directories and maybe placed other files?

Best regards,

Re: MSI Installer package not working

Posted: Thu Aug 27, 2015 12:33 pm
by FrancescoT
Dear Manfred,

you can sequence the "the MSI install" statement even after the apply install statement.

Optionally you could display some notes or to use a progress dialog, in order to inform the user that the installer needs to install some additional components to complete the process.

Regards

Re: MSI Installer package not working

Posted: Thu Aug 27, 2015 3:48 pm
by mwilner
Thank you,

Re: MSI Installer package not working

Posted: Fri Aug 28, 2015 9:35 am
by FrancescoT
:D