I have some properties that contain sensitive information, and I want to hide them from the log file. From what I understand, I can do via the "Hide Property" option. The problem is, if I leave the "value" field blank, the property will not be hidden in the log. If I do specify a value (even if it's just a space character), it will be hidden in the log file. This post suggests that, as long as you have a value for the "comments" field, then the "value" field can be blank, and the property will still be hidden in the log file. However, this does not seem to be the case. The attached test project can be used to reproduce the issue. For some properties, I don't want a default value.
So, my questions are:
- Should a property with the "Hide Property" option selected be hidden from the log file if has doesn't have a value, but it does have a comment?
- If not, what's the best way around this? It sounds like I can add the "MsiHiddenProperties" property to my project and add any properties I want to hide to it. But, does that mean if I use the "Hide Property" option as described above (or using the "password" attribute on an edit control) it will overwrite what I set in MsiHiddenProperties? Or, will it add to it?
Thanks!