Windows Installer Verbose Logging
I have had a few questions lately from various team members that some MSI verbose (L*v) logs do not show "Installed successfully".
We have various members using various Windows Installer authoring tools such as Wise or WPS, WIX, Installshield.....
With Windows Installer logging return value reference guides from https://msdn.microsoft.com/en-us/library/aa369778(v=vs.85).aspx
Am I right relaying the message that
Excluding the rollback action, a success is indicative by a “return value 1” for all actions expected to be processed including the last action of InstallFinalize of 1.
Obviously there are return values of 0 like when a previous product is not installed and therefore removeexistingproducts action would return 0.
In the past, I have looked for errors such as return value 2, 3, 4 etc....and just ensure my last action of installfinalize is 1.
sorry for the delay, just got back from growing my freckles on a Mexican beach :-)
I've never specifically used the return value from InstallFinalize, as if this is not successful, you get an overall invalid return result from the main installer engine, and the failure usually not related to the actual InstallFinalize action, but an action / custom action that is mis-behaving prior to this, and it is usually here that I start my examinations of installation failures using the log...
to be honest, unless you have any real problems with a specific package, the only really interesting return value is that of the main installer (i,e, 0 | 3010) are ok, anything else is bad mojo. Standard actions may also return for example "3" but the installation is still successful. Custom actions that are not standard, must return "0" as a non "0" return value signifies an error.
In your case I would concentrate on the final return value provided at the end of an installation, anything other than 0 or 3010 is an error. Trying to parse / evaluate values coming from Actions carried out during installation would probably only cause many "false" positives, and / or take allot of time to interpret.