[wix-users] pass credentials to a service and retry if wrong

Alan Sinclair anadem at gmail.com
Tue Aug 4 14:58:03 PDT 2020


thanks so much!  where in the InstallExecuteSequence does the CA go?
If you can share any other details (code fragment for the UI API in
particular!) please let me know

thanks
Alan


On Tue, Aug 4, 2020 at 1:09 PM Bryan Dam <bryand at recastsoftware.com> wrote:

> Yes, you can write a custom action that validates a set of credentials and
> sets properties.  We do this to both display the results (including any
> error message) and to control the enabled status of the next button.  Until
> a valid set of credentials is given they can't proceed.  There's options
> for marking the property hidden as well so that it's not written to the
> logs.
>
> There's probably some level of 'the password is in memory' concerns here
> but I'm not smart enough to give that discussion justice.
>
> -----Original Message-----
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
> Alan Sinclair via wix-users
> Sent: Tuesday, August 4, 2020 3:25 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Cc: Alan Sinclair <anadem at gmail.com>
> Subject: [wix-users] pass credentials to a service and retry if wrong
>
> Can a wix install which installs a service get user credentials, pass the
> creds to the service, then if the credentials fail login ask the user to
> re-enter them?
>
> I *really *need advice please! I tried to ask this last week but didn't
> put the question well (wasn't fully aware of my customer's needs)*.
>
> The package installs a service. The user credentials are passed to the
> service (which runs as Local System so does not itself require creds), and
> the service registers the user with a backend process. If the registration
> fails my customer wants to allow the user to re-enter their credentials and
> retry the registration rather than fail the install.
>
> Of course, the binaries in the install package have to be in place to run
> the service. I'm familiar with getting user info using a WixUI dialog but I
> don't know how to enable re-entry of creds to do what my customer wants
>
> Can a deferred custom action DLL use the Wix UI to get the user info?
> Perhaps handling the credentialing and registration should be done from a
> custom action DLL?
>
> As a less-desirable option my customer suggested that if the user
> registration fails then the install should not roll back and instead should
> allow the user to re-run the install (without replacing files) to re-enter
> their credentials and pass them to the service again. I don't know how to
> do that either, and it seems less optimal.
>
> (The customer's current installer is authored in Innosetup and does what's
> needed with registering the user and allowing credential re-entry when rqd,
> but has other failings so they want to move to Wix.)
>
> thanks
> Alan
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list