diff options
author | Ron Martin <cpuwzd@comcast.net> | 2022-08-29 18:38:07 -0400 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2022-10-21 19:08:08 -0700 |
commit | 08cdc6aa2b9dd0e273a3c3a22893616d26342a0e (patch) | |
tree | 1d0b9f7e21cec02abfda50b1a3c6d0c24308998b /src/ext/Util/wixext/UtilDecompiler.cs | |
parent | 40bd65379768f99ec28bffe2691ba43c78c9e9c4 (diff) | |
download | wix-08cdc6aa2b9dd0e273a3c3a22893616d26342a0e.tar.gz wix-08cdc6aa2b9dd0e273a3c3a22893616d26342a0e.tar.bz2 wix-08cdc6aa2b9dd0e273a3c3a22893616d26342a0e.zip |
Support add, modify and remove comments on user accounts
Fixes 5371
Diffstat (limited to 'src/ext/Util/wixext/UtilDecompiler.cs')
-rw-r--r-- | src/ext/Util/wixext/UtilDecompiler.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ext/Util/wixext/UtilDecompiler.cs b/src/ext/Util/wixext/UtilDecompiler.cs index 7d95fcef..1201fdd5 100644 --- a/src/ext/Util/wixext/UtilDecompiler.cs +++ b/src/ext/Util/wixext/UtilDecompiler.cs | |||
@@ -559,13 +559,14 @@ namespace WixToolset.Util | |||
559 | { | 559 | { |
560 | foreach (var row in table.Rows) | 560 | foreach (var row in table.Rows) |
561 | { | 561 | { |
562 | var attributes = row.FieldAsNullableInteger(5) ?? 0; | 562 | var attributes = row.FieldAsNullableInteger(6) ?? 0; |
563 | 563 | ||
564 | var user = new XElement(UtilConstants.UserName, | 564 | var user = new XElement(UtilConstants.UserName, |
565 | new XAttribute("Id", row.FieldAsString(0)), | 565 | new XAttribute("Id", row.FieldAsString(0)), |
566 | new XAttribute("Name", row.FieldAsString(2)), | 566 | new XAttribute("Name", row.FieldAsString(2)), |
567 | AttributeIfNotNull("Domain", row, 3), | 567 | AttributeIfNotNull("Domain", row, 3), |
568 | AttributeIfNotNull("Password", row, 4), | 568 | AttributeIfNotNull("Password", row, 4), |
569 | AttributeIfNotNull("Comment", row, 5), | ||
569 | AttributeIfTrue("PasswordNeverExpires", UtilCompiler.UserDontExpirePasswrd == (attributes & UtilCompiler.UserDontExpirePasswrd)), | 570 | AttributeIfTrue("PasswordNeverExpires", UtilCompiler.UserDontExpirePasswrd == (attributes & UtilCompiler.UserDontExpirePasswrd)), |
570 | AttributeIfTrue("CanNotChangePassword", UtilCompiler.UserPasswdCantChange == (attributes & UtilCompiler.UserPasswdCantChange)), | 571 | AttributeIfTrue("CanNotChangePassword", UtilCompiler.UserPasswdCantChange == (attributes & UtilCompiler.UserPasswdCantChange)), |
571 | AttributeIfTrue("PasswordExpired", UtilCompiler.UserPasswdChangeReqdOnLogin == (attributes & UtilCompiler.UserPasswdChangeReqdOnLogin)), | 572 | AttributeIfTrue("PasswordExpired", UtilCompiler.UserPasswdChangeReqdOnLogin == (attributes & UtilCompiler.UserPasswdChangeReqdOnLogin)), |
@@ -573,7 +574,8 @@ namespace WixToolset.Util | |||
573 | AttributeIfTrue("FailIfExists", UtilCompiler.UserFailIfExists == (attributes & UtilCompiler.UserFailIfExists)), | 574 | AttributeIfTrue("FailIfExists", UtilCompiler.UserFailIfExists == (attributes & UtilCompiler.UserFailIfExists)), |
574 | AttributeIfTrue("UpdateIfExists", UtilCompiler.UserUpdateIfExists == (attributes & UtilCompiler.UserUpdateIfExists)), | 575 | AttributeIfTrue("UpdateIfExists", UtilCompiler.UserUpdateIfExists == (attributes & UtilCompiler.UserUpdateIfExists)), |
575 | AttributeIfTrue("LogonAsService", UtilCompiler.UserLogonAsService == (attributes & UtilCompiler.UserLogonAsService)), | 576 | AttributeIfTrue("LogonAsService", UtilCompiler.UserLogonAsService == (attributes & UtilCompiler.UserLogonAsService)), |
576 | AttributeIfTrue("LogonAsService", UtilCompiler.UserLogonAsService == (attributes & UtilCompiler.UserLogonAsService)) | 577 | AttributeIfTrue("LogonAsBatchJob", UtilCompiler.UserLogonAsBatchJob == (attributes & UtilCompiler.UserLogonAsBatchJob)), |
578 | AttributeIfTrue("RemoveComment", UtilCompiler.UserRemoveComment == (attributes & UtilCompiler.UserRemoveComment)) | ||
577 | ); | 579 | ); |
578 | 580 | ||
579 | if (UtilCompiler.UserDontRemoveOnUninstall == (attributes & UtilCompiler.UserDontRemoveOnUninstall)) | 581 | if (UtilCompiler.UserDontRemoveOnUninstall == (attributes & UtilCompiler.UserDontRemoveOnUninstall)) |