[wix-users] util:User error handling...

Lewis Henderson henderso at opentext.com
Mon Jul 27 06:13:25 PDT 2015


Thanks for the response.  No, I haven't seen anything different, it was just a case I know might happen and I wanted to make sure it was handled in a user friendly manner.

				Lewis

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Blair Murri
Sent: Monday, July 27, 2015 8:31 AM
To: wix-users at lists.wixtoolset.org
Subject: Re: [wix-users] util:User error handling...

Currently, when the ConfigureUser action runs and the password fails the system’s requirements, the ConfigureUser action fails (after possibly showing the error message box described in the next paragraph), causing the installation to rollback and return a failure code. The log can be examined to see what the failure was (it will be “Failed to create user: <User> due to invalid password.”).


The error table string for the error 26402 likely will contain some translation of “Failed to create user due to invalid password.” which will likely show up in an error message box (if UI is permitted or if a bootstrapper is receiving UI) when the above named action is running.


At least that’s what is designed. Are you seeing some different behavior?


Blair Murri

​



Lewis Henderson henderso at opentext.com Thu Jul 23 06:25:50 PDT 2015  


Hi Everyone, I'm migrating an old InstallShield installer to Wix, and I'm wondering how I can handle a situation that came up before. This install creates a permanent user (if it doesn't already exist) to run a database server service. The user is prompted for the password for this user (if new) and util:User is used to create the user. This is working fine under normal circumstances, but what happens if the user enters a password that doesn't meet the length, complexity or history requirements? Can the error be trapped somehow and at least issue an informative message detailing why the user creation failed? Thanks for the information. Lewis Henderson

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list