fandrei / AppMetrics

Apache License 2.0
8 stars 2 forks source link

Fix service config UI being shown for Windows Installer passive installations and repairs. #134

Closed sopel closed 11 years ago

sopel commented 11 years ago

I'm having problems with the silent installation done via CloudFormation in the context of #132 - while I'm not at all positive that this is related, I've noticed the following issue:

This stems from an incomplete check within the custom action RunConfig:

<Custom Action='RunConfig' After='InstallFiles'>
    <!-- product is installing and UILevel is not INSTALLUILEVEL_NONE -->
    $ProductComponent = 3 AND NOT UILevel = 2
</Custom>

The comparison must at least be extended to cover msiUILevelBasic too (see Installer.UILevel property - also these are bitwise flags, so I think it requires usage of Bitwise Numeric Operators to be on the safe side.

fandrei commented 11 years ago

Wow. I wish all bug reports were like this.

fandrei commented 11 years ago

Done as suggested - i.e. show config dialog only in msiUILevelFull and msiUILevelReduced modes. Works well for you?

mrdavidlaing commented 11 years ago

:+1: for awesome bug reports. @sopel - I'm sensing a tech radar article on this...

On Wednesday, February 6, 2013, Andrei Faber wrote:

Done as suggested - i.e. show config dialog only in msiUILevelFull and msiUILevelReduced modes. Works well for you?

— Reply to this email directly or view it on GitHubhttps://github.com/fandrei/AppMetrics/issues/134#issuecomment-13166176.

David Laing Open source @ City Index - github.com/cityindex http://davidlaing.com Twitter: @davidlaing

sopel commented 11 years ago

Excellent, this works as desired in itself now and has indeed solved the issue I've encountered as well, thanks :)