This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Hide Property set in .Net Class Installer Arguments from log
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 22, 2010
11:14 AM
Hide Property set in .Net Class Installer Arguments from log
Hello
Is there a way to hide properties such as password from the log when they are set in the .NET Installer Class Arguments?
I know about MsiHiddenProperties but it does not work for .NET Installer Class Arguments.
example of the log file:
MSI (s) (14:58) [11:41:28:566]: PROPERTY CHANGE: Adding _71570DA8B4C164E51CB039AF4DDFEC9E.install property. Its value is '/installtype=notransaction /action=install /SERVICEUSERNAME=".\Administrator" /SERVICEPASSWORD="mypassword" /LogFile= "C:\Program Files (x86)\my Company\server.exe" "C:\Users\ADMINI~1\AppData\Local\Temp\2\{58E04602-7211-4808-8367-60DC9BCB8642}\_isconfig.xml"'.
Action ended 11:41:28: _71570DA8B4C164E51CB039AF4DDFEC9E.install.SetProperty. Return value 1.
Is there a way to hide properties such as password from the log when they are set in the .NET Installer Class Arguments?
I know about MsiHiddenProperties but it does not work for .NET Installer Class Arguments.
example of the log file:
MSI (s) (14:58) [11:41:28:566]: PROPERTY CHANGE: Adding _71570DA8B4C164E51CB039AF4DDFEC9E.install property. Its value is '/installtype=notransaction /action=install /SERVICEUSERNAME=".\Administrator" /SERVICEPASSWORD="mypassword" /LogFile= "C:\Program Files (x86)\my Company\server.exe" "C:\Users\ADMINI~1\AppData\Local\Temp\2\{58E04602-7211-4808-8367-60DC9BCB8642}\_isconfig.xml"'.
Action ended 11:41:28: _71570DA8B4C164E51CB039AF4DDFEC9E.install.SetProperty. Return value 1.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 22, 2010
11:16 AM
Hello,
I don't think there is away to do it
InstallLibUtil won;t know how to read the value otherwise.
Hopefully someone will tell you otherwise.
I don't think there is away to do it
InstallLibUtil won;t know how to read the value otherwise.
Hopefully someone will tell you otherwise.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 22, 2010
12:30 PM
Vijay is right; InstallUtilLib is coded to write to the log on that fashion.
However, you could get around it by calling InstallUtil.exe from a script action, potentially. That way the installer class should run, but not write anything to the log.
Another thought is to move away from using Installer Classes and author whatever other registry or service configurations you might need outside the installer class.
Most configuration tasks can be done with Windows Installer without introducing extra executable code into the installation process (search through these forums for '-1001', and you'll see why I say this...).
However, you could get around it by calling InstallUtil.exe from a script action, potentially. That way the installer class should run, but not write anything to the log.
Another thought is to move away from using Installer Classes and author whatever other registry or service configurations you might need outside the installer class.
Most configuration tasks can be done with Windows Installer without introducing extra executable code into the installation process (search through these forums for '-1001', and you'll see why I say this...).
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)