[wix-users] pass credentials to a service and retry if wrong
Hoover, Jacob
Jacob.Hoover at greenheck.com
Tue Aug 4 13:42:31 PDT 2020
The problem is they have installation payloads that they need to validate the password. I suppose you could break it into 2 MSI's, bundle it, and run the second MSI with DisplayInternalUI=True...
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Bryan Dam via wix-users
Sent: Tuesday, August 4, 2020 3:10 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Bryan Dam <bryand at recastsoftware.com>
Subject: Re: [wix-users] pass credentials to a service and retry if wrong
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<mailto: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<mailto:wix-users at lists.wixtoolset.org>>
Cc: Alan Sinclair <anadem at gmail.com<mailto: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/<http://www.firegiant.com>
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/<http://www.firegiant.com/>
NOTE: This email was received from an external source. Please use caution when opening links or attachments in the message.
More information about the wix-users
mailing list