Thanks for the reply.  Here's how they are being created:

  <Property Id="SERVICE_LOGON_PASSWORD" Secure="yes" />
  <Property Id="SERVICE_LOGON_USERNAME" Secure="yes" />
  <Property Id="SERVICE_LOGON_DOMAIN" Secure="yes" />

Then they are being set in the UI sequence like this:

        <Control Id="EditUserName" Type="Edit" X="20" Y="128" Width="263" 
Height="15"
                 Property="SERVICE_LOGON_USERNAME" TabSkip="no"/>

In a dialog.

Thanks so much for the help.

Ted C.
-----Original Message-----
From: John Cooper [mailto:jocoo...@jackhenry.com] 
Sent: Monday, July 02, 2012 12:19 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Using util:User with properties gives error.

How are these properties being created and set?  If they're created in the UI 
sequence, you'll need to mark them with the Secure=yes attribute for them to 
exist in the Exec sequence.

--
John Merryweather Cooper
Build & Install Engineer - ESA
Jack Henry & Associates, Inc.(r)
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com 



-----Original Message-----
From: Ted Carroll [mailto:t...@verdiem.com]
Sent: Monday, July 02, 2012 1:26 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Using util:User with properties gives error.

I'm sure this is my fault but I'm trying to use util:User like this:

      <Component Id="GrantLogonAsService" 
Guid="{7742E51F-B362-44b7-BFF6-6AAC1AE0D29F}">
        <util:User Id="GrantLogonAsService" Name="[SERVICE_LOGON_NAME]" 
LogonAsService="yes" CreateUser="no" FailIfExists="no" UpdateIfExists="yes" 
Domain="[SERVICE_LOGON_DOMAIN]"/>
      </Component>

To grant logon as service to an existing user.  In the logs I get:

MSI (s) (EC:18) [11:03:18:895]: Executing op: ActionStart(Name=CreateUser,,) 
Action 11:03:18: CreateUser.
MSI (s) (EC:18) [11:03:18:895]: Executing op: 
CustomActionSchedule(Action=CreateUser,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (EC:44) [11:03:18:899]: Invoking remote custom action. DLL: 
C:\Windows\Installer\MSI2103.tmp, Entrypoint: CreateUser
CreateUser:  Error 0x80070103: failed to read attributes from custom action 
data CustomAction CreateUser returned actual error code 1603 (note this may not 
be 100% accurate if translation happened inside sandbox) Action ended 11:03:18: 
InstallFinalize. Return value 3.


Any ideas what might be going on?

Thanks,

Ted C.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended exclusively for the individual or entity to which it is addressed. The 
message, together with any attachment, may contain confidential and/or 
privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution is strictly prohibited. If you have received this message in 
error, please immediately advise the sender by reply email and delete all 
copies.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to