Link to home
Start Free TrialLog in
Avatar of Member_2_2862251
Member_2_2862251

asked on

Getting a package installer to ignore MS installation 'failures' (error dialogue supression) and continue

Hello, I'm a so-so software packager and I use an automated package wrapper built using Winbatch. (Don't ask, I didn't do it.) I have software which has been provided by an unnamed vendor. Prior to the main install it does a pre-check and attempt to install up to four MS-related programs (SQL and VCDistributables C++, both x86 and x64). If you run it without any switches a dialog pops up saying it failed and if you wish to Retry or Skip. No big deal, EXCEPT I want to make this a silent install. Seriously, it doesn't matter if the install 'failed' because the program already exists. However, these dialogs are enough to kill the install when using /S /v/qn switches.

The main installer is a setup.exe which calls to a setup.msi package. Going to the vendor is out of the question, we're on our own.  What's the best way to squelch the failure dialogue? I'm pretty sure this is the cause.
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

One way is to extract setup.msi (by using /extract_all, or by admin installation, or by copying setup.msi from %temp% once it's extracted), and run it directly.

Another is to find out what prerequisite checking is looking for, usually a registry key, and create a fake one before running the installation, so prerequisite checking is satisfied.
Avatar of Member_2_2862251
Member_2_2862251

ASKER

I think that the individual prerequisite programs are ending the main install prematurely when they fail. if I can suppress *their* error messages then the main install will continue. The prereq programs are:

vcredist_x64.exe
vcredist_x86.exe
NDP451-KB2858728-x86-x64-AllOS-ENU.exe (.Net Framework 4.51)
SSCERuntime_x86-ENU.msi
SSCERuntime_x64-ENU.msi

I'm wondering if there's a tab in the MSI files I can check (using Orca) and basically tell the programs to not make a notification if it fails. ...

I suspect there's another way of going about this. If the Main Install.msi can be launched without using setup.exe, so that it runs independently...I could write something that does the prereq check silently. That's an option but I'm not 100% certain how.
ASKER CERTIFIED SOLUTION
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Chris, per http://support.experts-exchange.com/customer/en/portal/articles/481419-what-grade-should-i-award-, please explain what information was lacking from my response, that resulted in awarding grade B.