[wix-users] Persisted hidden variables are written to log file

Roni Fuchs ronif at microsoft.com
Thu Feb 11 08:36:55 PST 2016


You are all correct.
The problem was the mixed CamelCase and upper-case,
Where windows installer changed them to uppercase and they no longer were hidden.

Thanks everyone

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: Thursday, February 11, 2016 18:32
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Persisted hidden variables are written to log file

I also checked my projects which is similar to the refactored code that I posted using uppercase for public MSI properties to be hidden, and the logs show that the values are hidden.

Since you mentioned custom actions, if you are trying to pass the hidden value to a CustomActionData for a deferred CA then you should look at CustomActrion/@HideTarget , or if you did not define the deferred CA (using a WiX CA), then you can define a 'hidden' Property that has the same name(same case) as the deferred CA.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: Thursday, February 11, 2016 10:15 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Persisted hidden variables are written to log file

But I suspect that the mixed case property that you marked as 'hidden' is a different property than the uppercase property shown in you log which was not hidden.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Roni Fuchs
Sent: Thursday, February 11, 2016 10:00 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Persisted hidden variables are written to log file

Hi,

No it's not a typo, it works like this as well, inside the custom actions I check it as uppercase.

per

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: Thursday, February 11, 2016 17:41
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Persisted hidden variables are written to log file

If this a typo?     MsiProperty/@Id="ManagementAccountPassword" /> 

I think it needs to be all uppercase to pass in as a MsiProperty public property, so I think your code should be:

Bundle code:
    <Variable
      Hidden="yes"
      Name="ManagementAccountPassword"
      Persisted="yes" />


      <MsiPackage

        Id="MsiPackage"

        SourceFile="$(var.Deployment.Package.TargetPath)">

        <MsiProperty

          Name="MANAGEMENTACCOUNTPASSWORD"

          Value="[ManagementAccountPassword]" />

      </MsiPackage>

Package code:


    <Property

      Hidden="yes"

      Id=" MANAGEMENTACCOUNTPASSWORD " />


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Roni Fuchs
Sent: Thursday, February 11, 2016 9:21 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Persisted hidden variables are written to log file

Hi everyone,

I'm passing hidden variables (password) from burn to the msi.
But they are still being written to the log file. How can I hide them completely?

Bundle code:
    <Variable
      Hidden="yes"
      Name="ManagementAccountPassword"
      Persisted="yes" />


      <MsiPackage

        Id="MsiPackage"

        SourceFile="$(var.Deployment.Package.TargetPath)">

        <MsiProperty

          Name="ManagementAccountPassword"

          Value="[ManagementAccountPassword]" />

      </MsiPackage>

Package code:


    <Property

      Hidden="yes"

      Id="ManagementAccountPassword" />


Log file hides it sometimes:
... ManagementAccountPassword=********** ...

But:
MSI (s) (64:80) [17:11:20:294]: PROPERTY CHANGE: Adding MANAGEMENTACCOUNTPASSWORD property. Its value is 'password'.
...
Property(S): MANAGEMENTACCOUNTPASSWORD = password



Thanks,

Roni (Aron) Fuchs


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7c521bbb76e7644ec680ae08d332f9bd5f%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=hVzmts19HnxOHmmnrLc2Qt8lGx8cmd6Jee0akhs6FOw%3d

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7c521bbb76e7644ec680ae08d332f9bd5f%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=hVzmts19HnxOHmmnrLc2Qt8lGx8cmd6Jee0akhs6FOw%3d

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7c71aa660ac4c64013425708d33300ee3b%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=FY8tHozVKOPXKpbhX7Z0LDhKtESgC2%2f%2fqOESN%2btDxwM%3d

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7c71aa660ac4c64013425708d33300ee3b%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=FY8tHozVKOPXKpbhX7Z0LDhKtESgC2%2f%2fqOESN%2btDxwM%3d

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7c71aa660ac4c64013425708d33300ee3b%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=FY8tHozVKOPXKpbhX7Z0LDhKtESgC2%2f%2fqOESN%2btDxwM%3d


More information about the wix-users mailing list