Hi
I use “RegistryValue” and “Util:XmlFile” components in my setup to write some
properties to the registry and to a config file.
Some of the properties are secret (f.e. connection strings and passwords).
I have to use standard log abilities to log a setup actions. These logs can be
created on the user computers and then can be sent to our support, so log file
shouldn’t contain such secret information.
Can I prevent logging of values for “RegistryValue” and “Util:XmlFile”
components?
I run my msi the following way:
msiexec /i file.msi /l*v file.log
Wix part:
<RegistryValue Id='Reg_DBConnectionString' Root='HKLM'
Key='[DEFAULT_REGISTRY_KEY_NAME]' Name='DBConnectionString'
Value='[CONNECTION_STRING]' Type='string' />
and
<Util:XmlFile Id="Modify_SQLServer_sqlConnectionString"
Action="setValue"
ElementPath="/configuration/system.web/sessionState/@sqlConnectionString"
File="[LOCATION]Web.config"
Value="[SESSION_STATE_CONNECTION_STRING]"/>
Properties CONNECTION_STRING and SESSION_STATE_CONNECTION_STRING are marked as
Hidden.
Log information looks like:
…
MSI (s) (FC:1C) [12:41:48:619]: Executing op: RegAddValue(Name=DB Connection
String,Value=Data Source=SQLServerName;Initial Catalog=DatabaseName;User
ID=login;Password=pass;Connect Timeout=120,)
…
and
…
MSI (s) (4C!5C) [14:58:44:370]: PROPERTY CHANGE: Adding ExecXmlFile property.
Its value is '20
…
/configuration/system.web/sessionState/@sqlConnectionStringData
Source=SQLServerName;User ID=login;Password=pass'.
…
Regards,
Grigory Konovalov
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
VERIFY Test and improve your parallel project with help from experts
and peers. http://goparallel.sourceforge.net
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users